pub trait IntoComponentRules {
const DEFAULT_PRIORITY: usize;
// Required method
fn into_rules(
self,
world: &mut World,
registry: &mut ReplicationRegistry,
) -> Vec<ComponentRule>;
}Expand description
Parameters that can be turned into a list of component replication rules.
Implemented for tuples of IntoComponentRule.
See AppRuleExt::replicate_with for more details.
Required Associated Constants§
Sourceconst DEFAULT_PRIORITY: usize
const DEFAULT_PRIORITY: usize
Priority when registered with AppRuleExt::replicate_with.
Equals the number of components in a rule.
Required Methods§
Sourcefn into_rules(
self,
world: &mut World,
registry: &mut ReplicationRegistry,
) -> Vec<ComponentRule>
fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>
Turns into a replication rule and registers its functions in ReplicationRegistry.
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.