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

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

An owned smart pointer.

Methods

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

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

Equivalent to and_then(|x| x)

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

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

Important traits for Vec<u8>

Trait Implementations

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

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

Important traits for &'a [u8]

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

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

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

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

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

This method tests for !=.

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

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

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter.

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

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

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

Creates an empty P<[T]>.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

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

Important traits for Vec<u8>

Performs the conversion.

impl<T> FromIterator<T> for P<[T]>
[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?

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?

Creates an iterator from a value. Read more

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

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

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

impl ToTokens for P<Item>
[src]

Important traits for Vec<u8>

impl ToTokens for P<ImplItem>
[src]

Important traits for Vec<u8>

impl ToTokens for P<Expr>
[src]

Important traits for Vec<u8>

impl ToTokens for P<Pat>
[src]

Important traits for Vec<u8>

impl ToTokens for P<Block>
[src]

Important traits for Vec<u8>

Auto Trait Implementations

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

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