pub struct Dir {
pub path: PathBuf,
pub cd_count: u32,
pub dirtype: DirType,
}Fields§
§path: PathBuf§cd_count: u32§dirtype: DirTypeImplementations§
Source§impl Dir
impl Dir
pub fn invalid() -> Self
pub fn path(self, path: PathBuf) -> Self
pub fn dirtype(self, dir_type: DirType) -> Self
pub fn new(path: PathBuf, cd_count: u32, dirtype: DirType) -> Dir
pub fn new_visited(dir: PathBuf) -> Self
pub fn add_cd_count(&mut self)
pub fn as_dirtype(&mut self, dirtype: DirType)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dir
impl<'de> Deserialize<'de> for Dir
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromIterator<Dir> for DirVec
impl FromIterator<Dir> for DirVec
Source§impl PartialOrd for Dir
impl PartialOrd for Dir
impl StructuralPartialEq for Dir
Auto Trait Implementations§
impl Freeze for Dir
impl RefUnwindSafe for Dir
impl Send for Dir
impl Sync for Dir
impl Unpin for Dir
impl UnwindSafe for Dir
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