pub struct Split<T, U> {
pub delim: Option<T>,
pub segment: Option<U>,
}Expand description
A segment of text split on a delimiter. The delimiter and the segment are both included because the delimiter may have a style applied to it.
Fields§
§delim: Option<T>§segment: Option<U>Trait Implementations§
impl<T: Eq, U: Eq> Eq for Split<T, U>
impl<T, U> StructuralPartialEq for Split<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for Split<T, U>
impl<T, U> RefUnwindSafe for Split<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Split<T, U>
impl<T, U> Sync for Split<T, U>
impl<T, U> Unpin for Split<T, U>
impl<T, U> UnwindSafe for Split<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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