Trait gazebo::cell::AsARef[][src]

pub trait AsARef<T: ?Sized> {
    fn as_aref(&self) -> ARef<'_, T>;
fn try_as_aref(&self) -> Result<ARef<'_, T>, BorrowError>;
fn as_ref_cell(&self) -> Option<&RefCell<T>>; }
Expand description

Obtain an ARef from either a normal pointer or a RefCell.

Required methods

Get an ARef pointing at this type.

Try and get an ARef pointing at this type. Returns an Err if the type Self is a RefCell which is already mutably borrowed.

Return the underlying RefCell if Self is one, otherwise None.

Implementations on Foreign Types

Implementors