pub struct FileTree {
pub root: Rc<RefCell<FileNode>>,
pub size: u64,
pub file_size: u64,
pub name: String,
pub id: Uuid,
}Fields§
§root: Rc<RefCell<FileNode>>§size: u64§file_size: u64§name: String§id: UuidImplementations§
Source§impl FileTree
impl FileTree
pub fn search<E>( tree: Rc<RefCell<Self>>, evaluator: &E, ) -> Vec<Rc<RefCell<FileNode>>>
pub fn copy(tree: Rc<RefCell<Self>>) -> Rc<RefCell<Self>>
pub fn stack_trees(trees: Vec<Rc<RefCell<FileTree>>>) -> Rc<RefCell<FileTree>>
pub fn stack(lower: Rc<RefCell<Self>>, upper: Rc<RefCell<Self>>)
pub fn compare_mark(lower: Rc<RefCell<Self>>, upper: Rc<RefCell<Self>>)
pub fn get_node( tree: Rc<RefCell<Self>>, path: &str, ) -> Option<Rc<RefCell<FileNode>>>
pub fn add_path( tree: Rc<RefCell<Self>>, path: &str, data: FileInfo, ) -> (Option<Rc<RefCell<FileNode>>>, Vec<Rc<RefCell<FileNode>>>)
pub fn remove_path(tree: Rc<RefCell<Self>>, path: &str)
pub fn build_from_layer_tar<R: Read>( ar: Archive<R>, ) -> Result<Rc<RefCell<Self>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileTree
impl !RefUnwindSafe for FileTree
impl !Send for FileTree
impl !Sync for FileTree
impl Unpin for FileTree
impl !UnwindSafe for FileTree
Blanket Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more