Skip to main content

validated_channel_tick_count

Function validated_channel_tick_count 

Source
pub fn validated_channel_tick_count(
    value: f64,
    spell_id: u32,
    field: &'static str,
) -> Result<u8, BuilderError>
Expand description

Validate a channel’s tick count, accepting the empty introspection map’s neutral zero.

§Errors

Returns BuilderError unless value is an integral value in 0..=u8::MAX.