Struct froggy::Pointer
[−]
[src]
pub struct Pointer<T> { /* fields omitted */ }
A pointer to a component of type T
.
The component is guaranteed to be accessible for as long as this pointer is alive.
You'd need a locked storage to access the data.
The pointer also holds the storage alive and knows the index of the element to look up.
Methods
impl<T> Pointer<T>
[src]
fn downgrade(&self) -> WeakPointer<T>
Creates a new WeakPointer
to this component.
Trait Implementations
impl<T: Debug> Debug for Pointer<T>
[src]
impl<T> Clone for Pointer<T>
[src]
fn clone(&self) -> Pointer<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> PartialEq for Pointer<T>
[src]
fn eq(&self, other: &Pointer<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.