pub trait WithMeta {
// Required methods
fn meta(&self) -> Option<&Meta>;
fn set_meta(&mut self, meta: Option<Meta>);
// Provided method
fn with_meta(self, meta: Meta) -> Self
where Self: Sized { ... }
}
Expand description
Trait for types that can include _meta fields