Skip to main content

NetdocEncodableFields

Trait NetdocEncodableFields 

Source
pub trait NetdocEncodableFields {
    // Required method
    fn encode_fields(&self, out: &mut NetdocEncoder) -> Result<(), Bug>;
}
Expand description

Collections of fields that can be encoded in the netdoc metaformat

Whole documents have structure; a NetdocEncodableFields does not.

Required Methods§

Source

fn encode_fields(&self, out: &mut NetdocEncoder) -> Result<(), Bug>

Append the document onto out

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: NetdocEncodableFields> NetdocEncodableFields for Arc<T>

Source§

fn encode_fields(&self, out: &mut NetdocEncoder) -> Result<(), Bug>

Source§

impl<T: NetdocEncodableFields> NetdocEncodableFields for Intern<T>

Source§

fn encode_fields(&self, out: &mut NetdocEncoder) -> Result<(), Bug>

Implementors§