pub struct Generic<'a, const N: usize>(/* private fields */);Expand description
A value of a type that a declaration bound to Rust is generic in, as crate::Generic:
the Lean object, passed on as it is. N is the type’s place among the declaration’s
type parameters.
Trait Implementations§
Source§impl<'a, const N: usize> Codec for Generic<'a, N>
impl<'a, const N: usize> Codec for Generic<'a, N>
Source§fn into_lean(value: Generic<'a, N>) -> Value<Self>
fn into_lean(value: Generic<'a, N>) -> Value<Self>
The Lean value of a Rust value that is given up. What can move is moved.
Source§fn to_lean(value: &Generic<'a, N>) -> Value<Self>
fn to_lean(value: &Generic<'a, N>) -> Value<Self>
The Lean value of a Rust value that stays with the caller. A copy.
Auto Trait Implementations§
impl<'a, const N: usize> Forget for Generic<'a, N>
impl<'a, const N: usize> Freeze for Generic<'a, N>
impl<'a, const N: usize> Move for Generic<'a, N>
impl<'a, const N: usize> RefUnwindSafe for Generic<'a, N>
impl<'a, const N: usize> Send for Generic<'a, N>
impl<'a, const N: usize> Sync for Generic<'a, N>
impl<'a, const N: usize> Unpin for Generic<'a, N>
impl<'a, const N: usize> UnsafeUnpin for Generic<'a, N>
impl<'a, const N: usize> UnwindSafe for Generic<'a, N>where
&'a (): UnwindSafe,
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