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§
source§impl Blank
impl Blank
sourcepub fn new_with_offset(offset: usize) -> Self
pub fn new_with_offset(offset: usize) -> Self
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.
sourcepub fn new_with_prefix(prefix: String) -> Self
pub fn new_with_prefix(prefix: String) -> Self
Creates a new numbered generator with the given prefix.
sourcepub fn new_full(prefix: String, offset: usize) -> Self
pub fn new_full(prefix: String, offset: usize) -> Self
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.