pub struct Blank<M> { /* private fields */ }
Expand description

Generates numbered blank node identifiers, with an optional prefix.

This generator can create usize::MAX unique blank node identifiers. If Generator::next is called usize::MAX + 1 times, it will panic.

Implementations

Creates a new numbered generator with no prefix.

Creates a new numbered generator with no prefix, starting with the given offset number.

The returned generator can create usize::MAX - offset unique blank node identifiers before panicking.

Creates a new numbered generator with the given prefix.

Creates a new numbered generator with the given prefix, starting with the given offset number.

The returned generator can create usize::MAX - offset unique blank node identifiers before panicking.

Returns the prefix of this generator.

Returns the number of already generated identifiers.

Trait Implementations

Returns the “default value” for a type. Read more
Generates a new unique blank node identifier.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Wraps self inside a Meta<Self, M> using the given metadata. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The target type of the conversion, which can be borrowed as a Id<T, B>.
Convert the value into a reference.
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.