pub trait Any<T, B> {
// Required method
fn as_ref(&self) -> Ref<'_, T, B>;
// Provided methods
fn id(&self) -> Option<&Id<T, B>> { ... }
fn language<'a>(&'a self) -> Option<&'a LenientLangTag>
where T: 'a,
B: 'a { ... }
fn is_value(&self) -> bool { ... }
fn is_node(&self) -> bool { ... }
fn is_graph(&self) -> bool { ... }
fn is_list(&self) -> bool { ... }
}Expand description
Abstract object.
Required Methods§
Provided Methods§
Sourcefn id(&self) -> Option<&Id<T, B>>
fn id(&self) -> Option<&Id<T, B>>
Returns the identifier (@id) of the object, if it is a node object
with one.
Sourcefn language<'a>(&'a self) -> Option<&'a LenientLangTag>where
T: 'a,
B: 'a,
fn language<'a>(&'a self) -> Option<&'a LenientLangTag>where
T: 'a,
B: 'a,
Returns the language tag of this value, if it carries one.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".