mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-26 15:11:37 +00:00
cargo fmt
This commit is contained in:
@ -1,19 +1,43 @@
|
|||||||
use crate::types::ValueType;
|
use crate::types::ValueType;
|
||||||
|
|
||||||
|
use std::sync::atomic::{
|
||||||
|
AtomicI16, AtomicI32, AtomicI64, AtomicI8, AtomicU16, AtomicU32, AtomicU64, AtomicU8,
|
||||||
|
};
|
||||||
use std::{cell::Cell, marker::PhantomData, ops::Deref, slice};
|
use std::{cell::Cell, marker::PhantomData, ops::Deref, slice};
|
||||||
use std::sync::atomic::{AtomicI8, AtomicI16, AtomicI32, AtomicI64, AtomicU8, AtomicU16, AtomicU32, AtomicU64};
|
|
||||||
|
|
||||||
pub trait Atomic { type Output; }
|
pub trait Atomic {
|
||||||
impl Atomic for i8 { type Output = AtomicI8; }
|
type Output;
|
||||||
impl Atomic for i16 { type Output = AtomicI16; }
|
}
|
||||||
impl Atomic for i32 { type Output = AtomicI32; }
|
impl Atomic for i8 {
|
||||||
impl Atomic for i64 { type Output = AtomicI64; }
|
type Output = AtomicI8;
|
||||||
impl Atomic for u8 { type Output = AtomicU8; }
|
}
|
||||||
impl Atomic for u16 { type Output = AtomicU16; }
|
impl Atomic for i16 {
|
||||||
impl Atomic for u32 { type Output = AtomicU32; }
|
type Output = AtomicI16;
|
||||||
impl Atomic for u64 { type Output = AtomicU64; }
|
}
|
||||||
impl Atomic for f32 { type Output = AtomicU32; }
|
impl Atomic for i32 {
|
||||||
impl Atomic for f64 { type Output = AtomicU64; }
|
type Output = AtomicI32;
|
||||||
|
}
|
||||||
|
impl Atomic for i64 {
|
||||||
|
type Output = AtomicI64;
|
||||||
|
}
|
||||||
|
impl Atomic for u8 {
|
||||||
|
type Output = AtomicU8;
|
||||||
|
}
|
||||||
|
impl Atomic for u16 {
|
||||||
|
type Output = AtomicU16;
|
||||||
|
}
|
||||||
|
impl Atomic for u32 {
|
||||||
|
type Output = AtomicU32;
|
||||||
|
}
|
||||||
|
impl Atomic for u64 {
|
||||||
|
type Output = AtomicU64;
|
||||||
|
}
|
||||||
|
impl Atomic for f32 {
|
||||||
|
type Output = AtomicU32;
|
||||||
|
}
|
||||||
|
impl Atomic for f64 {
|
||||||
|
type Output = AtomicU64;
|
||||||
|
}
|
||||||
|
|
||||||
pub trait Atomicity {}
|
pub trait Atomicity {}
|
||||||
pub struct Atomically;
|
pub struct Atomically;
|
||||||
|
Reference in New Issue
Block a user