pub struct RefResolver { /* private fields */ }Implementations§
Source§impl RefResolver
impl RefResolver
Sourcepub fn new(elements: &IndexMap<String, Element>) -> Self
pub fn new(elements: &IndexMap<String, Element>) -> Self
Build a resolver from a parsed elements map (as produced by parser::parse_file).
Sourcepub fn to_human(&self, epoch_ref: &str) -> Option<&str>
pub fn to_human(&self, epoch_ref: &str) -> Option<&str>
Return the human ref for an epoch ref, or None if not mapped.
Auto Trait Implementations§
impl Freeze for RefResolver
impl RefUnwindSafe for RefResolver
impl Send for RefResolver
impl Sync for RefResolver
impl Unpin for RefResolver
impl UnsafeUnpin for RefResolver
impl UnwindSafe for RefResolver
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