Skip to main content

Arguable

Trait Arguable 

pub unsafe trait Arguable {
    // Required method
    fn into_arg(self) -> usize;
}
Available on crate feature threading only.
Expand description

Trait for types that can be used as argument for threads.

§Safety

This trait must only be implemented on types whose binary representation fits into a single general-purpose register on all supported architectures.

Required Methods§

fn into_arg(self) -> usize

Returns the ABI representation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl Arguable for usize

§

fn into_arg(self) -> usize

§

impl<T> Arguable for &'static T
where T: Sync,

§

fn into_arg(self) -> usize

Implementors§