Struct cargo_rx::ExampleFileItem
source · [−]Expand description
Represents an example file item
Fields
file_path: PathBufAbsolute file path to the example
file_stem: StringFilename of the example, excluding the file extension
Trait Implementations
sourceimpl SkimItem for ExampleFileItem
impl SkimItem for ExampleFileItem
sourcefn 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) Read more
sourcefn display(&'a self, context: DisplayContext<'a>) -> AnsiString<'a>
fn display(&'a self, context: DisplayContext<'a>) -> AnsiString<'a>
The content to be displayed on the item list, could contain ANSI properties
sourcefn 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. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExampleFileItem
impl Send for ExampleFileItem
impl Sync for ExampleFileItem
impl Unpin for ExampleFileItem
impl UnwindSafe for ExampleFileItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more