pub struct SourceLocation {
pub name: &'static str,
pub file: &'static str,
pub line: u32,
pub manifest_dir: &'static str,
/* private fields */
}Expand description
A composable definition active when a layout node was emitted.
Fields§
§name: &'static strComposable function name.
file: &'static strSource file reported by the compiler.
line: u32One-based declaration line.
manifest_dir: &'static strPackage directory reported by the compiler.
Implementations§
Source§impl SourceLocation
impl SourceLocation
Sourcepub fn recompositions(&self) -> Option<u64>
pub fn recompositions(&self) -> Option<u64>
Body executions after the initial composition for this composable instance.
Returns None unless a debug preview enabled recomposition tracking.
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
Source§impl Debug for SourceLocation
impl Debug for SourceLocation
impl Eq for SourceLocation
Source§impl PartialEq for SourceLocation
impl PartialEq for SourceLocation
impl StructuralPartialEq for SourceLocation
Auto Trait Implementations§
impl !RefUnwindSafe for SourceLocation
impl !Send for SourceLocation
impl !Sync for SourceLocation
impl !UnwindSafe for SourceLocation
impl Freeze for SourceLocation
impl Unpin for SourceLocation
impl UnsafeUnpin for SourceLocation
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