#[non_exhaustive]pub enum UnknownLen {
Dynamic,
Var(LengthVar),
}Expand description
Unknown / variable length, e.g., of a tuple.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dynamic
Length that can vary at runtime, similar to lengths of slices in Rust.
Var(LengthVar)
Length variable.
Implementations§
Source§impl UnknownLen
impl UnknownLen
Sourcepub const fn param(index: usize) -> Self
pub const fn param(index: usize) -> Self
Creates a bounded type variable that can be used to build functions.
Trait Implementations§
Source§impl Add<usize> for UnknownLen
impl Add<usize> for UnknownLen
Source§impl Clone for UnknownLen
impl Clone for UnknownLen
Source§fn clone(&self) -> UnknownLen
fn clone(&self) -> UnknownLen
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 UnknownLen
impl Debug for UnknownLen
Source§impl Display for UnknownLen
impl Display for UnknownLen
Source§impl From<UnknownLen> for TupleLen
impl From<UnknownLen> for TupleLen
Source§fn from(var: UnknownLen) -> Self
fn from(var: UnknownLen) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnknownLen
impl PartialEq for UnknownLen
impl Copy for UnknownLen
impl Eq for UnknownLen
impl StructuralPartialEq for UnknownLen
Auto Trait Implementations§
impl Freeze for UnknownLen
impl RefUnwindSafe for UnknownLen
impl Send for UnknownLen
impl Sync for UnknownLen
impl Unpin for UnknownLen
impl UnwindSafe for UnknownLen
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
Compare self to
key and return true if they are equal.