Struct ruzstd::blocks::literals_section::LiteralsSection
source · pub struct LiteralsSection {
pub regenerated_size: u32,
pub compressed_size: Option<u32>,
pub num_streams: Option<u8>,
pub ls_type: LiteralsSectionType,
}
Fields§
§regenerated_size: u32
§compressed_size: Option<u32>
§num_streams: Option<u8>
§ls_type: LiteralsSectionType
Implementations§
source§impl LiteralsSection
impl LiteralsSection
pub fn new() -> LiteralsSection
pub fn header_bytes_needed( &self, first_byte: u8 ) -> Result<u8, LiteralsSectionParseError>
pub fn parse_from_header( &mut self, raw: &[u8] ) -> Result<u8, LiteralsSectionParseError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LiteralsSection
impl Send for LiteralsSection
impl Sync for LiteralsSection
impl Unpin for LiteralsSection
impl UnwindSafe for LiteralsSection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more