Struct linked_array::Term
[−]
[src]
pub struct Term;
The type used for an empty array or array terminator.
Trait Implementations
impl Copy for Term
[src]
impl Clone for Term
[src]
fn clone(&self) -> Term
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Term
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Term
[src]
fn eq(&self, __arg_0: &Term) -> bool
[src]
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[src]
This method tests for !=
.
impl Eq for Term
[src]
impl PartialOrd for Term
[src]
fn partial_cmp(&self, __arg_0: &Term) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
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[src]
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[src]
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[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Term
[src]
fn cmp(&self, __arg_0: &Term) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<T> Array<T> for Term
[src]
fn get(&self, _: usize) -> Option<&T>
[src]
Access the element at idx, or None if out of bounds.
fn len() -> usize
[src]
Get the compile-time length of the array.
unsafe fn as_slice(&self) -> &[T]
[src]
Since the in-memory representation should be the same as a traditional array, it should be safe to read the pointer as one. However, since the rust specification makes memory layout undefined, it is held behind unsafe. Read more
fn size(&self) -> usize
[src]
A conveinence wrapper around len that takes a refernce to facilitate using the right type.