[−][src]Struct rustc_ap_rustc_ast::ptr::P  
An owned smart pointer.
Implementations
impl<T: 'static> P<T>[src]
pub fn and_then<U, F>(self, f: F) -> U where
    F: FnOnce(T) -> U, [src]
F: FnOnce(T) -> U,
Move out of the pointer.
Intended for chaining transformations not covered by map.
pub fn into_inner(self) -> T[src]
Equivalent to and_then(|x| x).
pub fn map<F>(mut self: Self, f: F) -> P<T> where
    F: FnOnce(T) -> T, [src]
F: FnOnce(T) -> T,
Produce a new P<T> from self without reallocating.
pub fn filter_map<F>(mut self: Self, f: F) -> Option<P<T>> where
    F: FnOnce(T) -> Option<T>, [src]
F: FnOnce(T) -> Option<T>,
Optionally produce a new P<T> from self without reallocating.
impl<T> P<[T]>[src]
pub const fn new() -> P<[T]>[src]
pub fn from_vec(v: Vec<T>) -> P<[T]>[src]
pub fn into_vec(self) -> Vec<T>[src]
Trait Implementations
impl<T: 'static + Clone> Clone for P<T>[src]
impl<T: Clone> Clone for P<[T]>[src]
impl<T: ?Sized + Debug> Debug for P<T>[src]
impl<D: Decoder, T: 'static + Decodable<D>> Decodable<D> for P<T>[src]
impl<D: Decoder, T: Decodable<D>> Decodable<D> for P<[T]>[src]
impl<T> Default for P<[T]>[src]
impl<T: ?Sized> Deref for P<T>[src]
impl<T: ?Sized> DerefMut for P<T>[src]
impl<T: Display> Display for P<T>[src]
impl<S: Encoder, T: Encodable<S>> Encodable<S> for P<T>[src]
impl<S: Encoder, T: Encodable<S>> Encodable<S> for P<[T]>[src]
impl<T> From<Vec<T, Global>> for P<[T]>[src]
impl<T> FromIterator<T> for P<[T]>[src]
impl<T: HasAttrs + 'static> HasAttrs for P<T>[src]
pub fn attrs(&self) -> &[Attribute][src]
pub fn visit_attrs(&mut self, f: impl FnOnce(&mut Vec<Attribute>))[src]
impl<T: HasTokens + 'static> HasTokens for P<T>[src]
pub fn finalize_tokens(&mut self, tokens: LazyTokenStream)[src]
impl<CTX, T: ?Sized> HashStable<CTX> for P<T> where
    T: HashStable<CTX>, [src]
T: HashStable<CTX>,
pub fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher)[src]
impl<T> Into<Vec<T, Global>> for P<[T]>[src]
impl<T> IntoIterator for P<[T]>[src]
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter[src]
impl<'a, T> IntoIterator for &'a P<[T]>[src]
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter[src]
impl<T> Pointer for P<T>[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for P<T> where
    T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T: ?Sized> Send for P<T> where
    T: Send, [src]
T: Send,
impl<T: ?Sized> Sync for P<T> where
    T: Sync, [src]
T: Sync,
impl<T: ?Sized> Unpin for P<T>[src]
impl<T: ?Sized> UnwindSafe for P<T> where
    T: UnwindSafe, [src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> Erased for T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
    T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
V: MultiLane<T>,