pub struct Source<'c> {
pub source: Cow<'c, str>,
pub filename: Option<Cow<'c, str>>,
}Fields§
§source: Cow<'c, str>§filename: Option<Cow<'c, str>>Implementations§
Trait Implementations§
Source§impl<'c> Ord for Source<'c>
impl<'c> Ord for Source<'c>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'c> PartialOrd for Source<'c>
impl<'c> PartialOrd for Source<'c>
impl<'c> Eq for Source<'c>
impl<'c> StructuralPartialEq for Source<'c>
Auto Trait Implementations§
impl<'c> Freeze for Source<'c>
impl<'c> RefUnwindSafe for Source<'c>
impl<'c> Send for Source<'c>
impl<'c> Sync for Source<'c>
impl<'c> Unpin for Source<'c>
impl<'c> UnwindSafe for Source<'c>
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