Struct skim::DisplayContext
source · pub struct DisplayContext<'a> {
pub text: &'a str,
pub score: i32,
pub matches: Option<Matches<'a>>,
pub container_width: usize,
pub highlight_attr: Attr,
}Fields§
§text: &'a str§score: i32§matches: Option<Matches<'a>>§container_width: usize§highlight_attr: AttrTrait Implementations§
source§impl<'a> From<DisplayContext<'a>> for AnsiString
impl<'a> From<DisplayContext<'a>> for AnsiString
source§fn from(context: DisplayContext<'a>) -> Self
fn from(context: DisplayContext<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DisplayContext<'a>
impl<'a> Send for DisplayContext<'a>
impl<'a> Sync for DisplayContext<'a>
impl<'a> Unpin for DisplayContext<'a>
impl<'a> UnwindSafe for DisplayContext<'a>
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