pub struct SourceMapEntry {
pub node: NodeId,
pub range: SourceRange,
pub role: SourceRole,
}Expand description
A single mapping from a layout node to a source range.
Fields§
§node: NodeIdThe node this entry maps.
range: SourceRangeSource range within a registered source file.
role: SourceRoleHow this source range relates to the node.
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 moreimpl Copy for SourceMapEntry
Source§impl Debug for SourceMapEntry
impl Debug for SourceMapEntry
impl Eq for SourceMapEntry
Source§impl PartialEq for SourceMapEntry
impl PartialEq for SourceMapEntry
Source§fn eq(&self, other: &SourceMapEntry) -> bool
fn eq(&self, other: &SourceMapEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.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