pub struct SourceLocObj {
pub source_name: SourceName,
pub start_line: i32,
pub start_column: i32,
pub end_line: i32,
pub end_column: i32,
/* private fields */
}Expand description
The object behind SourceLoc.
Fields§
§source_name: SourceName§start_line: i32§start_column: i32§end_line: i32§end_column: i32Trait Implementations§
Source§impl Deref for SourceLocObj
impl Deref for SourceLocObj
Source§type Target = LocationObj
type Target = LocationObj
The resulting type after dereferencing.
Source§fn deref(&self) -> &LocationObj
fn deref(&self) -> &LocationObj
Dereferences the value.
Source§impl<'a> From<&'a SourceLocObj> for AnyView<'a>
impl<'a> From<&'a SourceLocObj> for AnyView<'a>
Source§fn from(value: &'a SourceLocObj) -> Self
fn from(value: &'a SourceLocObj) -> Self
Converts to this type from the input type.
Source§impl ObjectCore for SourceLocObj
impl ObjectCore for SourceLocObj
Source§const TYPE_DEPTH: i32
const TYPE_DEPTH: i32
Depth of this type in the object inheritance tree. Read more
Source§type Parent = LocationObj
type Parent = LocationObj
Source§fn type_index() -> i32
fn type_index() -> i32
The runtime type index of this type.
Source§unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
The object header, mutably. Read more
impl ImmutableObject for SourceLocObj
Auto Trait Implementations§
impl !Freeze for SourceLocObj
impl RefUnwindSafe for SourceLocObj
impl Send for SourceLocObj
impl Sync for SourceLocObj
impl Unpin for SourceLocObj
impl UnsafeUnpin for SourceLocObj
impl UnwindSafe for SourceLocObj
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