pub(crate) struct Compare<'a> {
pub krate: &'a TokenStream,
pub owned_files: bool,
}Expand description
How generated code compares targets at run time.
Fields§
§krate: &'a TokenStreamPath to the psync crate.
owned_files: boolowned_files: files are compared by identity (inode, resolved path), not path text.
Implementations§
Source§impl Compare<'_>
impl Compare<'_>
Sourcefn text(&self, e: &Expr) -> TokenStream
fn text(&self, e: &Expr) -> TokenStream
The text of a URL or key, None at run time when its type has no Display.
Sourcefn test(&self, a: &Expr, b: &Expr, how: How) -> TokenStream
fn test(&self, a: &Expr, b: &Expr, how: How) -> TokenStream
The test that a and b, compared as how, may be one target.
Sourcepub fn item(&self, e: &Expr, how: How) -> TokenStream
pub fn item(&self, e: &Expr, how: How) -> TokenStream
One target of a loop item, for the per-item check.
Auto Trait Implementations§
impl<'a> Freeze for Compare<'a>
impl<'a> RefUnwindSafe for Compare<'a>
impl<'a> !Send for Compare<'a>
impl<'a> !Sync for Compare<'a>
impl<'a> Unpin for Compare<'a>
impl<'a> UnsafeUnpin for Compare<'a>
impl<'a> UnwindSafe for Compare<'a>
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