pub struct Utf8View {}Expand description
Logically the same as Utf8, 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
Utf8Viewin the fileSchema.fbs:195
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Utf8View
impl<'de> Deserialize<'de> for Utf8View
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 Ord for Utf8View
impl Ord for Utf8View
Source§impl PartialOrd for Utf8View
impl PartialOrd for Utf8View
Source§impl<'a> TryFrom<Utf8ViewRef<'a>> for Utf8View
impl<'a> TryFrom<Utf8ViewRef<'a>> for Utf8View
impl Eq for Utf8View
impl StructuralPartialEq for Utf8View
impl VectorWrite<Offset<Utf8View>> for Utf8View
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<Utf8View>> for Utf8View
impl WriteAsOffset<Utf8View> for Utf8View
impl WriteAsOffset<Utf8View> for Utf8ViewBuilder<()>
impl WriteAsOptional<Offset<Utf8View>> for Utf8View
Auto Trait Implementations§
impl Freeze for Utf8View
impl RefUnwindSafe for Utf8View
impl Send for Utf8View
impl Sync for Utf8View
impl Unpin for Utf8View
impl UnwindSafe for Utf8View
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