pub struct WithSource<S> {
pub source: S,
pub file: &'static str,
pub line: u32,
pub col: u32,
}Fields§
§source: S§file: &'static str§line: u32§col: u32Trait Implementations§
Source§impl<S: Clone> Clone for WithSource<S>
impl<S: Clone> Clone for WithSource<S>
Source§fn clone(&self) -> WithSource<S>
fn clone(&self) -> WithSource<S>
Returns a duplicate 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 moreimpl<S: Copy> Copy for WithSource<S>
Auto Trait Implementations§
impl<S> Freeze for WithSource<S>where
S: Freeze,
impl<S> RefUnwindSafe for WithSource<S>where
S: RefUnwindSafe,
impl<S> Send for WithSource<S>where
S: Send,
impl<S> Sync for WithSource<S>where
S: Sync,
impl<S> Unpin for WithSource<S>where
S: Unpin,
impl<S> UnwindSafe for WithSource<S>where
S: UnwindSafe,
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