pub struct Value(/* private fields */);Implementations§
source§impl Value
impl Value
pub const fn to_cons(self) -> Option<Cons>
pub const fn to_number(self) -> Option<Number>
pub const fn to_typed(self) -> TypedValue
pub const fn assume_cons(self) -> Cons
pub const fn assume_number(self) -> Number
pub const fn is_cons(&self) -> bool
pub const fn is_number(&self) -> bool
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
impl Copy for Value
impl Eq for Value
Auto Trait Implementations§
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