Trait hobo::entity::AsEntity

source ·
pub trait AsEntity {
Show 24 methods // Required method fn as_entity(&self) -> Entity; // Provided methods fn try_get_cmp<'a, C: 'static>( &self ) -> Option<OwningRef<StorageGuard<C, StorageRef<'a, C>>, C>> where Self: Sized { ... } fn try_get_cmp_mut<'a, C: 'static>( &self ) -> Option<OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>> where Self: Sized { ... } fn get_cmp<'a, C: 'static>( &self ) -> OwningRef<StorageGuard<C, StorageRef<'a, C>>, C> { ... } fn get_cmp_mut<'a, C: 'static>( &self ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C> { ... } fn get_cmp_mut_or<'a, C: 'static>( &self, f: impl FnOnce() -> C ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C> { ... } fn get_cmp_mut_or_default<'a, C: 'static + Default>( &self ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C> { ... } fn remove_cmp<C: 'static>(&self) where Self: Sized { ... } fn find_in_ancestors<Q: Query>(&self) -> Vec<Q::Fetch> { ... } fn try_find_first_in_ancestors<Q: Query>(&self) -> Option<Q::Fetch> { ... } fn find_first_in_ancestors<Q: Query>(&self) -> Q::Fetch { ... } fn find_in_descendants<Q: Query>(&self) -> Vec<Q::Fetch> { ... } fn find_in_children<Q: Query>(&self) -> Vec<Q::Fetch> { ... } fn try_find_first_in_descendants<Q: Query>(&self) -> Option<Q::Fetch> { ... } fn try_find_first_in_children<Q: Query>(&self) -> Option<Q::Fetch> { ... } fn find_first_in_descendants<Q: Query>(&self) -> Q::Fetch { ... } fn find_first_in_children<Q: Query>(&self) -> Q::Fetch { ... } fn remove(&self) { ... } fn add_component<T: 'static>(&self, component: T) { ... } fn component<T: 'static>(self, component: T) -> Self where Self: Sized { ... } fn has_cmp<C: 'static>(&self) -> bool where Self: Sized { ... } fn is_dead(&self) -> bool { ... } fn spawn(&self, f: impl Future<Output = ()> + 'static) { ... } fn spawn_in<F: FnOnce(&Self) -> Fut, Fut: Future<Output = ()> + 'static>( self, f: F ) -> Self where Self: Sized { ... }
}

Required Methods§

source

fn as_entity(&self) -> Entity

Provided Methods§

source

fn try_get_cmp<'a, C: 'static>( &self ) -> Option<OwningRef<StorageGuard<C, StorageRef<'a, C>>, C>>where Self: Sized,

source

fn try_get_cmp_mut<'a, C: 'static>( &self ) -> Option<OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>>where Self: Sized,

source

fn get_cmp<'a, C: 'static>( &self ) -> OwningRef<StorageGuard<C, StorageRef<'a, C>>, C>

source

