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 const GENERIC: Self
pub const GENERIC: Self
Configuration to build for the most general possible database target.
This will produce a maximally compatible database when deserialized, but won’t be able to take advantage of any specialized instructions.
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 PartialOrd for Platform
impl PartialOrd for Platform
impl Copy for Platform
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.