Struct flatdata::Handle [−][src]
pub struct Handle<'a, T: 'a> { /* fields omitted */ }
Handle to a flatdata struct for read-only fields access.
Wraps a flatdata struct and provides a read-only access to its data. A
handle automatically deref
's to a reference of the underlying struct. It
is used to track the lifetime of the wrapped object, since a generated
flatdata struct does not tracks the lifetime of the underlying data itself.
A handle is similar to const references, it is possible to have several of
them in scope, but not a const and mutable handle at the same time, cf.
HandleMut
.
Methods
impl<'a, T: 'a> Handle<'a, T>
[src]
impl<'a, T: 'a> Handle<'a, T>
Trait Implementations
impl<'a, T: Clone + 'a> Clone for Handle<'a, T>
[src]
impl<'a, T: Clone + 'a> Clone for Handle<'a, T>
fn clone(&self) -> Handle<'a, T>
[src]
fn clone(&self) -> Handle<'a, T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a, T: PartialEq + 'a> PartialEq for Handle<'a, T>
[src]
impl<'a, T: PartialEq + 'a> PartialEq for Handle<'a, T>
fn eq(&self, other: &Handle<'a, T>) -> bool
[src]
fn eq(&self, other: &Handle<'a, T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Handle<'a, T>) -> bool
[src]
fn ne(&self, other: &Handle<'a, T>) -> bool
This method tests for !=
.
impl<'a, T> Deref for Handle<'a, T>
[src]
impl<'a, T> Deref for Handle<'a, T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<'a, T: Debug> Debug for Handle<'a, T>
[src]
impl<'a, T: Debug> Debug for Handle<'a, T>