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]

Creates a new handle wrapping the given object.

Trait Implementations

impl<'a, T: Clone + 'a> Clone for Handle<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: PartialEq + 'a> PartialEq for Handle<'a, T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, T> Deref for Handle<'a, T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a, T: Debug> Debug for Handle<'a, T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, T> Send for Handle<'a, T> where
    T: Send + Sync

impl<'a, T> Sync for Handle<'a, T> where
    T: Sync