CharacterAbility

Enum CharacterAbility 

Source
pub enum CharacterAbility {
Show 31 variants BasicMelee { energy_cost: f32, buildup_duration: f32, swing_duration: f32, hit_timing: f32, recover_duration: f32, melee_constructor: MeleeConstructor, movement_modifier: MovementModifier, ori_modifier: OrientationModifier, frontend_specifier: Option<FrontendSpecifier>, meta: AbilityMeta, }, BasicRanged {
Show 13 fields energy_cost: f32, buildup_duration: f32, recover_duration: f32, projectile: ProjectileConstructor, projectile_body: Body, projectile_light: Option<LightEmitter>, projectile_speed: f32, num_projectiles: Amount, projectile_spread: f32, damage_effect: Option<CombatEffect>, movement_modifier: MovementModifier, ori_modifier: OrientationModifier, meta: AbilityMeta,
}, RepeaterRanged {
Show 14 fields energy_cost: f32, buildup_duration: f32, shoot_duration: f32, recover_duration: f32, max_speed: f32, half_speed_at: u32, projectile: ProjectileConstructor, projectile_body: Body, projectile_light: Option<LightEmitter>, projectile_speed: f32, damage_effect: Option<CombatEffect>, properties_of_aoe: Option<ProjectileOffset>, specifier: Option<FrontendSpecifier>, meta: AbilityMeta,
}, Boost { movement_duration: f32, only_up: bool, speed: f32, max_exit_velocity: f32, meta: AbilityMeta, }, GlideBoost { booster: Boost, meta: AbilityMeta, }, DashMelee { energy_cost: f32, energy_drain: f32, forward_speed: f32, buildup_duration: f32, charge_duration: f32, swing_duration: f32, recover_duration: f32, melee_constructor: MeleeConstructor, ori_modifier: f32, auto_charge: bool, meta: AbilityMeta, }, BasicBlock { buildup_duration: f32, recover_duration: f32, max_angle: f32, block_strength: f32, parry_window: ParryWindow, energy_cost: f32, energy_regen: f32, can_hold: bool, blocked_attacks: AttackFilters, meta: AbilityMeta, }, Roll { energy_cost: f32, buildup_duration: f32, movement_duration: f32, recover_duration: f32, roll_strength: f32, attack_immunities: AttackFilters, was_cancel: bool, meta: AbilityMeta, }, ComboMelee2 { strikes: Vec<Strike<f32>>, energy_cost_per_strike: f32, specifier: Option<FrontendSpecifier>, auto_progress: bool, meta: AbilityMeta, }, LeapExplosionShockwave {
Show 30 fields energy_cost: f32, buildup_duration: f32, movement_duration: f32, swing_duration: f32, recover_duration: f32, forward_leap_strength: f32, vertical_leap_strength: f32, explosion_damage: f32, explosion_poise: f32, explosion_knockback: Knockback, explosion_radius: f32, min_falloff: f32, explosion_dodgeable: Dodgeable, destroy_terrain: Option<(f32, ColorPreset)>, replace_terrain: Option<(f32, TerrainReplacementPreset)>, eye_height: bool, reagent: Option<Reagent>, shockwave_damage: f32, shockwave_poise: f32, shockwave_knockback: Knockback, shockwave_angle: f32, shockwave_vertical_angle: f32, shockwave_speed: f32, shockwave_duration: f32, shockwave_dodgeable: Dodgeable, shockwave_damage_effect: Option<CombatEffect>, shockwave_damage_kind: DamageKind, shockwave_specifier: FrontendSpecifier, move_efficiency: f32, meta: AbilityMeta,
}, LeapMelee { energy_cost: f32, buildup_duration: f32, movement_duration: f32, swing_duration: f32, recover_duration: f32, melee_constructor: MeleeConstructor, forward_leap_strength: f32, vertical_leap_strength: f32, damage_effect: Option<CombatEffect>, specifier: Option<FrontendSpecifier>, meta: AbilityMeta, }, LeapShockwave {
Show 20 fields energy_cost: f32, buildup_duration: f32, movement_duration: f32, swing_duration: f32, recover_duration: f32, damage: f32, poise_damage: f32, knockback: Knockback, shockwave_angle: f32, shockwave_vertical_angle: f32, shockwave_speed: f32, shockwave_duration: f32, dodgeable: Dodgeable, move_efficiency: f32, damage_kind: DamageKind, specifier: FrontendSpecifier, damage_effect: Option<CombatEffect>, forward_leap_strength: f32, vertical_leap_strength: f32, meta: AbilityMeta,
}, ChargedMelee {
Show 14 fields energy_cost: f32, energy_drain: f32, buildup_strike: Option<(f32, MeleeConstructor)>, charge_duration: f32, swing_duration: f32, hit_timing: f32, recover_duration: f32, melee_constructor: MeleeConstructor, specifier: Option<FrontendSpecifier>, damage_effect: Option<CombatEffect>, custom_combo: CustomCombo, meta: AbilityMeta, movement_modifier: MovementModifier, ori_modifier: OrientationModifier,
}, ChargedRanged {
Show 13 fields energy_cost: f32, energy_drain: f32, projectile: ProjectileConstructor, buildup_duration: f32, charge_duration: f32, recover_duration: f32, projectile_body: Body, projectile_light: Option<LightEmitter>, initial_projectile_speed: f32, scaled_projectile_speed: f32, damage_effect: Option<CombatEffect>, move_speed: f32, meta: AbilityMeta,
}, Throw {
Show 14 fields energy_cost: f32, energy_drain: f32, buildup_duration: f32, charge_duration: f32, throw_duration: f32, recover_duration: f32, projectile: ProjectileConstructor, projectile_light: Option<LightEmitter>, projectile_dir: ProjectileDir, initial_projectile_speed: f32, scaled_projectile_speed: f32, damage_effect: Option<CombatEffect>, move_speed: f32, meta: AbilityMeta,
}, Shockwave {
Show 22 fields energy_cost: f32, buildup_duration: f32, swing_duration: f32, recover_duration: f32, damage: f32, poise_damage: f32, knockback: Knockback, shockwave_angle: f32, shockwave_vertical_angle: f32, shockwave_speed: f32, shockwave_duration: f32, dodgeable: Dodgeable, move_efficiency: f32, damage_kind: DamageKind, specifier: FrontendSpecifier, ori_rate: f32, damage_effect: Option<CombatEffect>, timing: Timing, emit_outcome: bool, minimum_combo: Option<u32>, combo_consumption: ComboConsumption, meta: AbilityMeta,
}, Explosion {
Show 17 fields energy_cost: f32, buildup_duration: f32, action_duration: f32, recover_duration: f32, damage: f32, poise: f32, knockback: Knockback, radius: f32, min_falloff: f32, dodgeable: Dodgeable, destroy_terrain: Option<(f32, ColorPreset)>, replace_terrain: Option<(f32, TerrainReplacementPreset)>, eye_height: bool, reagent: Option<Reagent>, movement_modifier: MovementModifier, ori_modifier: OrientationModifier, meta: AbilityMeta,
}, BasicBeam {
Show 15 fields buildup_duration: f32, recover_duration: f32, beam_duration: f64, damage: f32, tick_rate: f32, range: f32, dodgeable: Dodgeable, max_angle: f32, damage_effect: Option<CombatEffect>, energy_regen: f32, energy_drain: f32, ori_rate: f32, move_efficiency: f32, specifier: FrontendSpecifier, meta: AbilityMeta,
}, BasicAura { buildup_duration: f32, cast_duration: f32, recover_duration: f32, targets: GroupTarget, auras: Vec<AuraBuffConstructor>, aura_duration: Option<Secs>, range: f32, energy_cost: f32, scales_with_combo: bool, specifier: Option<Specifier>, meta: AbilityMeta, }, StaticAura { buildup_duration: f32, cast_duration: f32, recover_duration: f32, energy_cost: f32, targets: GroupTarget, auras: Vec<AuraBuffConstructor>, aura_duration: Option<Secs>, range: f32, sprite_info: Option<SpriteInfo>, meta: AbilityMeta, }, Blink { buildup_duration: f32, recover_duration: f32, max_range: f32, frontend_specifier: Option<FrontendSpecifier>, meta: AbilityMeta, }, BasicSummon { buildup_duration: f32, cast_duration: f32, recover_duration: f32, summon_info: SummonInfo, movement_modifier: MovementModifier, ori_modifier: OrientationModifier, meta: AbilityMeta, }, SelfBuff { buildup_duration: f32, cast_duration: f32, recover_duration: f32, buffs: Vec<BuffDesc>, energy_cost: f32, enforced_limit: bool, combo_cost: u32, combo_scaling: Option<ScalingKind>, meta: AbilityMeta, specifier: Option<FrontendSpecifier>, }, SpriteSummon { buildup_duration: f32, cast_duration: f32, recover_duration: f32, sprite: SpriteKind, del_timeout: Option<(f32, f32)>, summon_distance: (f32, f32), sparseness: f64, angle: f32, anchor: SpriteSummonAnchor, move_efficiency: f32, ori_modifier: f32, meta: AbilityMeta, }, Music { play_duration: f32, ori_modifier: f32, meta: AbilityMeta, }, FinisherMelee { energy_cost: f32, buildup_duration: f32, swing_duration: f32, recover_duration: f32, melee_constructor: MeleeConstructor, minimum_combo: u32, scaling: Option<Scaling>, combo_consumption: ComboConsumption, meta: AbilityMeta, }, DiveMelee { energy_cost: f32, vertical_speed: f32, buildup_duration: Option<f32>, movement_duration: f32, swing_duration: f32, recover_duration: f32, melee_constructor: MeleeConstructor, max_scaling: f32, meta: AbilityMeta, }, RiposteMelee { energy_cost: f32, buildup_duration: f32, swing_duration: f32, recover_duration: f32, whiffed_recover_duration: f32, block_strength: f32, melee_constructor: MeleeConstructor, meta: AbilityMeta, }, RapidMelee { buildup_duration: f32, swing_duration: f32, recover_duration: f32, energy_cost: f32, max_strikes: Option<u32>, melee_constructor: MeleeConstructor, move_modifier: f32, ori_modifier: f32, frontend_specifier: Option<FrontendSpecifier>, minimum_combo: u32, meta: AbilityMeta, }, Transform { buildup_duration: f32, recover_duration: f32, target: String, specifier: Option<FrontendSpecifier>, allow_players: bool, meta: AbilityMeta, }, RegrowHead { buildup_duration: f32, recover_duration: f32, energy_cost: f32, specifier: Option<FrontendSpecifier>, meta: AbilityMeta, },
}
Expand description

