pub struct Project { /* private fields */ }Trait Implementations§
source§impl SkimItem for Project
impl SkimItem for Project
source§fn display<'a>(&'a self, _context: DisplayContext<'a>) -> AnsiString<'a>
fn display<'a>(&'a self, _context: DisplayContext<'a>) -> AnsiString<'a>
The content to be displayed on the item list, could contain ANSI properties
source§fn preview(&self, _context: PreviewContext<'_>) -> ItemPreview
fn preview(&self, _context: PreviewContext<'_>) -> ItemPreview
Custom preview content, default to
ItemPreview::Global which will use global preview
setting(i.e. the command set by preview option)source§fn output(&self) -> Cow<'_, str>
fn output(&self) -> Cow<'_, str>
Get output text(after accept), default to
text()
Note that this function is intended to be used by the caller of skim and will not be used by
skim. And since skim will return the item back in SkimOutput, if string is not what you
want, you could still use downcast to retain the pointer to the original struct.Auto Trait Implementations§
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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