[][src]Trait ico_memory::mem::MaybeNull

pub trait MaybeNull: Sized {
    fn is_null(&self) -> bool;
fn null() -> Self;
fn take(&mut self) -> Self;
fn replace(&mut self, new: Self) -> Self; }

Required methods

fn is_null(&self) -> bool

fn null() -> Self

fn take(&mut self) -> Self

Takes the value out , leaving a null in its place.

fn replace(&mut self, new: Self) -> Self

Loading content...

Implementors

impl<'a, T> MaybeNull for IndexedRef<'a, T>[src]

fn take(&mut self) -> IndexedRef<'a, T>[src]

Takes the value out , leaving a null in its place.

impl<'a, T> MaybeNull for ResourceRef<'a, T>[src]

fn take(&mut self) -> ResourceRef<'a, T>[src]

Takes the value out , leaving a null in its place.

Loading content...