[−][src]Struct syntax::ptr::P
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
An owned smart pointer.
Fields
ptr: Box<T>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl<T: 'static> P<T>[src]
impl<T: 'static> P<T>pub fn and_then<U, F>(self, f: F) -> U where
F: FnOnce(T) -> U, [src]
pub fn and_then<U, F>(self, f: F) -> U where
F: FnOnce(T) -> U, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Move out of the pointer.
Intended for chaining transformations not covered by map.
pub fn into_inner(self) -> T[src]
pub fn into_inner(self) -> T🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Equivalent to and_then(|x| x)
pub fn map<F>(self, f: F) -> P<T> where
F: FnOnce(T) -> T, [src]
pub fn map<F>(self, f: F) -> P<T> where
F: FnOnce(T) -> T, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Transform the inner value, consuming self and producing a new P<T>.
impl<T> P<[T]>[src]
impl<T> P<[T]>pub fn new() -> P<[T]>[src]
pub fn new() -> P<[T]>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn from_vec(v: Vec<T>) -> P<[T]>[src]
pub fn from_vec(v: Vec<T>) -> P<[T]>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn into_vec(self) -> Vec<T>[src]
pub fn into_vec(self) -> Vec<T>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<T> MoveMap<T> for P<[T]>[src]
impl<T> MoveMap<T> for P<[T]>fn move_flat_map<F, I>(self, f: F) -> Self where
F: FnMut(T) -> I,
I: IntoIterator<Item = T>, [src]
fn move_flat_map<F, I>(self, f: F) -> Self where
F: FnMut(T) -> I,
I: IntoIterator<Item = T>, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn move_map<F>(self, f: F) -> Self where
F: FnMut(T) -> T, [src]
fn move_map<F>(self, f: F) -> Self where
F: FnMut(T) -> T, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T: HasAttrs + 'static> HasAttrs for P<T>[src]
impl<T: HasAttrs + 'static> HasAttrs for P<T>fn attrs(&self) -> &[Attribute][src]
fn attrs(&self) -> &[Attribute]🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self[src]
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl From<P<Expr>> for LhsExpr[src]
impl From<P<Expr>> for LhsExprimpl<T: Hash + ?Sized> Hash for P<T>[src]
impl<T: Hash + ?Sized> Hash for P<T>fn hash<__HT: Hasher>(&self, state: &mut __HT)[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl<T: PartialEq + ?Sized> PartialEq for P<T>[src]
impl<T: PartialEq + ?Sized> PartialEq for P<T>fn eq(&self, other: &P<T>) -> bool[src]
fn eq(&self, other: &P<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &P<T>) -> bool[src]
fn ne(&self, other: &P<T>) -> boolThis method tests for !=.
impl<T: Eq + ?Sized> Eq for P<T>[src]
impl<T: Eq + ?Sized> Eq for P<T>fn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl<T: ?Sized> Deref for P<T>[src]
impl<T: ?Sized> Deref for P<T>type Target = T
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &T[src]
fn deref(&self) -> &TDereferences the value.
impl<T: ?Sized> DerefMut for P<T>[src]
impl<T: ?Sized> DerefMut for P<T>ⓘImportant traits for &'a mut Rfn deref_mut(&mut self) -> &mut T[src]
fn deref_mut(&mut self) -> &mut TMutably dereferences the value.
impl<T: 'static + Clone> Clone for P<T>[src]
impl<T: 'static + Clone> Clone for P<T>fn clone(&self) -> P<T>[src]
fn clone(&self) -> P<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T: ?Sized + Debug> Debug for P<T>[src]
impl<T: ?Sized + Debug> Debug for P<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Display> Display for P<T>[src]
impl<T: Display> Display for P<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T> Pointer for P<T>[src]
impl<T> Pointer for P<T>impl<T: 'static + Decodable> Decodable for P<T>[src]
impl<T: 'static + Decodable> Decodable for P<T>fn decode<D: Decoder>(d: &mut D) -> Result<P<T>, D::Error>[src]
fn decode<D: Decoder>(d: &mut D) -> Result<P<T>, D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T: Encodable> Encodable for P<T>[src]
impl<T: Encodable> Encodable for P<T>fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>[src]
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T> Default for P<[T]>[src]
impl<T> Default for P<[T]>impl<T: Clone> Clone for P<[T]>[src]
impl<T: Clone> Clone for P<[T]>fn clone(&self) -> P<[T]>[src]
fn clone(&self) -> P<[T]>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T> From<Vec<T>> for P<[T]>[src]
impl<T> From<Vec<T>> for P<[T]>impl<T> Into<Vec<T>> for P<[T]>[src]
impl<T> Into<Vec<T>> for P<[T]>impl<T> FromIterator<T> for P<[T]>[src]
impl<T> FromIterator<T> for P<[T]>fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> P<[T]>[src]
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> P<[T]>Creates a value from an iterator. Read more
impl<T> IntoIterator for P<[T]>[src]
impl<T> IntoIterator for P<[T]>type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter[src]
fn into_iter(self) -> Self::IntoIterCreates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a P<[T]>[src]
impl<'a, T> IntoIterator for &'a P<[T]>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?
fn into_iter(self) -> Self::IntoIter[src]
fn into_iter(self) -> Self::IntoIterCreates an iterator from a value. Read more
impl<T: Encodable> Encodable for P<[T]>[src]
impl<T: Encodable> Encodable for P<[T]>fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>[src]
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T: Decodable> Decodable for P<[T]>[src]
impl<T: Decodable> Decodable for P<[T]>fn decode<D: Decoder>(d: &mut D) -> Result<P<[T]>, D::Error>[src]
fn decode<D: Decoder>(d: &mut D) -> Result<P<[T]>, D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<CTX, T: ?Sized> HashStable<CTX> for P<T> where
T: HashStable<CTX>, [src]
impl<CTX, T: ?Sized> HashStable<CTX> for P<T> where
T: HashStable<CTX>, fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut CTX,
hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
hcx: &mut CTX,
hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl ToTokens for P<Item>[src]
impl ToTokens for P<Item>fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>[src]
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl ToTokens for P<ImplItem>[src]
impl ToTokens for P<ImplItem>fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>[src]
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl ToTokens for P<Expr>[src]
impl ToTokens for P<Expr>fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>[src]
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl ToTokens for P<Pat>[src]
impl ToTokens for P<Pat>fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>[src]
fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl ToTokens for P<Block>[src]
impl ToTokens for P<Block>Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T[src]
impl<T> From for Timpl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<I> IntoIterator for I where
I: Iterator, [src]
impl<I> IntoIterator for I where
I: Iterator, type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I[src]
fn into_iter(self) -> ICreates an iterator from a value. Read more
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> Encodable for T where
T: UseSpecializedEncodable + ?Sized, [src]
impl<T> Encodable for T where
T: UseSpecializedEncodable + ?Sized, fn encode<E>(&self, e: &mut E) -> Result<(), <E as Encoder>::Error> where
E: Encoder, [src]
fn encode<E>(&self, e: &mut E) -> Result<(), <E as Encoder>::Error> where
E: Encoder, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<T> Decodable for T where
T: UseSpecializedDecodable, [src]
impl<T> Decodable for T where
T: UseSpecializedDecodable, fn decode<D>(d: &mut D) -> Result<T, <D as Decoder>::Error> where
D: Decoder, [src]
fn decode<D>(d: &mut D) -> Result<T, <D as Decoder>::Error> where
D: Decoder, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl<E> SpecializationError for E[src]
impl<E> SpecializationError for Efn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, [src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T[src]
impl<T> Erased for Timpl<T> Send for T where
T: ?Sized, [src]
impl<T> Send for T where
T: ?Sized, impl<T> Sync for T where
T: ?Sized, [src]
impl<T> Sync for T where
T: ?Sized, impl<T> Erased for T
impl<T> Erased for T