For documentation on individual fields, see the corresponding character state file in ‘common/src/states/’

Variants§

§

BasicMelee

Fields

§energy_cost: f32
§buildup_duration: f32
§swing_duration: f32
§hit_timing: f32
§recover_duration: f32
§melee_constructor: MeleeConstructor
§movement_modifier: MovementModifier
§ori_modifier: OrientationModifier
§frontend_specifier: Option<FrontendSpecifier>
§

BasicRanged

Fields

§energy_cost: f32
§buildup_duration: f32
§recover_duration: f32
§projectile_body: Body
§projectile_light: Option<LightEmitter>
§projectile_speed: f32
§num_projectiles: Amount
§projectile_spread: f32
§damage_effect: Option<CombatEffect>
§movement_modifier: MovementModifier
§ori_modifier: OrientationModifier
§

RepeaterRanged

Fields

§energy_cost: f32
§buildup_duration: f32
§shoot_duration: f32
§recover_duration: f32
§max_speed: f32
§half_speed_at: u32
§projectile_body: Body
§projectile_light: Option<LightEmitter>
§projectile_speed: f32
§damage_effect: Option<CombatEffect>
§properties_of_aoe: Option<ProjectileOffset>
§

Boost

Fields

§movement_duration: f32
§only_up: bool
§speed: f32
§max_exit_velocity: f32
§

