pub struct BlockOptions(pub Vec<BlockOption>);Expand description
Represents a collection of options for a block
Tuple Fields§
§0: Vec<BlockOption>Implementations§
Source§impl BlockOptions
impl BlockOptions
pub fn read_in<R: Read, B: ByteOrder>( &mut self, reader: &mut R, byte_order: B, ) -> Result<(), OptionParseError>
pub fn read<R: Read, B: ByteOrder>( reader: &mut R, byte_order: B, ) -> Result<Self, OptionParseError>
pub fn read_option<R: Read, B: ByteOrder>( reader: &mut R, byte_order: B, ) -> Result<Option<Self>, OptionParseError>
pub fn write<W: Write>( &self, writer: &mut W, byte_order: impl ByteOrder, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for BlockOptions
impl Clone for BlockOptions
Source§fn clone(&self) -> BlockOptions
fn clone(&self) -> BlockOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockOptions
impl Debug for BlockOptions
Source§impl Default for BlockOptions
impl Default for BlockOptions
Source§fn default() -> BlockOptions
fn default() -> BlockOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for BlockOptions
impl PartialEq for BlockOptions
impl Eq for BlockOptions
impl StructuralPartialEq for BlockOptions
Auto Trait Implementations§
impl Freeze for BlockOptions
impl RefUnwindSafe for BlockOptions
impl Send for BlockOptions
impl Sync for BlockOptions
impl Unpin for BlockOptions
impl UnwindSafe for BlockOptions
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