[][src]Struct broot::display::MatchedString

pub struct MatchedString<'a> {
    pub name_match: Option<NameMatch>,
    pub string: &'a str,
    pub base_style: &'a CompoundStyle,
    pub match_style: &'a CompoundStyle,
    pub display_width: Option<usize>,
    pub align: Alignment,
}

Fields

name_match: Option<NameMatch>string: &'a strbase_style: &'a CompoundStylematch_style: &'a CompoundStyledisplay_width: Option<usize>align: Alignment

Implementations

impl<'a, 'w> MatchedString<'a>[src]

pub fn new(
    name_match: Option<NameMatch>,
    string: &'a str,
    base_style: &'a CompoundStyle,
    match_style: &'a CompoundStyle
) -> Self
[src]

pub fn fill(&mut self, width: usize, align: Alignment)[src]

pub fn queue_on<W>(&self, cw: &mut CropWriter<'w, W>) -> Result<(), Error> where
    W: Write
[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MatchedString<'a>[src]

impl<'a> Send for MatchedString<'a>[src]

impl<'a> Sync for MatchedString<'a>[src]

impl<'a> Unpin for MatchedString<'a>[src]

impl<'a> UnwindSafe for MatchedString<'a>[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> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,