Trait fm::selectable_content::SelectableContent
source · pub trait SelectableContent<T> {
// Required methods
fn is_empty(&self) -> bool;
fn len(&self) -> usize;
fn next(&mut self);
fn prev(&mut self);
fn selected(&self) -> Option<&T>;
fn index(&self) -> usize;
fn content(&self) -> &Vec<T> ⓘ;
}Expand description
Make a content selectable content for a struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
Required Methods§
fn is_empty(&self) -> bool
fn len(&self) -> usize
fn next(&mut self)
fn prev(&mut self)
fn selected(&self) -> Option<&T>
fn index(&self) -> usize
fn content(&self) -> &Vec<T> ⓘ
Implementors§
impl SelectableContent<(char, PathBuf)> for Marks
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
impl SelectableContent<CompressionMethod> for Compresser
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
impl SelectableContent<Device> for DeviceOpener
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
impl SelectableContent<FileInfo> for PathContent
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
impl SelectableContent<TrashInfo> for Trash
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
impl SelectableContent<PathBuf> for Flagged
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
impl SelectableContent<PathBuf> for Shortcut
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.
impl SelectableContent<PathBuf> for History
Implement a selectable content for this struct.
This trait allows to navigate through a vector of element content_type.
It implements: is_empty, len, next, prev, selected.
selected returns an optional reference to the value.