pub struct CodeFragment {
pub filename: &'static str,
pub line: usize,
pub col: usize,
pub code: &'static str,
}
Expand description
Represents a location in a file, and the code string itself. Generate easily
using the wrflib::code_fragment!()
macro.
Fields§
§filename: &'static str
§line: usize
§col: usize
§code: &'static str
Trait Implementations§
Source§impl Clone for CodeFragment
impl Clone for CodeFragment
Source§fn clone(&self) -> CodeFragment
fn clone(&self) -> CodeFragment
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CodeFragment
impl RefUnwindSafe for CodeFragment
impl Send for CodeFragment
impl Sync for CodeFragment
impl Unpin for CodeFragment
impl UnwindSafe for CodeFragment
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