Struct nanbox::TypedNanBox
[−]
[src]
pub struct TypedNanBox<T> { /* fields omitted */ }
Methods
impl<T> TypedNanBox<T>
[src]
unsafe fn new<U>(tag: u8, value: U) -> TypedNanBox<T> where
U: NanBoxable,
U: NanBoxable,
unsafe fn unpack<U>(self) -> U where
U: NanBoxable,
U: NanBoxable,
fn tag(&self) -> u32
Trait Implementations
impl<T> Copy for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Copy,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Copy,
impl<T> Clone for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Clone,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Clone,
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> Debug for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Debug + Clone,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Debug + Clone,
impl<T> Display for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Display + Clone,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Display + Clone,
impl<T> PartialEq for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + PartialEq<T> + Clone,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + PartialEq<T> + Clone,
fn eq(&self, other: &TypedNanBox<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<T> Eq for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Eq + Clone,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Eq + Clone,
impl<T> PartialOrd for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + PartialOrd<T> + Clone,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + PartialOrd<T> + Clone,
fn partial_cmp(&self, other: &TypedNanBox<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T> Ord for TypedNanBox<T> where
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Ord + Clone,
[src]
T: From<TypedNanBox<T>> + Into<TypedNanBox<T>> + Ord + Clone,
fn cmp(&self, other: &TypedNanBox<T>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<T> From<T> for TypedNanBox<T> where
T: From<TypedNanBox<T>>,
[src]
T: From<TypedNanBox<T>>,
fn from(value: T) -> TypedNanBox<T>
Performs the conversion.