pub trait EntityExt<'tu> {
// Required methods
fn walk_children_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
fn walk_bases_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
fn walk_enums_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
fn walk_classes_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
fn walk_typedefs_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
fn walk_fields_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
fn walk_consts_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
fn walk_methods_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult;
}
Required Methods§
fn walk_children_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
fn walk_bases_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
fn walk_enums_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
fn walk_classes_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
fn walk_typedefs_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
fn walk_fields_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
fn walk_consts_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
fn walk_methods_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
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.
Implementations on Foreign Types§
Source§impl<'tu> EntityExt<'tu> for Entity<'tu>
impl<'tu> EntityExt<'tu> for Entity<'tu>
Source§fn walk_children_while(
&self,
predicate: impl FnMut(Entity<'tu>) -> WalkAction,
) -> WalkResult
fn walk_children_while( &self, predicate: impl FnMut(Entity<'tu>) -> WalkAction, ) -> WalkResult
§Arguments
predicate
: returns true to continue iteration or false to stop returns: true if predicate stopped iteration, false otherwise