pub struct Node { /* private fields */ }Expand description
Information about a node in the dependency graph: the file, whether it’s dirty, mtime, etc.
Implementations§
Source§impl Node
impl Node
pub fn new(path: &[u8], slash_bits: u64) -> Self
pub fn id(&self) -> isize
pub fn set_id(&mut self, id: isize)
pub fn path(&self) -> &[u8] ⓘ
pub fn slash_bits(&self) -> u64
pub fn mtime(&self) -> TimeStamp
pub fn is_dirty(&self) -> bool
pub fn set_dirty(&mut self, dirty: bool)
pub fn mark_dirty(&mut self)
Sourcepub fn reset_state(&mut self)
pub fn reset_state(&mut self)
Mark as not-yet-stat()ed and not dirty.
Sourcepub fn mark_missing(&mut self)
pub fn mark_missing(&mut self)
Mark the Node as already-stat()ed and missing.
pub fn exists(&self) -> bool
pub fn status_known(&self) -> bool
pub fn in_edge(&self) -> Option<EdgeIndex>
pub fn set_in_edge(&mut self, edge: Option<EdgeIndex>)
pub fn out_edges(&self) -> &[EdgeIndex]
pub fn add_out_edge(&mut self, edge: EdgeIndex)
Sourcepub fn path_decanonicalized(&self) -> Vec<u8> ⓘ
pub fn path_decanonicalized(&self) -> Vec<u8> ⓘ
Get |path()| but use slash_bits to convert back to original slash styles.
Sourcepub fn stat(&mut self, disk_interface: &dyn DiskInterface) -> Result<(), String>
pub fn stat(&mut self, disk_interface: &dyn DiskInterface) -> Result<(), String>
Return false on error.
Sourcepub fn stat_if_necessary(
&mut self,
disk_interface: &dyn DiskInterface,
) -> Result<(), String>
pub fn stat_if_necessary( &mut self, disk_interface: &dyn DiskInterface, ) -> Result<(), String>
Return false on error.
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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