pub struct CombinedStrView<'a> { /* private fields */ }Expand description
A borrowed view into a CombinedStr, representing a sub-range
that may span multiple segments.
Internally stores the trimmed first slice, any whole middle segments
(borrowed from the original segments array), and the trimmed last slice.
When the range falls within a single segment, middle is empty and
last is "".
Implementations§
Trait Implementations§
Source§impl<'a> Add<CombinedStrView<'a>> for String
Available on crate feature alloc only.
impl<'a> Add<CombinedStrView<'a>> for String
Available on crate feature
alloc only.Source§impl<'a> AddAssign<CombinedStrView<'a>> for Cow<'a, str>
Available on crate feature alloc only.
impl<'a> AddAssign<CombinedStrView<'a>> for Cow<'a, str>
Available on crate feature
alloc only.Source§fn add_assign(&mut self, rhs: CombinedStrView<'a>)
fn add_assign(&mut self, rhs: CombinedStrView<'a>)
Performs the
+= operation. Read moreSource§impl<'a> AddAssign<CombinedStrView<'a>> for String
Available on crate feature alloc only.
impl<'a> AddAssign<CombinedStrView<'a>> for String
Available on crate feature
alloc only.Source§fn add_assign(&mut self, rhs: CombinedStrView<'a>)
fn add_assign(&mut self, rhs: CombinedStrView<'a>)
Performs the
+= operation. Read moreSource§impl<'a> Clone for CombinedStrView<'a>
impl<'a> Clone for CombinedStrView<'a>
Source§fn clone(&self) -> CombinedStrView<'a>
fn clone(&self) -> CombinedStrView<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CombinedStrView<'a>
impl<'a> Debug for CombinedStrView<'a>
Source§impl Display for CombinedStrView<'_>
impl Display for CombinedStrView<'_>
Source§impl<'a> From<CombinedStrView<'a>> for Cow<'a, str>
Available on crate feature alloc only.
impl<'a> From<CombinedStrView<'a>> for Cow<'a, str>
Available on crate feature
alloc only.Source§fn from(value: CombinedStrView<'a>) -> Self
fn from(value: CombinedStrView<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CombinedStrView<'a>> for String
Available on crate feature alloc only.
impl<'a> From<CombinedStrView<'a>> for String
Available on crate feature
alloc only.Source§fn from(value: CombinedStrView<'a>) -> Self
fn from(value: CombinedStrView<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoIterator for CombinedStrView<'a>
impl<'a> IntoIterator for CombinedStrView<'a>
Source§impl<'a, const N: usize> PartialEq<CombinedStr<'a, N>> for CombinedStrView<'_>
impl<'a, const N: usize> PartialEq<CombinedStr<'a, N>> for CombinedStrView<'_>
Source§impl PartialEq<CombinedStrView<'_>> for String
Available on crate feature alloc only.
impl PartialEq<CombinedStrView<'_>> for String
Available on crate feature
alloc only.Source§impl<'a, const N: usize> PartialEq<CombinedStrView<'a>> for CombinedStr<'a, N>
impl<'a, const N: usize> PartialEq<CombinedStrView<'a>> for CombinedStr<'a, N>
Source§impl PartialEq<String> for CombinedStrView<'_>
Available on crate feature alloc only.
impl PartialEq<String> for CombinedStrView<'_>
Available on crate feature
alloc only.Source§impl PartialEq<str> for CombinedStrView<'_>
impl PartialEq<str> for CombinedStrView<'_>
Source§impl PartialEq for CombinedStrView<'_>
impl PartialEq for CombinedStrView<'_>
impl<'a> Copy for CombinedStrView<'a>
impl Eq for CombinedStrView<'_>
Auto Trait Implementations§
impl<'a> Freeze for CombinedStrView<'a>
impl<'a> RefUnwindSafe for CombinedStrView<'a>
impl<'a> Send for CombinedStrView<'a>
impl<'a> Sync for CombinedStrView<'a>
impl<'a> Unpin for CombinedStrView<'a>
impl<'a> UnsafeUnpin for CombinedStrView<'a>
impl<'a> UnwindSafe for CombinedStrView<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more