pub struct Value(/* private fields */);
Expand description
A value.
Implementations§
Source§impl Value
impl Value
Sourcepub const fn assume_cons(self) -> Cons
pub const fn assume_cons(self) -> Cons
Converts a value to a cons assuming its type.
Sourcepub const fn assume_number(self) -> Number
pub const fn assume_number(self) -> Number
Converts a value to a number assuming its type.
Trait Implementations§
impl Copy for Value
impl Eq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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