pub struct SMLoc {
pub source: SourceId,
pub offset: u32,
}Expand description
A location in a source buffer. The “encoded” form: a buffer plus a byte
offset into it. Rust analog of llvh::SMLoc, but it carries its buffer
identity, so finding the containing buffer is trivial.
Fields§
§source: SourceId§offset: u32Trait Implementations§
impl Copy for SMLoc
impl Eq for SMLoc
impl StructuralPartialEq for SMLoc
Auto Trait Implementations§
impl Freeze for SMLoc
impl RefUnwindSafe for SMLoc
impl Send for SMLoc
impl Sync for SMLoc
impl Unpin for SMLoc
impl UnsafeUnpin for SMLoc
impl UnwindSafe for SMLoc
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