#[non_exhaustive]pub enum CellImage {
Symbol(String),
FileIcon(PathBuf),
Image(Arc<[u8]>),
}Expand description
A small image shown before a cell’s text (see Column::icon).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Symbol(String)
An SF Symbol by name.
FileIcon(PathBuf)
The Finder’s icon for a file or folder.
Image(Arc<[u8]>)
An image from its encoded bytes (PNG, JPEG, HEIC, PDF… anything
NSImage reads), scaled to fit: a thumbnail of a photo a row holds.
Trait Implementations§
impl StructuralPartialEq for CellImage
Auto Trait Implementations§
impl Forget for CellImage
impl Freeze for CellImage
impl Move for CellImage
impl RefUnwindSafe for CellImage
impl Send for CellImage
impl Sync for CellImage
impl Unpin for CellImage
impl UnsafeUnpin for CellImage
impl UnwindSafe for CellImage
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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