Struct P

Source
pub struct P<T: ?Sized> { /* private fields */ }
Expand description

An owned smart pointer.

See the [module level documentation][crate::ptr] for details.

Implementations§

Source§

impl<T: 'static> P<T>

Source

pub fn and_then<U, F>(self, f: F) -> U
where F: FnOnce(T) -> U,

Move out of the pointer. Intended for chaining transformations not covered by map.

Source

pub fn into_inner(self) -> T

Equivalent to and_then(|x| x).

Source

pub fn map<F>(self, f: F) -> P<T>
where F: FnOnce(T) -> T,

Produce a new P<T> from self without reallocating.

Source

pub fn filter_map<F>(self, f: F) -> Option<P<T>>
where F: FnOnce(T) -> Option<T>,

Optionally produce a new P<T> from self without reallocating.

Source

pub fn node_id(&self) -> NodeId

Gets the NodeId

Source

pub fn metadata(&self) -> &Metadata

Gets the metadata

Source

pub fn metadata_mut(&mut self) -> &mut Metadata

Gets the metadata mutably

Source§

impl<T> P<[T]>

Source

pub fn new() -> P<[T]>

Creates a new empty P<[T]>.

Source

pub fn from_vec(v: Vec<T>) -> P<[T]>

Creates a new P<[T]> from a Vec<T>.

Source

pub fn into_vec(self) -> Vec<T>

Converts the P<[T]> into a Vec<T>.

Trait Implementations§

Source§

impl<T: ?Sized> AsRef<T> for P<T>

Source§

fn as_ref(&self) -> &T

Consumes the P<T> and returns the inner Box<T>.

Source§

impl AstVisitable for P<ArrayAccessNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<ArrayNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<AssignmentNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts the visitor and calls the appropriate visit method.

Source§

impl AstVisitable for P<BinaryOperationNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<BlockNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<ControlFlowNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<FunctionCallNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<FunctionNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<IdentifierNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<LiteralNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<MemberAccessNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<NewArrayNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<NewNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<PhiArrayNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<PhiNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<RangeNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<ReturnNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<UnaryOperationNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl AstVisitable for P<VirtualBranchNode>

Source§

fn accept<V: AstVisitor>(&self, visitor: &mut V) -> V::Output

Accepts a visitor for the AST node.
Source§

impl<T: Clone> Clone for P<[T]>

Source§

fn clone(&self) -> P<[T]>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: 'static + Clone> Clone for P<T>

Source§

fn clone(&self) -> P<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: ?Sized + Debug> Debug for P<T>

Source§

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

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

impl<T> Default for P<[T]>

Source§

fn default() -> P<[T]>

Creates an empty P<[T]>.

Source§

impl<T: ?Sized> Deref for P<T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
Source§

impl<T: ?Sized> DerefMut for P<T>

Source§

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

Mutably dereferences the value.
Source§

impl<'de, T> Deserialize<'de> for P<T>
where T: Deserialize<'de> + ?Sized,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<T: Display> Display for P<T>

Source§

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

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

impl From<ArrayAccessNode> for P<AstKind>

Source§

fn from(id: ArrayAccessNode) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayAccessNode> for P<ExprKind>

Source§

fn from(id: ArrayAccessNode) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayNode> for P<ArrayKind>

Source§

