Enum Vector Backend
pub enum VectorBackend {
Scalar,
Aarch64Neon,
X86Sse2,
}Variants§
Implementations§
§impl VectorBackend
impl VectorBackend
pub fn native() -> Result<Self, VectorError>
pub fn native() -> Result<Self, VectorError>
Compile-time admission of the current ordinary OS user-mode profile:
aarch64 with the neon target feature, or x86_64 with sse2.
Any other target, including one built with those features disabled,
returns VectorError::UnsupportedBackend; there is no silent fallback.
This is not a runtime CPU probe and does not establish privileged,
bare-metal or sandbox register access.
pub fn validate(self) -> Result<(), VectorError>
Trait Implementations§
§impl Clone for VectorBackend
impl Clone for VectorBackend
§fn clone(&self) -> VectorBackend
fn clone(&self) -> VectorBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VectorBackend
§impl Debug for VectorBackend
impl Debug for VectorBackend
impl Eq for VectorBackend
§impl PartialEq for VectorBackend
impl PartialEq for VectorBackend
impl StructuralPartialEq for VectorBackend
Auto Trait Implementations§
impl Freeze for VectorBackend
impl RefUnwindSafe for VectorBackend
impl Send for VectorBackend
impl Sync for VectorBackend
impl Unpin for VectorBackend
impl UnsafeUnpin for VectorBackend
impl UnwindSafe for VectorBackend
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more