Skip to main content

AnyJsonLdObject

Trait AnyJsonLdObject 

Source
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§

Source

fn as_ref(&self) -> JsonLdObjectRef<'_>

Provided Methods§

Source

fn id(&self) -> Option<&JsonLdLenient<Id>>

Source

fn language(&self) -> Option<JsonLdLenient<&LangTag>>

Source

fn is_value(&self) -> bool

Source

fn is_node(&self) -> bool

Source

fn is_graph(&self) -> bool

Source

fn is_list(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§