pub enum ListLikeDef {
List(ListDef),
Array(ArrayDef),
Slice(SliceDef),
}Expand description
Fields for types which act like lists
Variants§
List(ListDef)
Ordered list of heterogenous values, variable size
e.g. Vec<T>
Array(ArrayDef)
Fixed-size array of heterogenous values
e.g. [T; 32]
Slice(SliceDef)
Slice — a reference to a contiguous sequence of elements
e.g. &[T]
Implementations§
Trait Implementations§
Source§impl Clone for ListLikeDef
impl Clone for ListLikeDef
Source§fn clone(&self) -> ListLikeDef
fn clone(&self) -> ListLikeDef
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 moreimpl Copy for ListLikeDef
Auto Trait Implementations§
impl Freeze for ListLikeDef
impl RefUnwindSafe for ListLikeDef
impl Send for ListLikeDef
impl Sync for ListLikeDef
impl Unpin for ListLikeDef
impl UnwindSafe for ListLikeDef
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