pub trait Component:
Send
+ Sync
+ Sized
+ 'static {
const IS_SEND: bool = true;
const IS_SYNC: bool = true;
const IS_DEFAULT: bool = false;
const FN_DEFAULT: FnDefaultRaw = {ds::types::unimpl_default as unsafe fn(*mut u8)};
const IS_CLONE: bool = false;
const FN_CLONE: FnCloneRaw = {ds::types::unimpl_clone as unsafe fn(*const u8, *mut u8)};
// Provided methods
fn key() -> ComponentKey { ... }
fn type_info() -> TypeInfo { ... }
}Expand description
Ordinary rust types.
Provided Associated Constants§
const IS_SEND: bool = true
const IS_SYNC: bool = true
const IS_DEFAULT: bool = false
const FN_DEFAULT: FnDefaultRaw = {ds::types::unimpl_default as unsafe fn(*mut u8)}
const IS_CLONE: bool = false
const FN_CLONE: FnCloneRaw = {ds::types::unimpl_clone as unsafe fn(*const u8, *mut u8)}
Provided Methods§
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.