pub struct BinaryView {}Expand description
Logically the same as Binary, but the internal representation uses a view struct that contains the string length and either the string’s entire data inline (for small strings) or an inlined prefix, an index of another buffer, and an offset pointing to a slice in that buffer (for non-small strings).
Since it uses a variable number of data buffers, each Field with this type
must have a corresponding entry in variadicBufferCounts.
Generated from these locations:
- Table
BinaryViewin the fileSchema.fbs:205
Implementations§
Source§impl BinaryView
impl BinaryView
Sourcepub fn builder() -> BinaryViewBuilder<()>
pub fn builder() -> BinaryViewBuilder<()>
Creates a BinaryViewBuilder for serializing an instance of this table.
pub fn create(builder: &mut Builder) -> Offset<Self>
Trait Implementations§
Source§impl Clone for BinaryView
impl Clone for BinaryView
Source§fn clone(&self) -> BinaryView
fn clone(&self) -> BinaryView
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryView
impl Debug for BinaryView
Source§impl Default for BinaryView
impl Default for BinaryView
Source§impl<'de> Deserialize<'de> for BinaryView
impl<'de> Deserialize<'de> for BinaryView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BinaryView
impl Hash for BinaryView
Source§impl Ord for BinaryView
impl Ord for BinaryView
Source§fn cmp(&self, other: &BinaryView) -> Ordering
fn cmp(&self, other: &BinaryView) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BinaryView
impl PartialEq for BinaryView
Source§impl PartialOrd for BinaryView
impl PartialOrd for BinaryView
Source§impl Serialize for BinaryView
impl Serialize for BinaryView
Source§impl<'a> TryFrom<BinaryViewRef<'a>> for BinaryView
impl<'a> TryFrom<BinaryViewRef<'a>> for BinaryView
impl Eq for BinaryView
impl StructuralPartialEq for BinaryView
impl VectorWrite<Offset<BinaryView>> for BinaryView
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<BinaryView>> for BinaryView
impl WriteAsOffset<BinaryView> for BinaryView
impl WriteAsOffset<BinaryView> for BinaryViewBuilder<()>
impl WriteAsOptional<Offset<BinaryView>> for BinaryView
Auto Trait Implementations§
impl Freeze for BinaryView
impl RefUnwindSafe for BinaryView
impl Send for BinaryView
impl Sync for BinaryView
impl Unpin for BinaryView
impl UnwindSafe for BinaryView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more