Trait bevy::reflect::GetPath[]

pub trait GetPath {
    pub fn path(
        &'r self,
        path: &'p str
    ) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>;
pub fn path_mut(
        &'r mut self,
        path: &'p str
    ) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>; pub fn get_path<T>(
        &'r self,
        path: &'p str
    ) -> Result<&'r T, ReflectPathError<'p>>
    where
        T: Reflect
, { ... }
pub fn get_path_mut<T>(
        &'r mut self,
        path: &'p str
    ) -> Result<&'r mut T, ReflectPathError<'p>>
    where
        T: Reflect
, { ... } }

Required methods

pub fn path(
    &'r self,
    path: &'p str
) -> Result<&'r (dyn Reflect + 'static), ReflectPathError<'p>>

pub fn path_mut(
    &'r mut self,
    path: &'p str
) -> Result<&'r mut (dyn Reflect + 'static), ReflectPathError<'p>>

Loading content...

Provided methods

pub fn get_path<T>(
    &'r self,
    path: &'p str
) -> Result<&'r T, ReflectPathError<'p>> where
    T: Reflect

pub fn get_path_mut<T>(
    &'r mut self,
    path: &'p str
) -> Result<&'r mut T, ReflectPathError<'p>> where
    T: Reflect

Loading content...

Implementors

impl GetPath for dyn Reflect + 'static

impl<T> GetPath for T where
    T: Reflect

Loading content...