PathAnnotate

Trait PathAnnotate 

Source
pub trait PathAnnotate {
    // Required methods
    fn iter_ancestor_path(
        &self,
    ) -> Box<dyn Iterator<Item = AnnotatedSborAncestor<'_>> + '_>;
    fn annotated_leaf(&self) -> Option<AnnotatedSborPartialLeaf<'_>>;

    // Provided methods
    fn format_path(&self) -> String { ... }
    fn write_path(&self, f: &mut impl Write) -> Result<(), Error> { ... }
}

Required Methods§

Provided Methods§

Source

fn format_path(&self) -> String

Source

fn write_path(&self, f: &mut impl Write) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'s, 'a, E> PathAnnotate for (&'a FullLocation<'s, E>, &'a SchemaV1<<E as CustomExtension>::CustomSchema>)
where E: CustomExtension,

Source§

impl<'s, 'a, S> PathAnnotate for (&'a TypeFullPath, &'a SchemaV1<S>, &'a SchemaV1<S>, &'a SchemaComparisonErrorDetail<S>)
where S: CustomSchema,

Implementors§