Struct vectorscan::flags::platform::Platform
source · pub struct Platform {
pub tune: TuneFamily,
pub cpu_features: CpuFeatures,
}
Available on crate feature
compiler
only.Expand description
A collection of bitsets used for instruction selection.
In particular this configuration is consumed by the various pattern
compilers. See Database#Platform Compatibility
for
further reference.
Fields§
§tune: TuneFamily
Tuning flags.
cpu_features: CpuFeatures
CPU feature support flags.
Implementations§
source§impl Platform
impl Platform
sourcepub fn local() -> Result<Self, VectorscanRuntimeError>
pub fn local() -> Result<Self, VectorscanRuntimeError>
Configuration to build for the current platform.
This method calls into hs_populate_platform()
to populate the returned
platform struct with all the features the currently executing processor
has access to when building a database.
Trait Implementations§
source§impl Ord for Platform
impl Ord for Platform
source§impl PartialEq for Platform
impl PartialEq for Platform
source§impl PartialOrd for Platform
impl PartialOrd for Platform
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Platform
impl Eq for Platform
impl StructuralEq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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<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.