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§

source

fn is_empty(&self) -> bool

source

fn len(&self) -> usize

source

fn next(&mut self)

source

fn prev(&mut self)

source

fn selected(&self) -> Option<&T>

source

fn index(&self) -> usize

source

fn content(&self) -> &Vec<T>

Implementors§

source§

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.

source§

impl SelectableContent<(String, bool)> for ShellMenu

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.

source§

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.

source§

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.

source§

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.

source§

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.

source§

impl SelectableContent<String> for Bulk

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.

source§

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.

source§

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.

source§

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.