pub struct SourceMapEntry { /* private fields */ }Expand description
Relation between one typed value target and its source bytes.
Implementations§
Source§impl SourceMapEntry
impl SourceMapEntry
pub fn new( target: impl Into<String>, relation: SourceRelation, spans: Vec<SourceSpan>, ) -> Result<Self, Error>
pub fn target(&self) -> &str
pub const fn relation(&self) -> SourceRelation
pub fn spans(&self) -> &[SourceSpan]
Trait Implementations§
Source§impl Clone for SourceMapEntry
impl Clone for SourceMapEntry
Source§fn clone(&self) -> SourceMapEntry
fn clone(&self) -> SourceMapEntry
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 SourceMapEntry
impl Debug for SourceMapEntry
impl Eq for SourceMapEntry
Source§impl PartialEq for SourceMapEntry
impl PartialEq for SourceMapEntry
impl StructuralPartialEq for SourceMapEntry
Auto Trait Implementations§
impl Freeze for SourceMapEntry
impl RefUnwindSafe for SourceMapEntry
impl Send for SourceMapEntry
impl Sync for SourceMapEntry
impl Unpin for SourceMapEntry
impl UnsafeUnpin for SourceMapEntry
impl UnwindSafe for SourceMapEntry
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