pub struct ConstLocation {
pub file: &'static str,
pub line: u32,
pub column: u32,
}Expand description
Information about the location in a source file in a constant context.
Fields§
§file: &'static strThe file of the location.
line: u32The line of the location.
column: u32The column of the location.
Implementations§
Source§impl ConstLocation
impl ConstLocation
Sourcepub const fn new(file: &'static str, line: u32, column: u32) -> ConstLocation
pub const fn new(file: &'static str, line: u32, column: u32) -> ConstLocation
Creates a new ConstLocation using the given file and line.
Trait Implementations§
Source§impl Debug for ConstLocation
impl Debug for ConstLocation
Source§impl PartialEq for ConstLocation
impl PartialEq for ConstLocation
impl StructuralPartialEq for ConstLocation
Auto Trait Implementations§
impl Freeze for ConstLocation
impl RefUnwindSafe for ConstLocation
impl Send for ConstLocation
impl Sync for ConstLocation
impl Unpin for ConstLocation
impl UnwindSafe for ConstLocation
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