pub struct Newline<S = (), C = (), Lang: ?Sized = ()> { /* private fields */ }Expand description
The punctuator
Implementations§
Source§impl<S, C> Newline<S, C>
impl<S, C> Newline<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 Newline<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayCompact for Newline<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayHuman for Newline<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayHuman for Newline<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayPretty for Newline<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayPretty for Newline<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> IntoComponents for Newline<S, C, Lang>
impl<S, C, Lang: ?Sized> IntoComponents for Newline<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, C, Lang: ?Sized> PartialOrd<Newline<S, C, Lang>> for str
impl<S, C, Lang: ?Sized> PartialOrd<Newline<S, C, Lang>> for str
Source§impl<S, C, Lang: ?Sized> PartialOrd<str> for Newline<S, C, Lang>
impl<S, C, Lang: ?Sized> PartialOrd<str> for Newline<S, C, Lang>
impl<S: Copy, C: Copy, Lang: Copy + ?Sized> Copy for Newline<S, C, Lang>
impl<S: Eq, C: Eq, Lang: Eq + ?Sized> Eq for Newline<S, C, Lang>
impl<S, C, Lang: ?Sized> StructuralPartialEq for Newline<S, C, Lang>
Auto Trait Implementations§
impl<S, C, Lang> Freeze for Newline<S, C, Lang>
impl<S, C, Lang> RefUnwindSafe for Newline<S, C, Lang>
impl<S, C, Lang> Send for Newline<S, C, Lang>
impl<S, C, Lang> Sync for Newline<S, C, Lang>
impl<S, C, Lang> Unpin for Newline<S, C, Lang>
impl<S, C, Lang> UnwindSafe for Newline<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