Struct accountable_refcell::Ref
[−]
[src]
pub struct Ref<'a, T: ?Sized + 'a> { /* fields omitted */ }
An immutable reference to the value stored in a RefCell.
Methods
impl<'a, T: ?Sized> Ref<'a, T>
[src]
fn clone(orig: &Ref<'a, T>) -> Ref<'a, T>
[src]
Clone the provided Ref value. This is treated as a separate borrow record from the original cloned reference.
Trait Implementations
impl<'a, T: ?Sized + Display> Display for Ref<'a, T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<'b, T: ?Sized + Debug> Debug for Ref<'b, T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<'a, T: ?Sized> Deref for Ref<'a, T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.