pub struct ComponentInfo { /* private fields */ }
Expand description
Type information required for components.
Implementations§
Source§impl ComponentInfo
impl ComponentInfo
Sourcepub fn of<T>() -> Selfwhere
T: Component,
pub fn of<T>() -> Selfwhere
T: Component,
Returns component information for specified component type.
Sourcepub fn external<T>() -> Selfwhere
T: 'static,
pub fn external<T>() -> Selfwhere
T: 'static,
Returns component information for specified external type.
pub fn id(&self) -> TypeId
pub fn layout(&self) -> Layout
pub fn name(&self) -> &'static str
pub fn borrows(&self) -> &[ComponentBorrow]
pub fn has_borrow(&self, ty: TypeId) -> bool
pub fn has_borrow_mut(&self, ty: TypeId) -> bool
Trait Implementations§
Source§impl Clone for ComponentInfo
impl Clone for ComponentInfo
Source§fn clone(&self) -> ComponentInfo
fn clone(&self) -> ComponentInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ComponentInfo
impl !RefUnwindSafe for ComponentInfo
impl Send for ComponentInfo
impl Sync for ComponentInfo
impl Unpin for ComponentInfo
impl !UnwindSafe for ComponentInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more