fn get_cmp_mut<'a, C: 'static>( &self ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>

source

fn get_cmp_mut_or<'a, C: 'static>( &self, f: impl FnOnce() -> C ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>

source

fn get_cmp_mut_or_default<'a, C: 'static + Default>( &self ) -> OwningRefMut<StorageGuardMut<C, StorageRefMut<'a, C>>, C>

source

fn remove_cmp<C: 'static>(&self)where Self: Sized,

source

fn find_in_ancestors<Q: Query>(&self) -> Vec<Q::Fetch>

source

fn try_find_first_in_ancestors<Q: Query>(&self) -> Option<Q::Fetch>

source

fn find_first_in_ancestors<Q: Query>(&self) -> Q::Fetch

source

fn find_in_descendants<Q: Query>(&self) -> Vec<Q::Fetch>

source

fn find_in_children<Q: Query>(&self) -> Vec<Q::Fetch>

source

fn try_find_first_in_descendants<Q: Query>(&self) -> Option<Q::Fetch>

source

fn try_find_first_in_children<Q: Query>(&self) -> Option<Q::Fetch>

source

fn find_first_in_descendants<Q: Query>(&self) -> Q::Fetch

source

fn find_first_in_children<Q: Query>(&self) -> Q::Fetch

source

fn remove(&self)

source

fn add_component<T: 'static>(&self, component: T)

source

fn component<T: 'static>(self, component: T) -> Selfwhere Self: Sized,

source

fn has_cmp<C: 'static>(&self) -> boolwhere Self: Sized,

source

fn is_dead(&self) -> bool

source

fn spawn(&self, f: impl Future<Output = ()> + 'static)

source

fn spawn_in<F: FnOnce(&Self) -> Fut, Fut: Future<Output = ()> + 'static>( self, f: F ) -> Selfwhere Self: Sized,

Implementations on Foreign Types§

source§

impl<T: AsEntity> AsEntity for &mut T

source§

impl<T: AsEntity> AsEntity for &T

Implementors§

source§

impl AsEntity for A

source§

impl AsEntity for Abbr

source§

impl AsEntity for Address

source§

impl AsEntity for Animate

source§

impl AsEntity for AnimateMotion

source§

impl AsEntity for AnimateTransform

source§

impl AsEntity for Area

source§

impl AsEntity for Article

source§

impl AsEntity for Aside

source§

impl AsEntity for Audio

source§

impl AsEntity for B

source§

impl AsEntity for Base

source§

impl AsEntity for Bdi

source§

impl AsEntity for Bdo

source§

impl AsEntity for Blockquote

source§

impl AsEntity for Body

source§

impl AsEntity for Br

source§

impl AsEntity for Button

source§

impl AsEntity for Canvas

source§

impl AsEntity for Caption

source§

impl AsEntity for Circle

source§

impl AsEntity for Cite

source§

impl AsEntity for ClipPath

source§

impl AsEntity for Code

source§

impl AsEntity for Col

source§

impl AsEntity for Colgroup

source§

impl AsEntity for Data

source§

impl AsEntity for Datalist

source§

impl AsEntity for Dd

source§

impl AsEntity for Defs

source§

impl AsEntity for Del

source§

impl AsEntity for Desc

source§

impl AsEntity for Details

source§

impl AsEntity for Dfn

source§

impl AsEntity for Dialog

source§

impl AsEntity for Div

source§

impl AsEntity for Dl

source§

impl AsEntity for Dt

source§

impl AsEntity for Ellipse

source§

impl AsEntity for Em

source§

impl AsEntity for Embed

source§

impl AsEntity for FeBlend

source§

impl AsEntity for FeColorMatrix

source§

impl AsEntity for FeComponentTransfer

source§

impl AsEntity for FeComposite

source§

impl AsEntity for FeConvolveMatrix

source§

impl AsEntity for FeDiffuseLighting

source§

impl AsEntity for FeDisplacementMap

source§

impl AsEntity for FeDistantLight

source§

impl AsEntity for FeDropShadow

source§

impl AsEntity for FeFlood

source§

impl AsEntity for FeFuncA

source§

impl AsEntity for FeFuncB

source§

impl AsEntity for FeFuncG

source§

impl AsEntity for FeFuncR

source§

impl AsEntity for FeGaussianBlur

source§

impl AsEntity for FeImage

source§

impl AsEntity for FeMerge

source§

impl AsEntity for FeMergeNode

source§

impl AsEntity for FeMorphology

source§

impl AsEntity for FeOffset

source§

impl AsEntity for FePointLight

source§

impl AsEntity for FeSpecularLighting

source§

impl AsEntity for FeSpotLight

source§

impl AsEntity for FeTile

source§

impl AsEntity for FeTurbulence

source§

impl AsEntity for Fieldset

source§

impl AsEntity for Figcaption

source§

impl AsEntity for Figure

source§

impl AsEntity for Filter

source§

impl AsEntity for ForeignObject

source§

impl AsEntity for Form

source§

impl AsEntity for G

source§

impl AsEntity for H1

source§

impl AsEntity for H2

source§

impl AsEntity for H3

source§

impl AsEntity for H4

source§

impl AsEntity for H5

source§

impl AsEntity for H6

source§

impl AsEntity for Head

source§

impl AsEntity for Header

source§

impl AsEntity for Hr

source§

impl AsEntity for Html

source§

impl AsEntity for I

source§

impl AsEntity for Iframe

source§

impl AsEntity for Image

source§

impl AsEntity for Img

source§

impl AsEntity for Input

source§

impl AsEntity for Ins

source§

impl AsEntity for Kbd

source§

impl AsEntity for Label

source§

impl AsEntity for Legend

source§

impl AsEntity for Li

source§

impl AsEntity for Line

source§

impl AsEntity for LinearGradient

source§

impl AsEntity for Main

source§

impl AsEntity for Map

source§

impl AsEntity for Mark

source§

impl AsEntity for Marker

source§

impl AsEntity for Mask

source§

impl AsEntity for Menu

source§

impl AsEntity for Meta

source§

impl AsEntity for Metadata

source§

impl AsEntity for Meter

source§

impl AsEntity for Mpath

source§

impl AsEntity for Nav

source§

impl AsEntity for Noscript

source§

impl AsEntity for Object

source§

impl AsEntity for Ol

source§

impl AsEntity for Optgroup

source§

impl AsEntity for Option

source§

impl AsEntity for Output

source§

impl AsEntity for P

source§

impl AsEntity for Param

source§

impl AsEntity for Path

source§

impl AsEntity for Pattern

source§

impl AsEntity for Picture

source§

impl AsEntity for Polygon

source§

impl AsEntity for Polyline

source§

impl AsEntity for Pre

source§

impl AsEntity for Progress

source§

impl AsEntity for Q

source§

impl AsEntity for RadialGradient

source§

impl AsEntity for Rb

source§

impl AsEntity for Rect

source§

impl AsEntity for Rp

source§

impl AsEntity for Rt

source§

impl AsEntity for Rtc

source§

impl AsEntity for Ruby

source§

impl AsEntity for S

source§

impl AsEntity for Samp

source§

impl AsEntity for Script

source§

impl AsEntity for Section

source§

impl AsEntity for Select

source§

impl AsEntity for Set

source§

impl AsEntity for Slot

source§

impl AsEntity for Small

source§

impl AsEntity for Source

source§

impl AsEntity for Span

source§

impl AsEntity for Stop

source§

impl AsEntity for Strong

source§

impl AsEntity for Style

source§

impl AsEntity for Sub

source§

impl AsEntity for Summary

source§

impl AsEntity for Sup

source§

impl AsEntity for Svg

source§

impl AsEntity for Switch

source§

impl AsEntity for Symbol

source§

impl AsEntity for Table

source§

impl AsEntity for Tbody

source§

impl AsEntity for Td

source§

impl AsEntity for Template

source§

impl AsEntity for Text

source§

impl AsEntity for TextPath

source§

impl AsEntity for Textarea

source§

impl AsEntity for Tfoot

source§

impl AsEntity for Th

source§

impl AsEntity for Thead

source§

impl AsEntity for Time

source§

impl AsEntity for Title

source§

impl AsEntity for Tr

source§

impl AsEntity for Track

source§

impl AsEntity for Tspan

source§

impl AsEntity for U

source§

impl AsEntity for Ul

source§

impl AsEntity for Use

source§

impl AsEntity for Var

source§

impl AsEntity for Video

source§

impl AsEntity for View

source§

impl AsEntity for Wbr

source§

impl AsEntity for Element

source§

impl AsEntity for Parent

source§

impl AsEntity for Entity