pub struct VisitEntry {
pub id: DefinitionId,
pub path: Option<String>,
pub count: u32,
}Expand description
One visit/turn-count entry: a scope id and its count, plus (when the scope
is a named knot/stitch) an advisory author path for human inspection. The
id is the load key; path is cosmetic.
Fields§
§id: DefinitionIdThe counted scope’s definition id (load key).
path: Option<String>Author path for a named scope, e.g. "forest.clearing". Absent for
anonymous counted containers (gathers, choice points).
count: u32The count.
Trait Implementations§
Source§impl Clone for VisitEntry
impl Clone for VisitEntry
Source§fn clone(&self) -> VisitEntry
fn clone(&self) -> VisitEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisitEntry
impl Debug for VisitEntry
Source§impl<'de> Deserialize<'de> for VisitEntry
impl<'de> Deserialize<'de> for VisitEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VisitEntry
impl PartialEq for VisitEntry
Source§fn eq(&self, other: &VisitEntry) -> bool
fn eq(&self, other: &VisitEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VisitEntry
impl Serialize for VisitEntry
impl StructuralPartialEq for VisitEntry
Auto Trait Implementations§
impl Freeze for VisitEntry
impl RefUnwindSafe for VisitEntry
impl Send for VisitEntry
impl Sync for VisitEntry
impl Unpin for VisitEntry
impl UnsafeUnpin for VisitEntry
impl UnwindSafe for VisitEntry
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