pub struct OpenBracket {
pub span: Span,
}
Expand description
opening bracket
Fields§
§span: Span
Associated token.
Trait Implementations§
Source§impl Clone for OpenBracket
impl Clone for OpenBracket
Source§fn clone(&self) -> OpenBracket
fn clone(&self) -> OpenBracket
Returns a copy 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 Debug for OpenBracket
impl Debug for OpenBracket
Source§impl OptionSpanned for OpenBracket
impl OptionSpanned for OpenBracket
Source§fn option_span(&self) -> Option<Span>
fn option_span(&self) -> Option<Span>
Get the optional span of the type.
Source§impl Parse for OpenBracket
impl Parse for OpenBracket
Source§impl PartialEq for OpenBracket
impl PartialEq for OpenBracket
Source§impl Peek for OpenBracket
impl Peek for OpenBracket
Source§impl ToTokens for OpenBracket
impl ToTokens for OpenBracket
Source§fn to_tokens(
&self,
_: &mut MacroContext<'_, '_, '_>,
stream: &mut TokenStream,
) -> Result<()>
fn to_tokens( &self, _: &mut MacroContext<'_, '_, '_>, stream: &mut TokenStream, ) -> Result<()>
Turn the current item into tokens.
Source§impl TryClone for OpenBracket
impl TryClone for OpenBracket
impl Copy for OpenBracket
impl Eq for OpenBracket
impl StructuralPartialEq for OpenBracket
Auto Trait Implementations§
impl Freeze for OpenBracket
impl RefUnwindSafe for OpenBracket
impl Send for OpenBracket
impl Sync for OpenBracket
impl Unpin for OpenBracket
impl UnwindSafe for OpenBracket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.