pub struct SourceHash {
pub hex: String,
pub count: usize,
}Expand description
One source’s identity in the stamp: EnglishSourceHash’s digest of its
non-whitespace bytes, and how many there were.
Fields§
§hex: String§count: usizeImplementations§
Source§impl SourceHash
impl SourceHash
pub fn of(text: &str) -> SourceHash
Trait Implementations§
Source§impl Clone for SourceHash
impl Clone for SourceHash
Source§impl Debug for SourceHash
impl Debug for SourceHash
impl Eq for SourceHash
Source§impl PartialEq for SourceHash
impl PartialEq for SourceHash
impl StructuralPartialEq for SourceHash
Auto Trait Implementations§
impl Freeze for SourceHash
impl RefUnwindSafe for SourceHash
impl Send for SourceHash
impl Sync for SourceHash
impl Unpin for SourceHash
impl UnsafeUnpin for SourceHash
impl UnwindSafe for SourceHash
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