pub enum LengthSpec {
Fixed(u32),
Variable {
max: Option<u32>,
},
}Expand description
Length specification for arrays and opaque data.
Variants§
Trait Implementations§
Source§impl Clone for LengthSpec
impl Clone for LengthSpec
Source§fn clone(&self) -> LengthSpec
fn clone(&self) -> LengthSpec
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 moreAuto Trait Implementations§
impl Freeze for LengthSpec
impl RefUnwindSafe for LengthSpec
impl Send for LengthSpec
impl Sync for LengthSpec
impl Unpin for LengthSpec
impl UnwindSafe for LengthSpec
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