Struct cursive_core::utils::span::Span
source · pub struct Span<'a, T> {
pub content: &'a str,
pub attr: &'a T,
pub width: usize,
}
Expand description
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: Eq> Eq for Span<'a, T>
impl<'a, T> StructuralPartialEq for Span<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Span<'a, T>
impl<'a, T> RefUnwindSafe for Span<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Span<'a, T>where
T: Sync,
impl<'a, T> Sync for Span<'a, T>where
T: Sync,
impl<'a, T> Unpin for Span<'a, T>
impl<'a, T> UnwindSafe for Span<'a, T>where
T: RefUnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.