[][src]Struct cursive::utils::span::Span

pub struct Span<'a, T> {
    pub content: &'a str,
    pub attr: &'a T,
    pub width: usize,
}

A resolved span borrowing its source string.

Fields

content: &'a str

Content of this span.

attr: &'a T

Attribute associated to this span.

width: usize

Width of the text for this span.

Trait Implementations

impl<'a, T> Clone for Span<'a, T> where
    T: Clone
[src]

impl<'a, T> Debug for Span<'a, T> where
    T: Debug
[src]

impl<'a, T> Eq for Span<'a, T> where
    T: Eq
[src]

impl<'a, T> Hash for Span<'a, T> where
    T: Hash
[src]

impl<'a, T> PartialEq<Span<'a, T>> for Span<'a, T> where
    T: PartialEq<T>, 
[src]

impl<'a, T> StructuralEq for Span<'a, T>[src]

impl<'a, T> StructuralPartialEq for Span<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Span<'a, T> where
    T: RefUnwindSafe
[src]

impl<'a, T> Send for Span<'a, T> where
    T: Sync
[src]

impl<'a, T> Sync for Span<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for Span<'a, T>[src]

impl<'a, T> UnwindSafe for Span<'a, T> where
    T: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> With for T[src]