[][src]Struct flatbuffers::WIPOffset

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]

pub fn new(o: UOffsetT) -> WIPOffset<T>[src]

Create a new WIPOffset.

pub fn as_union_value(&self) -> WIPOffset<UnionWIPOffset>[src]

Return a wrapped value that brings its meaning as a union WIPOffset into the type system.

pub fn value(&self) -> UOffsetT[src]

Get the underlying value.

Trait Implementations

impl<T> Push for WIPOffset<T>[src]

type Output = ForwardsUOffset<T>

fn size() -> usize[src]

fn alignment() -> PushAlignment[src]

impl<T> Copy for WIPOffset<T>[src]

impl<T> PartialEq<WIPOffset<T>> for WIPOffset<T>[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<T> Clone for WIPOffset<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Deref for WIPOffset<T>[src]

type Target = UOffsetT

The resulting type after dereferencing.

impl<T: Debug> Debug for WIPOffset<T>[src]

Auto Trait Implementations

impl<T> Send for WIPOffset<T> where
    T: Send

impl<T> Sync for WIPOffset<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.