pub trait Element {
// Required methods
fn has_id(&self) -> bool;
fn id(&self) -> &Option<String>;
fn set_id<T: Into<String>>(self, id: T) -> Self;
fn has_extension(&self) -> bool;
fn extension(&self) -> &Option<Vec<Extension>>;
fn set_extension(self, ext: Vec<Extension>) -> Self;
fn add_extension(self, ext: Extension) -> Self;
}
Required Methods§
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
Object Safety§
This trait is not object safe.