Trait Item

Source
pub trait Item: SealedItem {
    // Provided method
    fn typed_encoding(&self) -> Vec<u8>  { ... }
}
Expand description

Trait for unified items, exposing specific methods on them.

Provided Methods§

Source

fn typed_encoding(&self) -> Vec<u8>

Returns the opaque typed encoding of this item.

This is the same encoding used internally by Encoding::encode. This API is for advanced usage; in most cases you should not depend on the typed encoding of items.

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.

Implementors§

Source§

impl<T: SealedItem> Item for T