[go: up one dir, main page]

KorokMut

Enum KorokMut 

Source
pub enum KorokMut<'a, 'b> {
Show 13 variants Crate(&'b mut CrateKorok<'a>), Enum(&'b mut EnumKorok<'a>), EnumVariant(&'b mut EnumVariantKorok<'a>), Field(&'b mut FieldKorok<'a>), FileModule(&'b mut FileModuleKorok<'a>), Item(&'b mut ItemKorok<'a>), Module(&'b mut ModuleKorok<'a>), Root(&'b mut RootKorok<'a>), Struct(&'b mut StructKorok<'a>), Const(&'b mut ConstKorok<'a>), UnsupportedItem(&'b mut UnsupportedItemKorok<'a>), ImplItem(&'b mut ImplItemKorok<'a>), UnsupportedImplItem(&'b mut UnsupportedImplItemKorok<'a>),
}

Variants§

§

Crate(&'b mut CrateKorok<'a>)

§

Enum(&'b mut EnumKorok<'a>)

§

EnumVariant(&'b mut EnumVariantKorok<'a>)

§

Field(&'b mut FieldKorok<'a>)

§

FileModule(&'b mut FileModuleKorok<'a>)

§

Item(&'b mut ItemKorok<'a>)

§

Module(&'b mut ModuleKorok<'a>)

§

Root(&'b mut RootKorok<'a>)

§

Struct(&'b mut StructKorok<'a>)

§

Const(&'b mut ConstKorok<'a>)

§

UnsupportedItem(&'b mut UnsupportedItemKorok<'a>)

§

ImplItem(&'b mut ImplItemKorok<'a>)

§

UnsupportedImplItem(&'b mut UnsupportedImplItemKorok<'a>)

Trait Implementations§

Source§

impl<'a, 'b> Debug for KorokMut<'a, 'b>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a, 'b> From<&'b mut ConstKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut ConstKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut CrateKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut CrateKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut EnumKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut EnumKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut EnumVariantKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut EnumVariantKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut FieldKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut FieldKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut FileModuleKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut FileModuleKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut ImplItemKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut ImplItemKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut ItemKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut ItemKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut ModuleKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut ModuleKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut RootKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut RootKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut StructKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut StructKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut UnsupportedImplItemKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut UnsupportedImplItemKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl<'a, 'b> From<&'b mut UnsupportedItemKorok<'a>> for KorokMut<'a, 'b>

Source§

fn from(value: &'b mut UnsupportedItemKorok<'a>) -> KorokMut<'a, 'b>

Converts to this type from the input type.
Source§

impl KorokTrait for KorokMut<'_, '_>

Source§

fn node(&self) -> &Option<Node>

Source§

fn set_node(&mut self, node: Option<Node>)

Source§

fn attributes(&self) -> Option<&Attributes<'_>>

Source§

impl KorokVisitable for KorokMut<'_, '_>

Source§

fn accept(&mut self, visitor: &mut dyn KorokVisitor) -> Result<(), CodamaError>

Source§

fn get_children(&mut self) -> Vec<&mut dyn KorokVisitable>

Source§

impl<'a, 'b> PartialEq for KorokMut<'a, 'b>

Source§

fn eq(&self, other: &KorokMut<'a, 'b>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, 'b> StructuralPartialEq for KorokMut<'a, 'b>

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for KorokMut<'a, 'b>

§

impl<'a, 'b> RefUnwindSafe for KorokMut<'a, 'b>

§

impl<'a, 'b> !Send for KorokMut<'a, 'b>

§

impl<'a, 'b> !Sync for KorokMut<'a, 'b>

§

impl<'a, 'b> Unpin for KorokMut<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for KorokMut<'a, 'b>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<'a, T, U> TryFromFilter<'a, U> for T
where T: 'a, &'a T: TryFrom<U>,

Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.