pub enum SizeFlag {
Any,
Exact(u32),
Range(u32, u32),
}Expand description
Flags representing size constraints on attribute values.
Variants§
Any
No constraint (default).
Exact(u32)
Value must be exactly N bytes.
Range(u32, u32)
Value must be between N and M bytes (inclusive).
Implementations§
Trait Implementations§
impl Eq for SizeFlag
impl StructuralPartialEq for SizeFlag
Auto Trait Implementations§
impl Freeze for SizeFlag
impl RefUnwindSafe for SizeFlag
impl Send for SizeFlag
impl Sync for SizeFlag
impl Unpin for SizeFlag
impl UnwindSafe for SizeFlag
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