IntoComponentRules

Trait IntoComponentRules 

Source
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§

Source

const DEFAULT_PRIORITY: usize

Priority when registered with AppRuleExt::replicate_with.

Equals the number of components in a rule.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<R0: IntoComponentRule> IntoComponentRules for (R0,)

Source§

const DEFAULT_PRIORITY: usize = 1usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule> IntoComponentRules for (R0, R1)

Source§

const DEFAULT_PRIORITY: usize = 2usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule> IntoComponentRules for (R0, R1, R2)

Source§

const DEFAULT_PRIORITY: usize = 3usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3)

Source§

const DEFAULT_PRIORITY: usize = 4usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4)

Source§

const DEFAULT_PRIORITY: usize = 5usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5)

Source§

const DEFAULT_PRIORITY: usize = 6usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6)

Source§

const DEFAULT_PRIORITY: usize = 7usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7)

Source§

const DEFAULT_PRIORITY: usize = 8usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule, R8: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7, R8)

Source§

const DEFAULT_PRIORITY: usize = 9usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule, R8: IntoComponentRule, R9: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9)

Source§

const DEFAULT_PRIORITY: usize = 10usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule, R8: IntoComponentRule, R9: IntoComponentRule, R10: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10)

Source§

const DEFAULT_PRIORITY: usize = 11usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule, R8: IntoComponentRule, R9: IntoComponentRule, R10: IntoComponentRule, R11: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11)

Source§

const DEFAULT_PRIORITY: usize = 12usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule, R8: IntoComponentRule, R9: IntoComponentRule, R10: IntoComponentRule, R11: IntoComponentRule, R12: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12)

Source§

const DEFAULT_PRIORITY: usize = 13usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule, R8: IntoComponentRule, R9: IntoComponentRule, R10: IntoComponentRule, R11: IntoComponentRule, R12: IntoComponentRule, R13: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13)

Source§

const DEFAULT_PRIORITY: usize = 14usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Source§

impl<R0: IntoComponentRule, R1: IntoComponentRule, R2: IntoComponentRule, R3: IntoComponentRule, R4: IntoComponentRule, R5: IntoComponentRule, R6: IntoComponentRule, R7: IntoComponentRule, R8: IntoComponentRule, R9: IntoComponentRule, R10: IntoComponentRule, R11: IntoComponentRule, R12: IntoComponentRule, R13: IntoComponentRule, R14: IntoComponentRule> IntoComponentRules for (R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14)

Source§

const DEFAULT_PRIORITY: usize = 15usize

Source§

fn into_rules( self, world: &mut World, registry: &mut ReplicationRegistry, ) -> Vec<ComponentRule>

Implementors§