Struct multistr::Static9
[−]
[src]
pub struct Static9<T: StrLike + ?Sized> { /* fields omitted */ }
Array of immutable strings stored on the heap in the same buffer.
Methods
impl<T: StrLike + ?Sized> Static9<T>
[src]
fn new(inner: [&T; 9]) -> Static9<T>
Creates a new Static
from the given array of values.
fn from_raw<D: Into<Bow<'static, T::Data>>>(
buffer: D,
split: [usize; 9]
) -> Static9<T>
buffer: D,
split: [usize; 9]
) -> Static9<T>
Creates a Static
from its raw parts: a buffer and a list of split indices.
unsafe fn from_raw_unchecked<D: Into<Bow<'static, T::Data>>>(
buffer: D,
split: [usize; 9]
) -> Static9<T>
buffer: D,
split: [usize; 9]
) -> Static9<T>
Creates a Static
from its raw parts (unsafe version).
fn iter(&self) -> Iter<T>
Returns an iterator over the elements in this Static
.
Trait Implementations
impl<'a, T: StrLike + ?Sized> From<[&'a T; 9]> for Static9<T>
[src]
impl<T: StrLike + ?Sized> Default for Static9<T>
[src]
impl<T: ?Sized + StrLike> Index<usize> for Static9<T>
[src]
type Output = T
The returned type after indexing
fn index(&self, index: usize) -> &T
The method for the indexing (container[index]
) operation
impl<T: ?Sized + StrLike + StrLikeMut> IndexMut<usize> for Static9<T> where
T::Data: IndexRangesMut,
T::OwnedData: BorrowMut<T::Data>,
[src]
T::Data: IndexRangesMut,
T::OwnedData: BorrowMut<T::Data>,
fn index_mut(&mut self, index: usize) -> &mut T
The method for the mutable indexing (container[index]
) operation
impl<T: ?Sized + DataConcat> Index<Range<usize>> for Static9<T>
[src]
type Output = T
The returned type after indexing
fn index(&self, range: Range<usize>) -> &T
The method for the indexing (container[index]
) operation
impl<T: ?Sized + DataConcat> Index<RangeFrom<usize>> for Static9<T>
[src]
type Output = T
The returned type after indexing
fn index(&self, range: RangeFrom<usize>) -> &T
The method for the indexing (container[index]
) operation
impl<T: ?Sized + DataConcat> Index<RangeTo<usize>> for Static9<T>
[src]
type Output = T
The returned type after indexing
fn index(&self, range: RangeTo<usize>) -> &T
The method for the indexing (container[index]
) operation
impl<T: ?Sized + DataConcat> Index<RangeFull> for Static9<T>
[src]
type Output = T
The returned type after indexing
fn index(&self, _: RangeFull) -> &T
The method for the indexing (container[index]
) operation
impl<T: StrLike + ?Sized> Clone for Static9<T> where
Box<T::Data>: Clone,
[src]
Box<T::Data>: Clone,
fn clone(&self) -> Static9<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Static9<T>)
Performs copy-assignment from source
. Read more
impl<T: StrLike + ?Sized> Hash for Static9<T> where
T::Data: Hash,
[src]
T::Data: Hash,
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: StrLike + PartialEq + ?Sized> PartialEq for Static9<T>
[src]
fn eq(&self, rhs: &Static9<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: StrLike + Eq + ?Sized> Eq for Static9<T>
[src]
impl<T: StrLike + PartialOrd + ?Sized> PartialOrd for Static9<T>
[src]
fn partial_cmp(&self, rhs: &Static9<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, rhs: &Static9<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, rhs: &Static9<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, rhs: &Static9<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, rhs: &Static9<T>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: StrLike + Ord + ?Sized> Ord for Static9<T>
[src]
fn cmp(&self, rhs: &Static9<T>) -> Ordering
This method returns an Ordering
between self
and other
. Read more