pub enum DescriptorStorage {
Short(ShortDescriptor),
Long(LongDescriptor),
}
Variants§
Short(ShortDescriptor)
Long(LongDescriptor)
Implementations§
Source§impl DescriptorStorage
impl DescriptorStorage
pub fn from_bytes( descriptor_type: DescriptorType, bytes: &[u8], ) -> (Self, &[u8])
pub fn number_of_blocks(&self) -> u64
pub fn logical_block_length(&self) -> u32
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for DescriptorStorage
impl Clone for DescriptorStorage
Source§fn clone(&self) -> DescriptorStorage
fn clone(&self) -> DescriptorStorage
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 DescriptorStorage
impl Debug for DescriptorStorage
impl Copy for DescriptorStorage
Auto Trait Implementations§
impl Freeze for DescriptorStorage
impl RefUnwindSafe for DescriptorStorage
impl Send for DescriptorStorage
impl Sync for DescriptorStorage
impl Unpin for DescriptorStorage
impl UnwindSafe for DescriptorStorage
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