pub struct IdRegistry { /* private fields */ }Implementations§
Source§impl IdRegistry
impl IdRegistry
pub fn new() -> Self
Sourcepub fn set_id_implicit(
&mut self,
node: &mut Node,
line: u32,
source: &str,
) -> Option<Node>
pub fn set_id_implicit( &mut self, node: &mut Node, line: u32, source: &str, ) -> Option<Node>
Register an implicit target (section). On duplicate: INFO/1 message
(placed by the caller inside the new section after its title), new
node dupname’d immediately, old node queued for
apply_dupname_fixups.
Sourcepub fn set_id_explicit(
&mut self,
node: &mut Node,
line: u32,
source: &str,
internal: bool,
refuri: Option<&str>,
) -> Option<Node>
pub fn set_id_explicit( &mut self, node: &mut Node, line: u32, source: &str, internal: bool, refuri: Option<&str>, ) -> Option<Node>
Register an explicit target (.. _name: forms). On duplicate:
WARNING/2; backrefs appear on the message only for internal targets
(probe-verified: external/refuri duplicates carry no backrefs).
Sourcepub fn set_id_anonymous(&mut self, node: &mut Node)
pub fn set_id_anonymous(&mut self, node: &mut Node)
Register an anonymous target: always an auto id, never a name.
pub fn take_fixups(&mut self) -> Vec<DupnameFixup>
Trait Implementations§
Source§impl Debug for IdRegistry
impl Debug for IdRegistry
Source§impl Default for IdRegistry
impl Default for IdRegistry
Source§fn default() -> IdRegistry
fn default() -> IdRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdRegistry
impl RefUnwindSafe for IdRegistry
impl Send for IdRegistry
impl Sync for IdRegistry
impl Unpin for IdRegistry
impl UnsafeUnpin for IdRegistry
impl UnwindSafe for IdRegistry
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more