Struct syntex_syntax::ptr::P
[−]
[src]
pub struct P<T> { // some fields omitted }
An owned smart pointer.
Methods
impl<T: 'static> P<T>
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
.
fn map<F>(self, f: F) -> P<T> where F: FnOnce(T) -> T
Transform the inner value, consuming self
and producing a new P<T>
.