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§
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
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.