pub struct VectorValue {
pub coord_type: VectorType,
pub values: VectorStorage,
}Fields§
§coord_type: VectorType§values: VectorStorageImplementations§
Source§impl VectorValue
impl VectorValue
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> VectorIter<'_> ⓘ
pub fn validate(&self) -> Result<(), EncodeError>
pub fn encode_blob(&self) -> Result<Vec<u8>, EncodeError>
pub fn decode_blob(blob: &[u8]) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for VectorValue
impl Clone for VectorValue
Source§fn clone(&self) -> VectorValue
fn clone(&self) -> VectorValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VectorValue
impl Debug for VectorValue
Source§impl PartialEq for VectorValue
impl PartialEq for VectorValue
Source§fn eq(&self, other: &VectorValue) -> bool
fn eq(&self, other: &VectorValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VectorValue
Auto Trait Implementations§
impl Freeze for VectorValue
impl RefUnwindSafe for VectorValue
impl Send for VectorValue
impl Sync for VectorValue
impl Unpin for VectorValue
impl UnsafeUnpin for VectorValue
impl UnwindSafe for VectorValue
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