pub enum BoundedValue<const MAX_LIST: usize, const MAX_STR: usize> {
Scalar(Slot),
List(Vec<Slot, MAX_LIST>),
Str(String<MAX_STR>),
}Expand description
Bounded value for no-alloc encode/decode.
Variants§
Implementations§
Trait Implementations§
impl<const MAX_LIST: usize, const MAX_STR: usize> Eq for BoundedValue<MAX_LIST, MAX_STR>
Source§impl<const MAX_LIST: usize, const MAX_STR: usize> PartialEq for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> PartialEq for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> StructuralPartialEq for BoundedValue<MAX_LIST, MAX_STR>
Auto Trait Implementations§
impl<const MAX_LIST: usize, const MAX_STR: usize> Freeze for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> RefUnwindSafe for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> Send for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> Sync for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> Unpin for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> UnsafeUnpin for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> UnwindSafe for BoundedValue<MAX_LIST, MAX_STR>
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