Struct flatbuffers::WIPOffset [−][src]
pub struct WIPOffset<T>(_, _);
WIPOffset contains an UOffsetT with a special meaning: it is the location of data relative to the end of an in-progress FlatBuffer. The FlatBufferBuilder uses this to track the location of objects in an absolute way. The impl of Push converts a WIPOffset into a ForwardsUOffset.
Methods
impl<'a, T: 'a> WIPOffset<T>
[src]
impl<'a, T: 'a> WIPOffset<T>
pub fn new(o: UOffsetT) -> WIPOffset<T>
[src]
pub fn new(o: UOffsetT) -> WIPOffset<T>
Create a new WIPOffset.
pub fn as_union_value(&self) -> WIPOffset<UnionWIPOffset>
[src]
pub fn as_union_value(&self) -> WIPOffset<UnionWIPOffset>
Return a wrapped value that brings its meaning as a union WIPOffset into the type system.
pub fn value(&self) -> UOffsetT
[src]
pub fn value(&self) -> UOffsetT
Get the underlying value.
Trait Implementations
impl<T: Debug> Debug for WIPOffset<T>
[src]
impl<T: Debug> Debug for WIPOffset<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Copy for WIPOffset<T>
[src]
impl<T> Copy for WIPOffset<T>
impl<T> Clone for WIPOffset<T>
[src]
impl<T> Clone for WIPOffset<T>
fn clone(&self) -> WIPOffset<T>
[src]
fn clone(&self) -> WIPOffset<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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> PartialEq for WIPOffset<T>
[src]
impl<T> PartialEq for WIPOffset<T>
fn eq(&self, o: &WIPOffset<T>) -> bool
[src]
fn eq(&self, o: &WIPOffset<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[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<T> Deref for WIPOffset<T>
[src]
impl<T> Deref for WIPOffset<T>
type Target = UOffsetT
The resulting type after dereferencing.
fn deref(&self) -> &UOffsetT
[src]
fn deref(&self) -> &UOffsetT
Dereferences the value.
impl<T> Push for WIPOffset<T>
[src]
impl<T> Push for WIPOffset<T>