pub struct OwnedSourceLocation {
pub file: String,
pub line: u32,
pub column: u32,
pub function: String,
}Expand description
Owned declaration location used by reloadable registration faces. 可重载注册面使用的自有声明位置。
Fields§
§file: StringSource path recorded at the declaration site. 声明点记录的源码路径。
line: u32One-based line number of the declaration. 声明所在的行号(从 1 开始)。
column: u32One-based column number of the declaration. 声明所在的列号(从 1 开始)。
function: StringThe registration-face handle or logical function associated with this declaration. 与该注册面声明关联的 handle 或逻辑函数名。
Implementations§
Trait Implementations§
Source§impl Clone for OwnedSourceLocation
impl Clone for OwnedSourceLocation
Source§fn clone(&self) -> OwnedSourceLocation
fn clone(&self) -> OwnedSourceLocation
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 OwnedSourceLocation
impl Debug for OwnedSourceLocation
Source§impl Display for OwnedSourceLocation
impl Display for OwnedSourceLocation
impl Eq for OwnedSourceLocation
Source§impl From<OwnedSourceLocation> for DiagnosticSource
impl From<OwnedSourceLocation> for DiagnosticSource
Source§fn from(source: OwnedSourceLocation) -> DiagnosticSource
fn from(source: OwnedSourceLocation) -> DiagnosticSource
Converts to this type from the input type.
Source§impl PartialEq for OwnedSourceLocation
impl PartialEq for OwnedSourceLocation
impl StructuralPartialEq for OwnedSourceLocation
Auto Trait Implementations§
impl Freeze for OwnedSourceLocation
impl RefUnwindSafe for OwnedSourceLocation
impl Send for OwnedSourceLocation
impl Sync for OwnedSourceLocation
impl Unpin for OwnedSourceLocation
impl UnsafeUnpin for OwnedSourceLocation
impl UnwindSafe for OwnedSourceLocation
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