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
sourceimpl<M> Blank<M>
impl<M> Blank<M>
sourcepub fn new_with_offset(metadata: M, offset: usize) -> Blank<M>
pub fn new_with_offset(metadata: M, offset: usize) -> Blank<M>
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(metadata: M, prefix: String) -> Blank<M>
pub fn new_with_prefix(metadata: M, prefix: String) -> Blank<M>
Creates a new numbered generator with the given prefix.
sourcepub fn new_full(metadata: M, prefix: String, offset: usize) -> Blank<M>
pub fn new_full(metadata: M, prefix: String, offset: usize) -> Blank<M>
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 metadata(&self) -> &M
pub fn next_blank_id(&mut self) -> BlankIdBuf
Trait Implementations
Auto Trait Implementations
impl<M> RefUnwindSafe for Blank<M>where
M: RefUnwindSafe,
impl<M> Send for Blank<M>where
M: Send,
impl<M> Sync for Blank<M>where
M: Sync,
impl<M> Unpin for Blank<M>where
M: Unpin,
impl<M> UnwindSafe for Blank<M>where
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more