pub struct UnexpectedRawNode { /* private fields */ }Expand description
Details explaining why a Raw node did not match the pinned shape.
Implementations§
Source§impl UnexpectedRawNode
impl UnexpectedRawNode
pub fn tag(&self) -> Option<&str>
pub fn reason(&self) -> &RawNodeReason
pub fn offending_attributes(&self) -> &[String]
Source§impl UnexpectedRawNode
impl UnexpectedRawNode
Sourcepub fn shape_error(&self, path: RdPath) -> RdShapeError
pub fn shape_error(&self, path: RdPath) -> RdShapeError
Converts corpus classification details into the shared shape vocabulary.
Trait Implementations§
Source§impl Clone for UnexpectedRawNode
impl Clone for UnexpectedRawNode
Source§fn clone(&self) -> UnexpectedRawNode
fn clone(&self) -> UnexpectedRawNode
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 UnexpectedRawNode
impl Debug for UnexpectedRawNode
impl Eq for UnexpectedRawNode
Source§impl PartialEq for UnexpectedRawNode
impl PartialEq for UnexpectedRawNode
impl StructuralPartialEq for UnexpectedRawNode
Auto Trait Implementations§
impl Freeze for UnexpectedRawNode
impl RefUnwindSafe for UnexpectedRawNode
impl Send for UnexpectedRawNode
impl Sync for UnexpectedRawNode
impl Unpin for UnexpectedRawNode
impl UnsafeUnpin for UnexpectedRawNode
impl UnwindSafe for UnexpectedRawNode
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