pub struct CanonicalForm { /* private fields */ }Expand description
An opaque comparison key with canonical leaf and body sizes.
Implementations§
Source§impl CanonicalForm
impl CanonicalForm
Sourcepub fn owner_role_key(&self) -> Option<&str>
pub fn owner_role_key(&self) -> Option<&str>
The key of a method view with its owner’s parameters labelled by their role in the owner
type, when the view uses one. key numbers them by first use instead.
Sourcepub fn leaf_tokens(&self) -> usize
pub fn leaf_tokens(&self) -> usize
Canonical leaf tokens, excluding framing.
Sourcepub fn body_units(&self) -> usize
pub fn body_units(&self) -> usize
Canonical body units, excluding framing.
Trait Implementations§
Source§impl Debug for CanonicalForm
impl Debug for CanonicalForm
Source§impl Display for CanonicalForm
impl Display for CanonicalForm
impl Eq for CanonicalForm
Source§impl Hash for CanonicalForm
impl Hash for CanonicalForm
Auto Trait Implementations§
impl Freeze for CanonicalForm
impl RefUnwindSafe for CanonicalForm
impl Send for CanonicalForm
impl Sync for CanonicalForm
impl Unpin for CanonicalForm
impl UnsafeUnpin for CanonicalForm
impl UnwindSafe for CanonicalForm
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