pub struct Loc(/* private fields */);Expand description
Represents a location with a path and function name
Implementations§
Source§impl Loc
impl Loc
Sourcepub fn full_fn_name(&self) -> &str
pub fn full_fn_name(&self) -> &str
Get the full function name from the location
Sourcepub fn read_source<S: FileSystem>(&self, fs: &S) -> Result<String, S::FSError>
pub fn read_source<S: FileSystem>(&self, fs: &S) -> Result<String, S::FSError>
Read the source code from the file system
Sourcepub fn write_source<S: FileSystem>(
&self,
fs: &S,
str: &str,
) -> Result<(), S::FSError>
pub fn write_source<S: FileSystem>( &self, fs: &S, str: &str, ) -> Result<(), S::FSError>
Write the source code to the file system
Trait Implementations§
Source§impl Ord for Loc
impl Ord for Loc
Source§impl PartialOrd for Loc
impl PartialOrd for Loc
impl Eq for Loc
impl StructuralPartialEq for Loc
Auto Trait Implementations§
impl Freeze for Loc
impl RefUnwindSafe for Loc
impl Send for Loc
impl Sync for Loc
impl Unpin for Loc
impl UnwindSafe for Loc
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