KeyExprTreeNode

Struct KeyExprTreeNode 

Source
#[repr(C)]
pub struct KeyExprTreeNode<Weight, Wildness: IWildness, Children: IChildrenProvider<Box<Self>>> { /* private fields */ }

Trait Implementations§

Source§

impl<Weight, Wildness: IWildness, Children: IChildrenProvider<Box<Self>>> AsMut<KeyExprTreeNode<Weight, Wildness, Children>> for KeyExprTreeNode<Weight, Wildness, Children>

Source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<Weight, Wildness: IWildness, Children: IChildrenProvider<Box<Self>>> AsRef<KeyExprTreeNode<Weight, Wildness, Children>> for KeyExprTreeNode<Weight, Wildness, Children>

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<Weight, Wildness: IWildness, Children: IChildrenProvider<Box<Self>>> HasChunk for KeyExprTreeNode<Weight, Wildness, Children>

Source§

fn chunk(&self) -> &keyexpr

Source§

impl<Weight, Wildness: IWildness, Children: IChildrenProvider<Box<Self>>> IKeyExprTreeNode<Weight> for KeyExprTreeNode<Weight, Wildness, Children>
where Children::Assoc: IChildren<Box<Self>>,

Source§

fn parent(&self) -> Option<&Self::Parent>

Access the parent node if it exists (the node isn’t the first chunk of a key-expression).
Source§

fn keyexpr(&self) -> OwnedKeyExpr

Compute this node’s full key expression. Read more
Source§

fn weight(&self) -> Option<&Weight>

Access the node’s weight (or value). Read more
Source§

fn children(&self) -> &Self::Children

Access a node’s children.
Source§

impl<Weight, Wildness: IWildness, Children: IChildrenProvider<Box<Self>>> IKeyExprTreeNodeMut<Weight> for KeyExprTreeNode<Weight, Wildness, Children>
where Children::Assoc: IChildren<Box<Self>>,

Source§

fn parent_mut(&mut self) -> Option<&mut Self>

Mutably access the parent node if it exists (the node isn’t the first chunk of a key-expression).
Source§

fn weight_mut(&mut self) -> Option<&mut Weight>

Mutably access the node’s weight.
Source§

fn take_weight(&mut self) -> Option<Weight>

Remove the node’s weight.
Source§

fn insert_weight(&mut self, weight: Weight) -> Option<Weight>

Assign a weight to the node, returning the previous weight if the node had one.
Source§

fn children_mut(&mut self) -> &mut Self::Children

Mutably access the node’s children.
Source§

impl<Weight: Send, Wildness: IWildness + Send, Children: IChildrenProvider<Box<Self>> + Send> Send for KeyExprTreeNode<Weight, Wildness, Children>

Source§

impl<Weight: Sync, Wildness: IWildness + Sync, Children: IChildrenProvider<Box<Self>> + Sync> Sync for KeyExprTreeNode<Weight, Wildness, Children>

Auto Trait Implementations§

§

impl<Weight, Wildness, Children> Freeze for KeyExprTreeNode<Weight, Wildness, Children>
where <Children as IChildrenProvider<Box<KeyExprTreeNode<Weight, Wildness, Children>>>>::Assoc: Freeze, Weight: Freeze,

§

impl<Weight, Wildness, Children> RefUnwindSafe for KeyExprTreeNode<Weight, Wildness, Children>
where <Children as IChildrenProvider<Box<KeyExprTreeNode<Weight, Wildness, Children>>>>::Assoc: RefUnwindSafe, Weight: RefUnwindSafe,

§

impl<Weight, Wildness, Children> Unpin for KeyExprTreeNode<Weight, Wildness, Children>
where <Children as IChildrenProvider<Box<KeyExprTreeNode<Weight, Wildness, Children>>>>::Assoc: Unpin, Weight: Unpin,

§

impl<Weight, Wildness, Children> UnwindSafe for KeyExprTreeNode<Weight, Wildness, Children>
where <Children as IChildrenProvider<Box<KeyExprTreeNode<Weight, Wildness, Children>>>>::Assoc: UnwindSafe + RefUnwindSafe, Weight: UnwindSafe + RefUnwindSafe,

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> AsNode<T> for T

Source§

fn as_node(&self) -> &T

Source§

impl<T> AsNodeMut<T> for T

Source§

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

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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<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.