pub trait AnyJsonLdObject {
// Required method
fn as_ref(&self) -> JsonLdObjectRef<'_>;
// Provided methods
fn id(&self) -> Option<&JsonLdLenient<Id>> { ... }
fn language(&self) -> Option<JsonLdLenient<&LangTag>> { ... }
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§
fn as_ref(&self) -> JsonLdObjectRef<'_>
Provided Methods§
fn id(&self) -> Option<&JsonLdLenient<Id>>
fn language(&self) -> Option<JsonLdLenient<&LangTag>>
fn is_value(&self) -> bool
fn is_node(&self) -> bool
fn is_graph(&self) -> bool
fn is_list(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".