Tokenized

Struct Tokenized 

Source
pub struct Tokenized<A, B>(pub A, _);

Tuple Fields§

§0: A

Trait Implementations§

Source§

impl<T, Token: TokenTrait> Deref for Tokenized<&Arc<TokenCell<T, Token>>, &Token>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T, Token: TokenTrait> Deref for Tokenized<&Arc<TokenCell<T, Token>>, &mut Token>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T, Token: TokenTrait> Deref for Tokenized<&TokenCell<T, Token>, &Token>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T, Token: TokenTrait> Deref for Tokenized<&TokenCell<T, Token>, &mut Token>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T, Token: TokenTrait> DerefMut for Tokenized<&Arc<TokenCell<T, Token>>, &mut Token>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<T, Token: TokenTrait> DerefMut for Tokenized<&TokenCell<T, Token>, &mut Token>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<A, B> From<(A, B)> for Tokenized<A, B>

Source§

fn from((a, b): (A, B)) -> Self

Converts to this type from the input type.
Source§

impl<T: IKeyExprTreeNode<Weight>, Weight, Token: TokenTrait> IKeyExprTreeNode<Weight> for Tokenized<&Arc<TokenCell<T, Token>>, &Token>

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<T: IKeyExprTreeNode<Weight>, Weight, Token: TokenTrait> IKeyExprTreeNode<Weight> for Tokenized<&Arc<TokenCell<T, Token>>, &mut Token>

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<T: IKeyExprTreeNode<Weight>, Weight, Token: TokenTrait> IKeyExprTreeNode<Weight> for Tokenized<&TokenCell<T, Token>, &Token>

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<T: IKeyExprTreeNode<Weight>, Weight, Token: TokenTrait> IKeyExprTreeNode<Weight> for Tokenized<&TokenCell<T, Token>, &mut Token>

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<T: IKeyExprTreeNodeMut<Weight>, Weight, Token: TokenTrait> IKeyExprTreeNodeMut<Weight> for Tokenized<&Arc<TokenCell<T, Token>>, &mut Token>

Source§

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

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<T: IKeyExprTreeNodeMut<Weight>, Weight, Token: TokenTrait> IKeyExprTreeNodeMut<Weight> for Tokenized<&TokenCell<T, Token>, &mut Token>

Source§

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

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.

Auto Trait Implementations§

§

impl<A, B> Freeze for Tokenized<A, B>
where A: Freeze, B: Freeze,

§

impl<A, B> RefUnwindSafe for Tokenized<A, B>

§

impl<A, B> Send for Tokenized<A, B>
where A: Send, B: Send,

§

impl<A, B> Sync for Tokenized<A, B>
where A: Sync, B: Sync,

§

impl<A, B> Unpin for Tokenized<A, B>
where A: Unpin, B: Unpin,

§

impl<A, B> UnwindSafe for Tokenized<A, B>
where A: UnwindSafe, B: UnwindSafe,

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.