Enum BoundedValue
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§
§impl<const MAX_LIST: usize, const MAX_STR: usize> BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> BoundedValue<MAX_LIST, MAX_STR>
Trait Implementations§
§impl<const MAX_LIST: usize, const MAX_STR: usize> Clone for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> Clone for BoundedValue<MAX_LIST, MAX_STR>
§fn clone(&self) -> BoundedValue<MAX_LIST, MAX_STR>
fn clone(&self) -> BoundedValue<MAX_LIST, MAX_STR>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<const MAX_LIST: usize, const MAX_STR: usize> Debug for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> Debug for BoundedValue<MAX_LIST, MAX_STR>
impl<const MAX_LIST: usize, const MAX_STR: usize> Eq 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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.