Struct FlagsItem

pub struct FlagsItem { pub span: Span, pub kind: FlagsItemKind }

A single item in a group of flags.

Fields

span: Span

The span of this item.

kind: FlagsItemKind

The kind of this item.

Trait Implementations

impl Clone for FlagsItem

fn clone(&self) -> Self

impl Debug for FlagsItem

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

impl Eq for FlagsItem

impl PartialEq for FlagsItem

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

impl StructuralPartialEq for FlagsItem

Auto Trait Implementations

impl Freeze for FlagsItem

impl RefUnwindSafe for FlagsItem

impl Send for FlagsItem

impl Sync for FlagsItem

impl Unpin for FlagsItem

impl UnsafeUnpin for FlagsItem

impl UnwindSafe for FlagsItem

Blanket Implementations

impl<T> Any for FlagsItem where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FlagsItem where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FlagsItem where T: ?Sized,

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

impl<T> CloneToUninit for FlagsItem where T: Clone,

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

impl<T> From<T> for FlagsItem

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for FlagsItem where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for FlagsItem where U: From<T>,

fn into(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<U> for FlagsItem where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FlagsItem where U: TryFrom<T>,

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