archmage 0.9.15

Safely invoke your intrinsic power, using the tokens granted to you by the CPU. Cast primitive magics faster than any mage alive.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Test that using the wrong token type fails to compile.

use archmage::SimdToken;
use archmage::{X64V2Token, X64V3Token};

fn requires_x64v3(_token: X64V3Token) {}

fn main() {
    // This should fail: X64V2Token cannot be used where X64V3Token is required
    if let Some(v2) = X64V2Token::summon() {
        requires_x64v3(v2);
    }
}