pub struct StyledRange {
pub range: Range<usize>,
pub fg: (u8, u8, u8),
pub bold: bool,
pub italic: bool,
}Expand description
Foreground color + style for a byte range of one line.
Fields§
§range: Range<usize>§fg: (u8, u8, u8)§bold: bool§italic: boolTrait Implementations§
Source§impl Clone for StyledRange
impl Clone for StyledRange
Source§fn clone(&self) -> StyledRange
fn clone(&self) -> StyledRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyledRange
impl Debug for StyledRange
impl Eq for StyledRange
Source§impl PartialEq for StyledRange
impl PartialEq for StyledRange
Source§fn eq(&self, other: &StyledRange) -> bool
fn eq(&self, other: &StyledRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StyledRange
Auto Trait Implementations§
impl Freeze for StyledRange
impl RefUnwindSafe for StyledRange
impl Send for StyledRange
impl Sync for StyledRange
impl Unpin for StyledRange
impl UnsafeUnpin for StyledRange
impl UnwindSafe for StyledRange
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§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.