pub enum Unit {
Dir(Dir),
File(File),
}
Expand description
Enum based Resource that is either a File or a Dir
Variants§
Implementations§
Trait Implementations§
Source§impl Ord for Unit
impl Ord for Unit
Source§impl PartialOrd for Unit
impl PartialOrd for Unit
Source§impl Resource for Unit
impl Resource for Unit
Source§fn timestamp(&self) -> Option<SystemTime>
fn timestamp(&self) -> Option<SystemTime>
Name of the resource used for logging and error reporting
Return resource timestamp. Can be None for input resources that should be considered as
changed in every build run or output resources that do not exists yet.
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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