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