Struct null_terminated::Slice
[−]
[src]
pub struct Slice<A>(_);
Methods
impl<A> Slice<A>
[src]
fn as_ptr(&self) -> *const A
[src]
fn as_mut_ptr(&mut self) -> *mut A
[src]
impl<A: Zero> Slice<A>
[src]
unsafe fn from_ptr(ptr: *const A) -> &'static Self
[src]
unsafe fn from_mut_ptr(ptr: *mut A) -> &'static mut Self
[src]
Trait Implementations
impl<A: PartialEq> PartialEq for Slice<A>
[src]
fn eq(&self, __arg_0: &Slice<A>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Slice<A>) -> bool
[src]
This method tests for !=
.
impl<A: Eq> Eq for Slice<A>
[src]
impl<A: PartialOrd> PartialOrd for Slice<A>
[src]
fn partial_cmp(&self, __arg_0: &Slice<A>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Slice<A>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Slice<A>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Slice<A>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Slice<A>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<A: Ord> Ord for Slice<A>
[src]
fn cmp(&self, __arg_0: &Slice<A>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<A: Debug> Debug for Slice<A>
[src]
impl<'a, A: Zero> TryFrom<&'a [A]> for &'a Slice<A>
[src]
impl<'a, A: Zero> TryFrom<&'a mut [A]> for &'a mut Slice<A>
[src]
impl<A> Deref for Slice<A>
[src]
type Target = [A]
The resulting type after dereferencing.
fn deref(&self) -> &[A]
[src]
Dereferences the value.