Trait manually_boxed::OptionPtrExt

source ·
pub trait OptionPtrExt<T: ?Sized> {
    // Required method
    fn as_ptr(self) -> Option<*mut T>;
}
Expand description

Convenience trait for working with Option<Ptr<_>>

Required Methods§

source

fn as_ptr(self) -> Option<*mut T>

Returns the pointer, which will be null iff self is None

Implementations on Foreign Types§

source§

impl<T: ?Sized> OptionPtrExt<T> for Option<Ptr<T>>

Implementors§