GlideBoost

Fields

§booster: Boost
§

DashMelee

Fields

§energy_cost: f32
§energy_drain: f32
§forward_speed: f32
§buildup_duration: f32
§charge_duration: f32
§swing_duration: f32
§recover_duration: f32
§melee_constructor: MeleeConstructor
§ori_modifier: f32
§auto_charge: bool
§

BasicBlock

Fields

§buildup_duration: f32
§recover_duration: f32
§max_angle: f32
§block_strength: f32
§parry_window: ParryWindow
§energy_cost: f32
§energy_regen: f32
§can_hold: bool
§blocked_attacks: AttackFilters
§

Roll

Fields

§energy_cost: f32
§buildup_duration: f32
§movement_duration: f32
§recover_duration: f32
§roll_strength: f32
§attack_immunities: AttackFilters
§was_cancel: bool
§

ComboMelee2

Fields

§strikes: Vec<Strike<f32>>
§energy_cost_per_strike: f32
§auto_progress: bool
§

LeapExplosionShockwave

Fields

§energy_cost: f32
§buildup_duration: f32
§movement_duration: f32
§swing_duration: f32
§recover_duration: f32
§forward_leap_strength: f32
§vertical_leap_strength: f32
§explosion_damage: f32
§explosion_poise: f32
§explosion_knockback: Knockback
§explosion_radius: f32
§min_falloff: f32
§explosion_dodgeable: Dodgeable
§destroy_terrain: Option<(f32, ColorPreset)>
§eye_height: bool
§reagent: Option<Reagent>
§shockwave_damage: f32
§shockwave_poise: f32
§shockwave_knockback: Knockback
§shockwave_angle: f32
§shockwave_vertical_angle: f32
§shockwave_speed: f32
§shockwave_duration: f32
§shockwave_dodgeable: Dodgeable
§shockwave_damage_effect: Option<CombatEffect>
§shockwave_damage_kind: DamageKind
§shockwave_specifier: FrontendSpecifier
§move_efficiency: f32
§

