[go: up one dir, main page]

CrateKorok

Struct CrateKorok 

Source
pub struct CrateKorok<'a> {
    pub attributes: Attributes<'a>,
    pub items: Vec<ItemKorok<'a>>,
    pub node: Option<Node>,
    pub store: &'a CrateStore,
}

Fields§

§attributes: Attributes<'a>§items: Vec<ItemKorok<'a>>§node: Option<Node>§store: &'a CrateStore

Implementations§

Source§

impl<'a> CrateKorok<'a>

Source

pub fn parse(store: &'a CrateStore) -> Result<CrateKorok<'a>, CodamaError>

Trait Implementations§

Source§

impl<'a> Debug for CrateKorok<'a>

Source§

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

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

impl<'a, 'b> From<&'b CrateKorok<'a>> for Korok<'a, 'b>

Source§

fn from(value: &'b CrateKorok<'a>) -> Korok<'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 KorokTrait for CrateKorok<'_>

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 CrateKorok<'_>

Source§

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

Source§

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

Source§

impl<'a> PartialEq for CrateKorok<'a>

Source§

fn eq(&self, other: &CrateKorok<'a>) -> 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> StructuralPartialEq for CrateKorok<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for CrateKorok<'a>

§

impl<'a> RefUnwindSafe for CrateKorok<'a>

§

impl<'a> !Send for CrateKorok<'a>

§

impl<'a> !Sync for CrateKorok<'a>

§

impl<'a> Unpin for CrateKorok<'a>

§

impl<'a> UnwindSafe for CrateKorok<'a>

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.