Trait Platform

Source
pub trait Platform: Sized {
    // Provided methods
    fn wasm32(self, _input: Self) -> Self { ... }
    fn ios(self, _input: Self) -> Self { ... }
    fn android(self, _input: Self) -> Self { ... }
    fn windows(self, _input: Self) -> Self { ... }
    fn macos(self, _input: Self) -> Self { ... }
    fn linux(self, _input: Self) -> Self { ... }
    fn emscripten(self, _input: Self) -> Self { ... }
    fn freebsd(self, _input: Self) -> Self { ... }
    fn openbsd(self, _input: Self) -> Self { ... }
    fn dragonfly(self, _input: Self) -> Self { ... }
    fn netbsd(self, _input: Self) -> Self { ... }
    fn redox(self, _input: Self) -> Self { ... }
}

Provided Methods§

Source

fn wasm32(self, _input: Self) -> Self

Source

fn ios(self, _input: Self) -> Self

Source

fn android(self, _input: Self) -> Self

Source

fn windows(self, _input: Self) -> Self

Source

fn macos(self, _input: Self) -> Self

Source

fn linux(self, _input: Self) -> Self

Source

fn emscripten(self, _input: Self) -> Self

Source

fn freebsd(self, _input: Self) -> Self

Source

fn openbsd(self, _input: Self) -> Self

Source

fn dragonfly(self, _input: Self) -> Self

Source

fn netbsd(self, _input: Self) -> Self

Source

fn redox(self, _input: Self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Platform for T