LeapMelee

Fields

§energy_cost: f32
§buildup_duration: f32
§movement_duration: f32
§swing_duration: f32
§recover_duration: f32
§melee_constructor: MeleeConstructor
§forward_leap_strength: f32
§vertical_leap_strength: f32
§damage_effect: Option<CombatEffect>
§

LeapShockwave

Fields

§energy_cost: f32
§buildup_duration: f32
§movement_duration: f32
§swing_duration: f32
§recover_duration: f32
§damage: f32
§poise_damage: f32
§knockback: Knockback
§shockwave_angle: f32
§shockwave_vertical_angle: f32
§shockwave_speed: f32
§shockwave_duration: f32
§dodgeable: Dodgeable
§move_efficiency: f32
§damage_kind: DamageKind
§damage_effect: Option<CombatEffect>
§forward_leap_strength: f32
§vertical_leap_strength: f32
§

ChargedMelee

Fields

§energy_cost: f32
§energy_drain: f32
§buildup_strike: Option<(f32, MeleeConstructor)>
§charge_duration: f32
§swing_duration: f32
§hit_timing: f32
§recover_duration: f32
§melee_constructor: MeleeConstructor
§damage_effect: Option<CombatEffect>
§custom_combo: CustomCombo
§movement_modifier: MovementModifier
§ori_modifier: OrientationModifier
§

ChargedRanged

Fields

§energy_cost: f32
§energy_drain: f32
§buildup_duration: f32
§charge_duration: f32
§recover_duration: f32
§projectile_body: Body
§projectile_light: Option<LightEmitter>
§initial_projectile_speed: f32
§scaled_projectile_speed: f32
§damage_effect: Option<CombatEffect>
§move_speed: f32
§

Throw

Fields

§energy_cost: f32
§energy_drain: f32
§buildup_duration: f32
§charge_duration: f32
§throw_duration: f32
§recover_duration: f32
§projectile_light: Option<LightEmitter>
§projectile_dir: ProjectileDir
§initial_projectile_speed: f32
§scaled_projectile_speed: f32
§damage_effect: Option<CombatEffect>
§move_speed: f32
§

Shockwave

Fields

§energy_cost: f32
§buildup_duration: f32
§swing_duration: f32
§recover_duration: f32
§damage: f32
§poise_damage: f32
§knockback: Knockback
§shockwave_angle: f32
§shockwave_vertical_angle: f32
§shockwave_speed: f32
§shockwave_duration: f32
§dodgeable: Dodgeable
§move_efficiency: f32
§damage_kind: DamageKind
§ori_rate: f32
§damage_effect: Option<CombatEffect>
§timing: Timing
§emit_outcome: bool
§minimum_combo: Option<u32>
§combo_consumption: ComboConsumption
§

Explosion

Fields

§energy_cost: f32
§buildup_duration: f32
§action_duration: f32
§recover_duration: f32
§damage: f32
§poise: f32
§knockback: Knockback
§radius: f32
§min_falloff: f32
§dodgeable: Dodgeable
§destroy_terrain: Option<(f32, ColorPreset)>
§eye_height: bool
§reagent: Option<Reagent>
§movement_modifier: MovementModifier
§ori_modifier: OrientationModifier
§

BasicBeam

Fields

§buildup_duration: f32
§recover_duration: f32
§beam_duration: f64
§damage: f32
§tick_rate: f32
§range: f32
§dodgeable: Dodgeable
§max_angle: f32
§damage_effect: Option<CombatEffect>
§energy_regen: f32
§energy_drain: f32
§ori_rate: f32
§move_efficiency: f32
§

BasicAura

Fields

§buildup_duration: f32
§cast_duration: f32
§recover_duration: f32
§targets: GroupTarget
§aura_duration: Option<Secs>
§range: f32
§energy_cost: f32
§scales_with_combo: bool
§specifier: Option<Specifier>
§

StaticAura

Fields

§buildup_duration: f32
§cast_duration: f32
§recover_duration: f32
§energy_cost: f32
§targets: GroupTarget
§aura_duration: Option<Secs>
§range: f32
§sprite_info: Option<SpriteInfo>

Fields

§buildup_duration: f32
§recover_duration: f32
§max_range: f32
§frontend_specifier: Option<FrontendSpecifier>
§

BasicSummon

Fields

