pub struct FileNameProps { /* private fields */ }Expand description
Metadata history files’ filename contains. The filename can be precisely restored from it.
Implementations§
Source§impl FileNameProps
impl FileNameProps
Sourcepub fn new(
control: u32,
prev_ctl: u32,
order: Vec<u32>,
tag: Option<String>,
) -> Result<FileNameProps, FsError>
pub fn new( control: u32, prev_ctl: u32, order: Vec<u32>, tag: Option<String>, ) -> Result<FileNameProps, FsError>
Create item from metadata.
pub fn from(filename: &str) -> Option<FileNameProps>
Sourcepub fn prev_ctl(&self) -> u32
pub fn prev_ctl(&self) -> u32
If this item is derived, “control” of the parent item, otherwise this item’s “control”
Sourcepub fn order(&self) -> &[u32]
pub fn order(&self) -> &[u32]
numbers which describes how this item is derived.
if the order is [3,8,2], this item depends on items which has the order of [3] and [3,8]
order.len >= 1
Sourcepub fn order_base(&self) -> &[u32]
pub fn order_base(&self) -> &[u32]
the last item of the order is excluded panics if the order.len() == 0
Sourcepub fn calc_filename(&self) -> String
pub fn calc_filename(&self) -> String
calculate the filename from the metadata this item contains.
Trait Implementations§
Source§impl Clone for FileNameProps
impl Clone for FileNameProps
Source§fn clone(&self) -> FileNameProps
fn clone(&self) -> FileNameProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileNameProps
impl Debug for FileNameProps
Source§impl PartialEq for FileNameProps
impl PartialEq for FileNameProps
impl StructuralPartialEq for FileNameProps
Auto Trait Implementations§
impl Freeze for FileNameProps
impl RefUnwindSafe for FileNameProps
impl Send for FileNameProps
impl Sync for FileNameProps
impl Unpin for FileNameProps
impl UnwindSafe for FileNameProps
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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