pub struct OpenBracket<S = (), C = (), Lang: ?Sized = ()> { /* private fields */ }Expand description
The [ punctuator
Implementations§
Source§impl OpenBracket
impl OpenBracket
Source§impl<S> OpenBracket<S>
impl<S> OpenBracket<S>
Source§impl<S, C> OpenBracket<S, C>
impl<S, C> OpenBracket<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.
Source§impl<S, C, Lang: ?Sized> OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> OpenBracket<S, C, Lang>
Sourcepub fn change_language<N: ?Sized>(self) -> OpenBracket<S, C, N>
pub fn change_language<N: ?Sized>(self) -> OpenBracket<S, C, N>
Changes the language type of the [ punctuator.
Sourcepub const fn change_language_const<N: ?Sized>(self) -> OpenBracket<S, C, N>
pub const fn change_language_const<N: ?Sized>(self) -> OpenBracket<S, C, N>
Changes the language type of the [ punctuator.
Trait Implementations§
Source§impl<S, C, Lang: ?Sized> AsSpan<S> for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> AsSpan<S> for OpenBracket<S, C, Lang>
Source§impl<'inp, T, S, C, Lang> Check<T> for OpenBracket<S, C, Lang>
impl<'inp, T, S, C, Lang> Check<T> for OpenBracket<S, C, Lang>
Source§impl<S: Clone, C: Clone, Lang: Clone + ?Sized> Clone for OpenBracket<S, C, Lang>
impl<S: Clone, C: Clone, Lang: Clone + ?Sized> Clone for OpenBracket<S, C, Lang>
Source§fn clone(&self) -> OpenBracket<S, C, Lang>
fn clone(&self) -> OpenBracket<S, C, Lang>
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 moreSource§impl<S, C, Lang: ?Sized> Display for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> Display for OpenBracket<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayCompact for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayCompact for OpenBracket<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayHuman for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayHuman for OpenBracket<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> DisplayPretty for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> DisplayPretty for OpenBracket<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> IntoComponents for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> IntoComponents for OpenBracket<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> IntoSpan<S> for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> IntoSpan<S> for OpenBracket<S, C, Lang>
Source§impl<S: PartialEq, C: PartialEq, Lang: PartialEq + ?Sized> PartialEq for OpenBracket<S, C, Lang>
impl<S: PartialEq, C: PartialEq, Lang: PartialEq + ?Sized> PartialEq for OpenBracket<S, C, Lang>
Source§impl<S, C, Lang: ?Sized> PartialOrd<OpenBracket<S, C, Lang>> for str
impl<S, C, Lang: ?Sized> PartialOrd<OpenBracket<S, C, Lang>> for str
Source§impl<S, C, Lang: ?Sized> PartialOrd<str> for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> PartialOrd<str> for OpenBracket<S, C, Lang>
impl<S: Copy, C: Copy, Lang: Copy + ?Sized> Copy for OpenBracket<S, C, Lang>
impl<S: Eq, C: Eq, Lang: Eq + ?Sized> Eq for OpenBracket<S, C, Lang>
impl<S, C, Lang: ?Sized> StructuralPartialEq for OpenBracket<S, C, Lang>
Auto Trait Implementations§
impl<S, C, Lang> Freeze for OpenBracket<S, C, Lang>
impl<S, C, Lang> RefUnwindSafe for OpenBracket<S, C, Lang>
impl<S, C, Lang> Send for OpenBracket<S, C, Lang>
impl<S, C, Lang> Sync for OpenBracket<S, C, Lang>
impl<S, C, Lang> Unpin for OpenBracket<S, C, Lang>
impl<S, C, Lang> UnwindSafe for OpenBracket<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