pub struct BlankId(_);
Expand description

Blank node identifier.

Blank nodes are non-uniquely identified nodes that are local to a JSON-LD document.

{
  "@id": "_:node1",
  "name": "Local blank node 1",
  "knows": {
    "name": "Local blank node 2, that needs to refer to local node 1",
    "knows": { "@id": "_:node1" }
  }
}

This type represent a blank node identifier of the form _:name. It is used by the Reference type to reference blank and non-blank nodes.

Implementations

Create a new blank identifier from a given name.

The created blank node will be of the form _:name.

Get the blank identifier as a string.

This includes the _: prefix. Use BlankId::name to get the suffix part only.

Get the name/suffix part of the identifier.

For a blank identifier _:name, this returns a string slice to name.

Trait Implementations

Returns a JSON string of the form _:name.

Converts this value into a K JSON value using the default metadata value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.