#[repr(C)]pub struct BoxAny { /* private fields */ }
Implementations
Methods from Deref<Target = Any>
pub fn type_information(&self) -> &'static TypeInformation
pub fn payload(&self) -> &u64
pub fn is_boolean(&self) -> bool
pub fn is_none(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_string(&self) -> bool
pub fn to_boolean(&self) -> Option<Boolean>
pub fn to_number(&self) -> Option<Number>
pub fn to_string(&self) -> Option<ByteString>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BoxAny
impl Send for BoxAny
impl Sync for BoxAny
impl Unpin for BoxAny
impl UnwindSafe for BoxAny
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more