Struct syntax::ptr::P [] [src]

pub struct P<T: ?Sized> { /* fields omitted */ }

An owned smart pointer.

Methods

impl<T: 'static> P<T>
[src]

[src]

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

[src]

Equivalent to and_then(|x| x)

[src]

Transform the inner value, consuming self and producing a new P<T>.

impl<T> P<[T]>
[src]

[src]

[src]

Important traits for Vec<u8>
[src]

Trait Implementations

impl<T> MoveMap<T> for P<[T]>
[src]

[src]

[src]

impl<T: HasAttrs + 'static> HasAttrs for P<T>
[src]

Important traits for &'a mut [u8]
[src]

[src]

impl From<P<Expr>> for LhsExpr
[src]

[src]

Performs the conversion.

impl<T: Hash + ?Sized> Hash for P<T>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: PartialEq + ?Sized> PartialEq for P<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Eq + ?Sized> Eq for P<T>
[src]

impl<T: PartialOrd + ?Sized> PartialOrd for P<T>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Ord + ?Sized> Ord for P<T>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<T: ?Sized> Deref for P<T>
[src]

The resulting type after dereferencing.

Important traits for &'a mut W
[src]

Dereferences the value.

impl<T: 'static + Clone> Clone for P<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: ?Sized + Debug> Debug for P<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Display> Display for P<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> Pointer for P<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: 'static + Decodable> Decodable for P<T>
[src]

[src]

impl<T: Encodable> Encodable for P<T>
[src]

[src]

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

[src]

Creates an empty P<[T]>.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Performs the conversion.

impl<T> Into<Vec<T>> for P<[T]>
[src]

Important traits for Vec<u8>
[src]

Performs the conversion.

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

[src]

Creates a value from an iterator. Read more

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<T: Encodable> Encodable for P<[T]>
[src]

[src]

impl<T: Decodable> Decodable for P<[T]>
[src]

[src]

impl<CTX, T: ?Sized> HashStable<CTX> for P<T> where
    T: HashStable<CTX>, 
[src]

[src]

impl ToTokens for P<Item>
[src]

Important traits for Vec<u8>
[src]

impl ToTokens for P<ImplItem>
[src]

Important traits for Vec<u8>
[src]

impl ToTokens for P<Expr>
[src]

Important traits for Vec<u8>
[src]

impl ToTokens for P<Pat>
[src]

Important traits for Vec<u8>
[src]

impl ToTokens for P<Block>
[src]

Important traits for Vec<u8>
[src]

Auto Trait Implementations

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

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