fn from(id: ArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayNode> for P<AstKind>

Source§

fn from(id: ArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<ArrayNode> for P<ExprKind>

Source§

fn from(id: ArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<AssignmentNode> for P<AstKind>

Source§

fn from(id: AssignmentNode) -> Self

Converts to this type from the input type.
Source§

impl From<AssignmentNode> for P<StatementKind>

Source§

fn from(id: AssignmentNode) -> Self

Converts to this type from the input type.
Source§

impl From<BinaryOperationNode> for P<AstKind>

Source§

fn from(id: BinaryOperationNode) -> Self

Converts to this type from the input type.
Source§

impl From<BinaryOperationNode> for P<ExprKind>

Source§

fn from(id: BinaryOperationNode) -> Self

Converts to this type from the input type.
Source§

impl From<BlockNode> for P<AstKind>

Source§

fn from(id: BlockNode) -> Self

Converts to this type from the input type.
Source§

impl From<ControlFlowNode> for P<AstKind>

Source§

fn from(id: ControlFlowNode) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionCallNode> for P<AstKind>

Source§

fn from(id: FunctionCallNode) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionCallNode> for P<ExprKind>

Source§

fn from(id: FunctionCallNode) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionNode> for P<AstKind>

Source§

fn from(id: FunctionNode) -> Self

Converts to this type from the input type.
Source§

impl From<IdentifierNode> for P<AstKind>

Source§

fn from(id: IdentifierNode) -> Self

Converts to this type from the input type.
Source§

impl From<IdentifierNode> for P<ExprKind>

Source§

fn from(id: IdentifierNode) -> Self

Converts to this type from the input type.
Source§

impl From<MemberAccessNode> for P<AstKind>

Source§

fn from(id: MemberAccessNode) -> Self

Converts to this type from the input type.
Source§

impl From<MemberAccessNode> for P<ExprKind>

Source§

fn from(id: MemberAccessNode) -> Self

Converts to this type from the input type.
Source§

impl From<NewArrayNode> for P<AstKind>

Source§

fn from(id: NewArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<NewArrayNode> for P<ExprKind>

Source§

fn from(id: NewArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<NewNode> for P<AstKind>

Source§

fn from(id: NewNode) -> Self

Converts to this type from the input type.
Source§

impl From<NewNode> for P<ExprKind>

Source§

fn from(id: NewNode) -> Self

Converts to this type from the input type.
Source§

impl<T> From<P<[T]>> for Vec<T>

Source§

fn from(val: P<[T]>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayAccessNode>> for AstKind

Source§

fn from(id: P<ArrayAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayAccessNode>> for ExprKind

Source§

fn from(id: P<ArrayAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayAccessNode>> for P<AstKind>

Source§

fn from(id: P<ArrayAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayAccessNode>> for P<ExprKind>

Source§

fn from(id: P<ArrayAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayNode>> for ArrayKind

Source§

fn from(id: P<ArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayNode>> for AstKind

Source§

fn from(id: P<ArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayNode>> for ExprKind

Source§

fn from(id: P<ArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayNode>> for P<ArrayKind>

Source§

fn from(id: P<ArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayNode>> for P<AstKind>

Source§

fn from(id: P<ArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ArrayNode>> for P<ExprKind>

Source§

fn from(id: P<ArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<AssignmentNode>> for AstKind

Source§

fn from(id: P<AssignmentNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<AssignmentNode>> for P<AstKind>

Source§

fn from(id: P<AssignmentNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<AssignmentNode>> for P<StatementKind>

Source§

fn from(id: P<AssignmentNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<AssignmentNode>> for StatementKind

Source§

fn from(id: P<AssignmentNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<BinaryOperationNode>> for AstKind

Source§

fn from(id: P<BinaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<BinaryOperationNode>> for ExprKind

Source§

fn from(id: P<BinaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<BinaryOperationNode>> for P<AstKind>

Source§

fn from(id: P<BinaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<BinaryOperationNode>> for P<ExprKind>

Source§

fn from(id: P<BinaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<BlockNode>> for AstKind

Source§

fn from(id: P<BlockNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<BlockNode>> for P<AstKind>

Source§

fn from(id: P<BlockNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ControlFlowNode>> for AstKind

Source§

fn from(id: P<ControlFlowNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ControlFlowNode>> for P<AstKind>

Source§

fn from(id: P<ControlFlowNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<FunctionCallNode>> for AstKind

Source§

fn from(id: P<FunctionCallNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<FunctionCallNode>> for ExprKind

Source§

fn from(id: P<FunctionCallNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<FunctionCallNode>> for P<AstKind>

Source§

fn from(id: P<FunctionCallNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<FunctionCallNode>> for P<ExprKind>

Source§

fn from(id: P<FunctionCallNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<FunctionNode>> for AstKind

Source§

fn from(id: P<FunctionNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<FunctionNode>> for P<AstKind>

Source§

fn from(id: P<FunctionNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<IdentifierNode>> for AstKind

Source§

fn from(id: P<IdentifierNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<IdentifierNode>> for ExprKind

Source§

fn from(id: P<IdentifierNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<IdentifierNode>> for P<AstKind>

Source§

fn from(id: P<IdentifierNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<IdentifierNode>> for P<ExprKind>

Source§

fn from(id: P<IdentifierNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<MemberAccessNode>> for AstKind

Source§

fn from(id: P<MemberAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<MemberAccessNode>> for ExprKind

Source§

fn from(id: P<MemberAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<MemberAccessNode>> for P<AstKind>

Source§

fn from(id: P<MemberAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<MemberAccessNode>> for P<ExprKind>

Source§

fn from(id: P<MemberAccessNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewArrayNode>> for AstKind

Source§

fn from(id: P<NewArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewArrayNode>> for ExprKind

Source§

fn from(id: P<NewArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewArrayNode>> for P<AstKind>

Source§

fn from(id: P<NewArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewArrayNode>> for P<ExprKind>

Source§

fn from(id: P<NewArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewNode>> for AstKind

Source§

fn from(id: P<NewNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewNode>> for ExprKind

Source§

fn from(id: P<NewNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewNode>> for P<AstKind>

Source§

fn from(id: P<NewNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<NewNode>> for P<ExprKind>

Source§

fn from(id: P<NewNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiArrayNode>> for ArrayKind

Source§

fn from(id: P<PhiArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiArrayNode>> for AstKind

Source§

fn from(id: P<PhiArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiArrayNode>> for ExprKind

Source§

fn from(id: P<PhiArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiArrayNode>> for P<ArrayKind>

Source§

fn from(id: P<PhiArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiArrayNode>> for P<AstKind>

Source§

fn from(id: P<PhiArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiArrayNode>> for P<ExprKind>

Source§

fn from(id: P<PhiArrayNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiNode>> for AstKind

Source§

fn from(id: P<PhiNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiNode>> for ExprKind

Source§

fn from(id: P<PhiNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiNode>> for P<AstKind>

Source§

fn from(id: P<PhiNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<PhiNode>> for P<ExprKind>

Source§

fn from(id: P<PhiNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<RangeNode>> for AstKind

Source§

fn from(id: P<RangeNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<RangeNode>> for ExprKind

Source§

fn from(id: P<RangeNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<RangeNode>> for P<AstKind>

Source§

fn from(id: P<RangeNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<RangeNode>> for P<ExprKind>

Source§

fn from(id: P<RangeNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ReturnNode>> for AstKind

Source§

fn from(id: P<ReturnNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ReturnNode>> for P<AstKind>

Source§

fn from(id: P<ReturnNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ReturnNode>> for P<StatementKind>

Source§

fn from(id: P<ReturnNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<ReturnNode>> for StatementKind

Source§

fn from(id: P<ReturnNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<UnaryOperationNode>> for AstKind

Source§

fn from(id: P<UnaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<UnaryOperationNode>> for ExprKind

Source§

fn from(id: P<UnaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<UnaryOperationNode>> for P<AstKind>

Source§

fn from(id: P<UnaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<UnaryOperationNode>> for P<ExprKind>

Source§

fn from(id: P<UnaryOperationNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<VirtualBranchNode>> for AstKind

Source§

fn from(id: P<VirtualBranchNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<VirtualBranchNode>> for P<AstKind>

Source§

fn from(id: P<VirtualBranchNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<VirtualBranchNode>> for P<StatementKind>

Source§

fn from(id: P<VirtualBranchNode>) -> Self

Converts to this type from the input type.
Source§

impl From<P<VirtualBranchNode>> for StatementKind

Source§

fn from(id: P<VirtualBranchNode>) -> Self

Converts to this type from the input type.
Source§

impl From<PhiArrayNode> for P<ArrayKind>

Source§

fn from(id: PhiArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<PhiArrayNode> for P<AstKind>

Source§

fn from(id: PhiArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<PhiArrayNode> for P<ExprKind>

Source§

fn from(id: PhiArrayNode) -> Self

Converts to this type from the input type.
Source§

impl From<PhiNode> for P<AstKind>

Source§

fn from(id: PhiNode) -> Self

Converts to this type from the input type.
Source§

impl From<PhiNode> for P<ExprKind>

Source§

fn from(id: PhiNode) -> Self

Converts to this type from the input type.
Source§

impl From<RangeNode> for P<AstKind>

Source§

fn from(id: RangeNode) -> Self

Converts to this type from the input type.
Source§

impl From<RangeNode> for P<ExprKind>

Source§

fn from(id: RangeNode) -> Self

Converts to this type from the input type.
Source§

impl From<ReturnNode> for P<AstKind>

Source§

fn from(id: ReturnNode) -> Self

Converts to this type from the input type.
Source§

impl From<ReturnNode> for P<StatementKind>

Source§

fn from(id: ReturnNode) -> Self

Converts to this type from the input type.
Source§

impl<T> From<T> for P<T>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.
Source§

impl From<UnaryOperationNode> for P<AstKind>

Source§

fn from(id: UnaryOperationNode) -> Self

Converts to this type from the input type.
Source§

impl From<UnaryOperationNode> for P<ExprKind>

Source§

fn from(id: UnaryOperationNode) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Vec<T>> for P<[T]>

Source§

fn from(v: Vec<T>) -> Self

Converts to this type from the input type.
Source§

impl From<VirtualBranchNode> for P<AstKind>

Source§

fn from(id: VirtualBranchNode) -> Self

Converts to this type from the input type.
Source§

impl From<VirtualBranchNode> for P<StatementKind>

Source§

fn from(id: VirtualBranchNode) -> Self

Converts to this type from the input type.
Source§

impl<T> FromIterator<T> for P<[T]>

Source§

fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> P<[T]>

Creates a value from an iterator. Read more
Source§

impl<'a, T> IntoIterator for &'a P<[T]>

Source§

type Item = &'a T

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T> IntoIterator for P<[T]>

Source§

type Item = T

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T: PartialEq> PartialEq for P<T>

Source§

fn eq(&self, other: &Self) -> 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<T> Pointer for P<T>

Source§

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

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

impl<T> Serialize for P<T>
where T: Serialize + ?Sized,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<T: Eq> Eq for P<T>

Auto Trait Implementations§

§

impl<T> Freeze for P<T>
where T: ?Sized,

§

impl<T> RefUnwindSafe for P<T>
where T: RefUnwindSafe + ?Sized,

§

impl<T> Send for P<T>
where T: Send + ?Sized,

§

impl<T> Sync for P<T>
where T: Sync + ?Sized,

§

impl<T> Unpin for P<T>
where T: ?Sized,

§

impl<T> UnwindSafe for P<T>
where T: UnwindSafe + ?Sized,

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> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
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<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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,