Skip to main content

Removables

Trait Removables 

Source
pub trait Removables {
    // Required method
    fn removables(&self, retention_list: &[String]) -> Vec<Range<usize>>;
}
Expand description

Common method for anything that has removable parts, such as directories.

Required Methods§

Source

fn removables(&self, retention_list: &[String]) -> Vec<Range<usize>>

Get removable ranges relative to the start of a section or directory. The respective section/directory needs to know its own offset.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§