Struct stylish_stringlike::text::Spans [−][src]
pub struct Spans<T> { /* fields omitted */ }
Expand description
A string with various styles applied to the span. Styles do not not cascade. Only the most recent style applies to the current character.
Implementations
Trait Implementations
impl<T> BoundedWidth for Spans<T>
[src]
impl<T> BoundedWidth for Spans<T>
[src]fn bounded_width(&self) -> usize
[src]
fn bounded_width(&self) -> usize
[src]Return the finite unicode width of an object Read more
impl<'a, T, U> FromIterator<U> for Spans<T> where
T: Clone + PartialEq + 'a,
U: Borrow<Spans<T>> + 'a,
[src]
impl<'a, T, U> FromIterator<U> for Spans<T> where
T: Clone + PartialEq + 'a,
U: Borrow<Spans<T>> + 'a,
[src]fn from_iter<I>(iter: I) -> Spans<T> where
I: IntoIterator<Item = U>,
[src]
fn from_iter<I>(iter: I) -> Spans<T> where
I: IntoIterator<Item = U>,
[src]Creates a value from an iterator. Read more
impl<T: PartialEq> Eq for Spans<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Spans<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Spans<T> where
T: Send,
T: Send,
impl<T> Sync for Spans<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Spans<T>
impl<T> UnwindSafe for Spans<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more