§buildup_duration: f32
§cast_duration: f32
§recover_duration: f32
§summon_info: SummonInfo
§movement_modifier: MovementModifier
§ori_modifier: OrientationModifier
§

SelfBuff

Fields

§buildup_duration: f32
§cast_duration: f32
§recover_duration: f32
§buffs: Vec<BuffDesc>
§energy_cost: f32
§enforced_limit: bool
§combo_cost: u32
§combo_scaling: Option<ScalingKind>
§

SpriteSummon

Fields

§buildup_duration: f32
§cast_duration: f32
§recover_duration: f32
§sprite: SpriteKind
§del_timeout: Option<(f32, f32)>
§summon_distance: (f32, f32)
§sparseness: f64
§angle: f32
§move_efficiency: f32
§ori_modifier: f32
§

Music

Fields

§play_duration: f32
§ori_modifier: f32
§

FinisherMelee

Fields

§energy_cost: f32
§buildup_duration: f32
§swing_duration: f32
§recover_duration: f32
§melee_constructor: MeleeConstructor
§minimum_combo: u32
§scaling: Option<Scaling>
§combo_consumption: ComboConsumption
§

DiveMelee

Fields

§energy_cost: f32
§vertical_speed: f32
§buildup_duration: Option<f32>
§movement_duration: f32
§swing_duration: f32
§recover_duration: f32
§melee_constructor: MeleeConstructor
§max_scaling: f32
§

RiposteMelee

Fields

§energy_cost: f32
§buildup_duration: f32
§swing_duration: f32
§recover_duration: f32
§whiffed_recover_duration: f32
§block_strength: f32
§melee_constructor: MeleeConstructor
§

RapidMelee

Fields

§buildup_duration: f32
§swing_duration: f32
§recover_duration: f32
§energy_cost: f32
§max_strikes: Option<u32>
§melee_constructor: MeleeConstructor
§move_modifier: f32
§ori_modifier: f32
§frontend_specifier: Option<FrontendSpecifier>
§minimum_combo: u32
§

Transform

Fields

§buildup_duration: f32
§recover_duration: f32
§target: String
§allow_players: bool

Only set to true for admin only abilities since this disables persistence and is not intended to be used by regular players

§

RegrowHead

Fields

§buildup_duration: f32
§recover_duration: f32
§energy_cost: f32

Implementations§

Source§

impl CharacterAbility

Source

pub fn requirements_paid( &self, data: &JoinData<'_>, update: &mut StateUpdate, ) -> bool

Attempts to fulfill requirements, mutating update (taking energy) if applicable.

Source

pub fn default_roll(current_state: Option<&CharacterState>) -> CharacterAbility

Source

pub fn adjusted_by_stats(self, stats: Stats) -> Self

Source

pub fn energy_cost(&self) -> f32

Source

pub fn combo_cost(&self) -> u32

Source

pub fn ability_meta(&self) -> AbilityMeta

Source

pub fn adjusted_by_skills( self, skillset: &SkillSet, tool: Option<ToolKind>, ) -> Self

Source

fn adjusted_by_mining_skills(&mut self, skillset: &SkillSet)

Source

fn adjusted_by_bow_skills(&mut self, skillset: &SkillSet)

Source

fn adjusted_by_staff_skills(&mut self, skillset: &SkillSet)

Source

fn adjusted_by_sceptre_skills(&mut self, skillset: &SkillSet)

Trait Implementations§

Source§

impl Clone for CharacterAbility

Source§

fn clone(&self) -> CharacterAbility

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CharacterAbility

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CharacterAbility

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CharacterAbility

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CharacterAbility

Source§

fn eq(&self, other: &CharacterAbility) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CharacterAbility

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CharacterAbility

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<C, M> ConvertSaveload<M> for C

§

type Data = C

(De)Serializable data representation for data type
§

type Error = Infallible

Error may occur during serialization or deserialization of component
§

fn convert_into<F>( &self, _: F, ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
where F: FnMut(Entity) -> Option<M>,

Convert this data type into serializable form (Data) using entity to marker mapping function
§

fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F, ) -> Result<C, <C as ConvertSaveload<M>>::Error>
where F: FnMut(M) -> Option<Entity>,

Convert this data from a deserializable form (Data) using entity to marker mapping function
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<Context> SubContext<Context> for Context

Source§

fn sub_context(self) -> Context

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> TryDefault for T
where T: Default,

§

fn try_default() -> Result<T, String>

Tries to create the default.
§

fn unwrap_default() -> Self

Calls try_default and panics on an error case.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Event for T
where T: Send + Sync + 'static,

§

impl<T> Resource for T
where T: Any + Send + Sync,

§

impl<T> Storable for T
where T: Send + Sync + 'static,