pub struct SourceMapEntry<SourceIndex, TargetIndex> { /* private fields */ }
Implementations§
Source§impl<SourceIndex, TargetIndex> SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex, TargetIndex> SourceMapEntry<SourceIndex, TargetIndex>
pub fn source_location(&self) -> &SourceIndex
pub fn target_location(&self) -> &TargetIndex
Trait Implementations§
Source§impl<SourceIndex: Clone, TargetIndex: Clone> Clone for SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex: Clone, TargetIndex: Clone> Clone for SourceMapEntry<SourceIndex, TargetIndex>
Source§fn clone(&self) -> SourceMapEntry<SourceIndex, TargetIndex>
fn clone(&self) -> SourceMapEntry<SourceIndex, TargetIndex>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<SourceIndex: Debug, TargetIndex: Debug> Debug for SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex: Debug, TargetIndex: Debug> Debug for SourceMapEntry<SourceIndex, TargetIndex>
Source§impl<SourceIndex: PartialEq, TargetIndex: PartialEq> PartialEq for SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex: PartialEq, TargetIndex: PartialEq> PartialEq for SourceMapEntry<SourceIndex, TargetIndex>
Source§fn eq(&self, other: &SourceMapEntry<SourceIndex, TargetIndex>) -> bool
fn eq(&self, other: &SourceMapEntry<SourceIndex, TargetIndex>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<SourceIndex, TargetIndex> StructuralPartialEq for SourceMapEntry<SourceIndex, TargetIndex>
Auto Trait Implementations§
impl<SourceIndex, TargetIndex> Freeze for SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex, TargetIndex> RefUnwindSafe for SourceMapEntry<SourceIndex, TargetIndex>where
SourceIndex: RefUnwindSafe,
TargetIndex: RefUnwindSafe,
impl<SourceIndex, TargetIndex> Send for SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex, TargetIndex> Sync for SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex, TargetIndex> Unpin for SourceMapEntry<SourceIndex, TargetIndex>
impl<SourceIndex, TargetIndex> UnwindSafe for SourceMapEntry<SourceIndex, TargetIndex>where
SourceIndex: UnwindSafe,
TargetIndex: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.