pub struct ChargeIdentity { /* private fields */ }Expand description
Whose debit a charge is: its key, which names the tool and — for a print this system watched — the print, and for a print it never saw, the print it recorded that one as, when one is linked.
The fields are private, so a watched print’s charge cannot carry a second print beside the one its key names.
Implementations§
Source§impl ChargeIdentity
impl ChargeIdentity
Sourcepub const fn of(key: ChargeKey) -> Self
pub const fn of(key: ChargeKey) -> Self
The identity a key alone gives: a watched print’s own, or an unobserved print linked to none.
Trait Implementations§
Source§impl Clone for ChargeIdentity
impl Clone for ChargeIdentity
Source§impl Debug for ChargeIdentity
impl Debug for ChargeIdentity
impl Eq for ChargeIdentity
Source§impl PartialEq for ChargeIdentity
impl PartialEq for ChargeIdentity
impl StructuralPartialEq for ChargeIdentity
Auto Trait Implementations§
impl Forget for ChargeIdentity
impl Freeze for ChargeIdentity
impl Move for ChargeIdentity
impl RefUnwindSafe for ChargeIdentity
impl Send for ChargeIdentity
impl Sync for ChargeIdentity
impl Unpin for ChargeIdentity
impl UnsafeUnpin for ChargeIdentity
impl UnwindSafe for ChargeIdentity
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