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

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

If the string contains sep, then cut the tail of this matched string and return it. Note: a non none display_width currently prevents splitting (i.e. it’s not yet implemented and would involve compute width)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.