Struct Bracket

struct Bracket { ... }

[]

Fields

span: DelimSpan

Implementations

impl Bracket

fn surround<F>(self: &Self, tokens: &mut TokenStream, f: F)
where
    F: FnOnce(&mut TokenStream)

impl Clone for Bracket

fn clone(self: &Self) -> Self

impl Copy for Bracket

impl Debug for Bracket

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Default for Bracket

fn default() -> Self

impl Eq for Bracket

impl Freeze for Bracket

impl Hash for Bracket

fn hash<H: Hasher>(self: &Self, _state: &mut H)

impl PartialEq for Bracket

fn eq(self: &Self, _other: &Bracket) -> bool

impl RefUnwindSafe for Bracket

impl Send for Bracket

impl Sync for Bracket

impl Token for Bracket

impl Unpin for Bracket

impl UnwindSafe for Bracket

impl<T> Any for Bracket

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Bracket

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Bracket

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Bracket

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Bracket

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Bracket

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Bracket

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Bracket

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Bracket

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>