pub struct LocalIdentityResolver { /* private fields */ }Implementations§
Source§impl LocalIdentityResolver
impl LocalIdentityResolver
pub fn new(scheme: impl Into<String>) -> Self
pub fn scheme(&self) -> &str
pub fn source_id(&self, file_idx: usize, rel_path: &Path) -> SourceId
pub fn source_index(&self, id: &SourceId) -> Option<usize>
pub fn source_uri(&self, rel_path: &Path) -> String
pub fn symbol_id(&self, file_idx: usize, def_idx: usize) -> SymbolId
pub fn symbol_location(&self, id: &SymbolId) -> Option<(usize, usize)>
pub fn reference_id(&self, file_idx: usize, ref_idx: usize) -> ReferenceId
pub fn reference_location(&self, id: &ReferenceId) -> Option<(usize, usize)>
pub fn moniker_uri(&self, moniker: &Moniker) -> String
Trait Implementations§
Source§impl Clone for LocalIdentityResolver
impl Clone for LocalIdentityResolver
Source§fn clone(&self) -> LocalIdentityResolver
fn clone(&self) -> LocalIdentityResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalIdentityResolver
impl Debug for LocalIdentityResolver
Source§impl Default for LocalIdentityResolver
impl Default for LocalIdentityResolver
impl Eq for LocalIdentityResolver
Source§impl PartialEq for LocalIdentityResolver
impl PartialEq for LocalIdentityResolver
impl StructuralPartialEq for LocalIdentityResolver
Auto Trait Implementations§
impl Freeze for LocalIdentityResolver
impl RefUnwindSafe for LocalIdentityResolver
impl Send for LocalIdentityResolver
impl Sync for LocalIdentityResolver
impl Unpin for LocalIdentityResolver
impl UnsafeUnpin for LocalIdentityResolver
impl UnwindSafe for LocalIdentityResolver
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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