pub struct TypeTable { /* private fields */ }Expand description
A CBOR-LD registry type table.
Each top-level key is a value type, such as context, url, none, or a
JSON-LD datatype IRI. Each inner table maps original values to compressed
integer IDs.
Implementations§
Source§impl TypeTable
impl TypeTable
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an empty type table. The core context, url, and none
tables are added automatically before processing.
Sourcepub fn with_common_tables() -> Self
pub fn with_common_tables() -> Self
Creates the static table material used by the JavaScript reference implementation for its legacy/common registry examples.
Trait Implementations§
impl Eq for TypeTable
impl StructuralPartialEq for TypeTable
Auto Trait Implementations§
impl Freeze for TypeTable
impl RefUnwindSafe for TypeTable
impl Send for TypeTable
impl Sync for TypeTable
impl Unpin for TypeTable
impl UnsafeUnpin for TypeTable
impl UnwindSafe for TypeTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more