Struct syntax::ptr::PExperimental
[-]
[+]
[src]
pub struct P<T> {
// some fields omitted
}An owned smart pointer.
Methods
impl<T: 'static> P<T>
fn and_then<U>(self, f: |T| -> U) -> U
Move out of the pointer.
Intended for chaining transformations not covered by map.
fn map(self, f: |T| -> T) -> P<T>
Transform the inner value, consuming self and producing a new P<T>.