Enum utils::multiversion::Version
source · pub enum Version {
Scalar,
Array128,
Array256,
Array4096,
AVX2,
}
Expand description
Versions generated by multiversion!
on this platform.
Variants§
Implementations§
source§impl Version
impl Version
sourcepub fn get_override() -> Option<Version>
pub fn get_override() -> Option<Version>
Get the global version override, if any.
This function will return Some
containing the version provided to
Version::set_override
if it was previously called, or None
otherwise.
All dynamic dispatch implementations should respect this value.
sourcepub fn set_override(version: Version)
pub fn set_override(version: Version)
Set the global version override.
§Panics
This function will panic if any of the following conditions are met:
-
The provided version is not supported.
-
This function is called more than once.
-
This function is called after calling
Version::get_override
(or any multiversioned dynamic dispatch function that respects the global override).
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)