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.
pub fn next_blank_id(&mut self) -> BlankIdBuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blank
impl RefUnwindSafe for Blank
impl Send for Blank
impl Sync for Blank
impl Unpin for Blank
impl UnwindSafe for Blank
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