[][src]Struct lms::file_ops::FileSets

pub struct FileSets { /* fields omitted */ }

A struct that represents sets of different types of files

Methods

impl FileSets[src]

pub fn with(
    files: HashSet<File>,
    dirs: HashSet<Dir>,
    symlinks: HashSet<Symlink>
) -> Self
[src]

Initializes FileSets with the given sets

Arguments

  • files: a set of files
  • dirs: a set of dirs
  • symlinks: a set of symlinks

Returns

A newly created FileSets struct

pub fn files(&self) -> &HashSet<File>[src]

Gets the set of files

Returns

The FileSets set of files

pub fn dirs(&self) -> &HashSet<Dir>[src]

Gets the set of dirs

Returns

The FileSets set of dirs

Gets the set of symlinks

Returns

The FileSets set of symlinks

Trait Implementations

impl PartialEq<FileSets> for FileSets[src]

impl Eq for FileSets[src]

impl Debug for FileSets[src]

Auto Trait Implementations

impl Send for FileSets

impl Sync for FileSets

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T