pub struct BackSlash<S = (), C = (), Lang: ?Sized = ()> { /* private fields */ }Expand description
The \ punctuator
Implementations§
Source§impl<S, C> BackSlash<S, C>
impl<S, C> BackSlash<S, C>
Sourcepub const fn with_content(span: S, content: C) -> Self
pub const fn with_content(span: S, content: C) -> Self
Creates a new \ punctuator with the given span and content.
Trait Implementations§
Source§impl<S, C, Lang: ?Sized> DisplayCompact for BackSlash<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayCompact for BackSlash<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayHuman for BackSlash<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayHuman for BackSlash<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayPretty for BackSlash<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayPretty for BackSlash<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> IntoComponents for BackSlash<S, C, Lang>
impl<S, C, Lang: ?Sized> IntoComponents for BackSlash<S, C, Lang>
Source§type Components = (S, C)
type Components = (S, C)
The tuple or struct type containing the decomposed components. Read more
Source§fn into_components(self) -> Self::Components
fn into_components(self) -> Self::Components
Consumes this element and returns its constituent components. Read more
Source§impl<S: PartialEq, C: PartialEq, Lang: PartialEq + ?Sized> PartialEq for BackSlash<S, C, Lang>
impl<S: PartialEq, C: PartialEq, Lang: PartialEq + ?Sized> PartialEq for BackSlash<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> PartialOrd<BackSlash<S, C, Lang>> for str
impl<S, C, Lang: ?Sized> PartialOrd<BackSlash<S, C, Lang>> for str
Source§impl<S, C, Lang: ?Sized> PartialOrd<str> for BackSlash<S, C, Lang>
impl<S, C, Lang: ?Sized> PartialOrd<str> for BackSlash<S, C, Lang>
impl<S: Copy, C: Copy, Lang: Copy + ?Sized> Copy for BackSlash<S, C, Lang>
impl<S: Eq, C: Eq, Lang: Eq + ?Sized> Eq for BackSlash<S, C, Lang>
impl<S, C, Lang: ?Sized> StructuralPartialEq for BackSlash<S, C, Lang>
Auto Trait Implementations§
impl<S, C, Lang> Freeze for BackSlash<S, C, Lang>
impl<S, C, Lang> RefUnwindSafe for BackSlash<S, C, Lang>
impl<S, C, Lang> Send for BackSlash<S, C, Lang>
impl<S, C, Lang> Sync for BackSlash<S, C, Lang>
impl<S, C, Lang> Unpin for BackSlash<S, C, Lang>
impl<S, C, Lang> UnwindSafe for BackSlash<S, C, Lang>
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