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§
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>
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.