#[repr(C)]
pub struct hs_platform_info { pub tune: c_uint, pub cpu_features: c_ulonglong, pub reserved1: c_ulonglong, pub reserved2: c_ulonglong, }
Expand description

A type containing information on the target platform which may optionally be provided to the compile calls (@ref hs_compile(), @ref hs_compile_multi(), @ref hs_compile_ext_multi()).

A hs_platform_info structure may be populated for the current platform by using the @ref hs_populate_platform() call.

Fields

tune: c_uint

Information about the target platform which may be used to guide the optimisation process of the compile.

Use of this field does not limit the processors that the resulting database can run on, but may impact the performance of the resulting database.

cpu_features: c_ulonglong

Relevant CPU features available on the target platform

This value may be produced by combining HS_CPU_FEATURE_* flags (such as @ref HS_CPU_FEATURES_AVX2). Multiple CPU features may be or’ed together to produce the value.

reserved1: c_ulonglong

Reserved for future use.

reserved2: c_ulonglong

Reserved for future use.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.