pub struct Blank { /* 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 the next fresh identifier in the given vocabulary.

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

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 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.