Struct style::properties::generated::style_structs::UI
source · pub struct UI {Show 15 fields
pub transition_duration: T,
pub transition_timing_function: T,
pub transition_property: T,
pub transition_delay: T,
pub transition_behavior: T,
pub animation_name: T,
pub animation_duration: T,
pub animation_timing_function: T,
pub animation_iteration_count: T,
pub animation_direction: T,
pub animation_play_state: T,
pub animation_fill_mode: T,
pub animation_composition: T,
pub animation_delay: T,
pub animation_timeline: T,
}
Expand description
The UI style struct.
Fields§
§transition_duration: T
The transition-duration computed value.
transition_timing_function: T
The transition-timing-function computed value.
transition_property: T
The transition-property computed value.
transition_delay: T
The transition-delay computed value.
transition_behavior: T
The transition-behavior computed value.
animation_name: T
The animation-name computed value.
animation_duration: T
The animation-duration computed value.
animation_timing_function: T
The animation-timing-function computed value.
animation_iteration_count: T
The animation-iteration-count computed value.
animation_direction: T
The animation-direction computed value.
animation_play_state: T
The animation-play-state computed value.
animation_fill_mode: T
The animation-fill-mode computed value.
animation_composition: T
The animation-composition computed value.
animation_delay: T
The animation-delay computed value.
animation_timeline: T
The animation-timeline computed value.
Implementations§
source§impl UI
impl UI
sourcepub fn set_transition_duration(&mut self, v: T)
pub fn set_transition_duration(&mut self, v: T)
Set transition-duration.
sourcepub fn copy_transition_duration_from(&mut self, other: &Self)
pub fn copy_transition_duration_from(&mut self, other: &Self)
Set transition-duration from other struct.
sourcepub fn reset_transition_duration(&mut self, other: &Self)
pub fn reset_transition_duration(&mut self, other: &Self)
Reset transition-duration from the initial struct.
sourcepub fn clone_transition_duration(&self) -> T
pub fn clone_transition_duration(&self) -> T
Get the computed value for transition-duration.
sourcepub fn transition_duration_count(&self) -> usize
pub fn transition_duration_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn transition_duration_at(&self, index: usize) -> SingleComputedValue
pub fn transition_duration_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_transition_timing_function(&mut self, v: T)
pub fn set_transition_timing_function(&mut self, v: T)
Set transition-timing-function.
sourcepub fn copy_transition_timing_function_from(&mut self, other: &Self)
pub fn copy_transition_timing_function_from(&mut self, other: &Self)
Set transition-timing-function from other struct.
sourcepub fn reset_transition_timing_function(&mut self, other: &Self)
pub fn reset_transition_timing_function(&mut self, other: &Self)
Reset transition-timing-function from the initial struct.
sourcepub fn clone_transition_timing_function(&self) -> T
pub fn clone_transition_timing_function(&self) -> T
Get the computed value for transition-timing-function.
sourcepub fn transition_timing_function_count(&self) -> usize
pub fn transition_timing_function_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn transition_timing_function_at(&self, index: usize) -> SingleComputedValue
pub fn transition_timing_function_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_transition_property(&mut self, v: T)
pub fn set_transition_property(&mut self, v: T)
Set transition-property.
sourcepub fn copy_transition_property_from(&mut self, other: &Self)
pub fn copy_transition_property_from(&mut self, other: &Self)
Set transition-property from other struct.
sourcepub fn reset_transition_property(&mut self, other: &Self)
pub fn reset_transition_property(&mut self, other: &Self)
Reset transition-property from the initial struct.
sourcepub fn clone_transition_property(&self) -> T
pub fn clone_transition_property(&self) -> T
Get the computed value for transition-property.
sourcepub fn transition_property_count(&self) -> usize
pub fn transition_property_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn transition_property_at(&self, index: usize) -> SingleComputedValue
pub fn transition_property_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_transition_delay(&mut self, v: T)
pub fn set_transition_delay(&mut self, v: T)
Set transition-delay.
sourcepub fn copy_transition_delay_from(&mut self, other: &Self)
pub fn copy_transition_delay_from(&mut self, other: &Self)
Set transition-delay from other struct.
sourcepub fn reset_transition_delay(&mut self, other: &Self)
pub fn reset_transition_delay(&mut self, other: &Self)
Reset transition-delay from the initial struct.
sourcepub fn clone_transition_delay(&self) -> T
pub fn clone_transition_delay(&self) -> T
Get the computed value for transition-delay.
sourcepub fn transition_delay_count(&self) -> usize
pub fn transition_delay_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn transition_delay_at(&self, index: usize) -> SingleComputedValue
pub fn transition_delay_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_transition_behavior(&mut self, v: T)
pub fn set_transition_behavior(&mut self, v: T)
Set transition-behavior.
sourcepub fn copy_transition_behavior_from(&mut self, other: &Self)
pub fn copy_transition_behavior_from(&mut self, other: &Self)
Set transition-behavior from other struct.
sourcepub fn reset_transition_behavior(&mut self, other: &Self)
pub fn reset_transition_behavior(&mut self, other: &Self)
Reset transition-behavior from the initial struct.
sourcepub fn clone_transition_behavior(&self) -> T
pub fn clone_transition_behavior(&self) -> T
Get the computed value for transition-behavior.
sourcepub fn transition_behavior_count(&self) -> usize
pub fn transition_behavior_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn transition_behavior_at(&self, index: usize) -> SingleComputedValue
pub fn transition_behavior_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_name(&mut self, v: T)
pub fn set_animation_name(&mut self, v: T)
Set animation-name.
sourcepub fn copy_animation_name_from(&mut self, other: &Self)
pub fn copy_animation_name_from(&mut self, other: &Self)
Set animation-name from other struct.
sourcepub fn reset_animation_name(&mut self, other: &Self)
pub fn reset_animation_name(&mut self, other: &Self)
Reset animation-name from the initial struct.
sourcepub fn clone_animation_name(&self) -> T
pub fn clone_animation_name(&self) -> T
Get the computed value for animation-name.
sourcepub fn animation_name_count(&self) -> usize
pub fn animation_name_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_name_at(&self, index: usize) -> SingleComputedValue
pub fn animation_name_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_duration(&mut self, v: T)
pub fn set_animation_duration(&mut self, v: T)
Set animation-duration.
sourcepub fn copy_animation_duration_from(&mut self, other: &Self)
pub fn copy_animation_duration_from(&mut self, other: &Self)
Set animation-duration from other struct.
sourcepub fn reset_animation_duration(&mut self, other: &Self)
pub fn reset_animation_duration(&mut self, other: &Self)
Reset animation-duration from the initial struct.
sourcepub fn clone_animation_duration(&self) -> T
pub fn clone_animation_duration(&self) -> T
Get the computed value for animation-duration.
sourcepub fn animation_duration_count(&self) -> usize
pub fn animation_duration_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_duration_at(&self, index: usize) -> SingleComputedValue
pub fn animation_duration_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_timing_function(&mut self, v: T)
pub fn set_animation_timing_function(&mut self, v: T)
Set animation-timing-function.
sourcepub fn copy_animation_timing_function_from(&mut self, other: &Self)
pub fn copy_animation_timing_function_from(&mut self, other: &Self)
Set animation-timing-function from other struct.
sourcepub fn reset_animation_timing_function(&mut self, other: &Self)
pub fn reset_animation_timing_function(&mut self, other: &Self)
Reset animation-timing-function from the initial struct.
sourcepub fn clone_animation_timing_function(&self) -> T
pub fn clone_animation_timing_function(&self) -> T
Get the computed value for animation-timing-function.
sourcepub fn animation_timing_function_count(&self) -> usize
pub fn animation_timing_function_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_timing_function_at(&self, index: usize) -> SingleComputedValue
pub fn animation_timing_function_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_iteration_count(&mut self, v: T)
pub fn set_animation_iteration_count(&mut self, v: T)
Set animation-iteration-count.
sourcepub fn copy_animation_iteration_count_from(&mut self, other: &Self)
pub fn copy_animation_iteration_count_from(&mut self, other: &Self)
Set animation-iteration-count from other struct.
sourcepub fn reset_animation_iteration_count(&mut self, other: &Self)
pub fn reset_animation_iteration_count(&mut self, other: &Self)
Reset animation-iteration-count from the initial struct.
sourcepub fn clone_animation_iteration_count(&self) -> T
pub fn clone_animation_iteration_count(&self) -> T
Get the computed value for animation-iteration-count.
sourcepub fn animation_iteration_count_count(&self) -> usize
pub fn animation_iteration_count_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_iteration_count_at(&self, index: usize) -> SingleComputedValue
pub fn animation_iteration_count_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_direction(&mut self, v: T)
pub fn set_animation_direction(&mut self, v: T)
Set animation-direction.
sourcepub fn copy_animation_direction_from(&mut self, other: &Self)
pub fn copy_animation_direction_from(&mut self, other: &Self)
Set animation-direction from other struct.
sourcepub fn reset_animation_direction(&mut self, other: &Self)
pub fn reset_animation_direction(&mut self, other: &Self)
Reset animation-direction from the initial struct.
sourcepub fn clone_animation_direction(&self) -> T
pub fn clone_animation_direction(&self) -> T
Get the computed value for animation-direction.
sourcepub fn animation_direction_count(&self) -> usize
pub fn animation_direction_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_direction_at(&self, index: usize) -> SingleComputedValue
pub fn animation_direction_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_play_state(&mut self, v: T)
pub fn set_animation_play_state(&mut self, v: T)
Set animation-play-state.
sourcepub fn copy_animation_play_state_from(&mut self, other: &Self)
pub fn copy_animation_play_state_from(&mut self, other: &Self)
Set animation-play-state from other struct.
sourcepub fn reset_animation_play_state(&mut self, other: &Self)
pub fn reset_animation_play_state(&mut self, other: &Self)
Reset animation-play-state from the initial struct.
sourcepub fn clone_animation_play_state(&self) -> T
pub fn clone_animation_play_state(&self) -> T
Get the computed value for animation-play-state.
sourcepub fn animation_play_state_count(&self) -> usize
pub fn animation_play_state_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_play_state_at(&self, index: usize) -> SingleComputedValue
pub fn animation_play_state_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_fill_mode(&mut self, v: T)
pub fn set_animation_fill_mode(&mut self, v: T)
Set animation-fill-mode.
sourcepub fn copy_animation_fill_mode_from(&mut self, other: &Self)
pub fn copy_animation_fill_mode_from(&mut self, other: &Self)
Set animation-fill-mode from other struct.
sourcepub fn reset_animation_fill_mode(&mut self, other: &Self)
pub fn reset_animation_fill_mode(&mut self, other: &Self)
Reset animation-fill-mode from the initial struct.
sourcepub fn clone_animation_fill_mode(&self) -> T
pub fn clone_animation_fill_mode(&self) -> T
Get the computed value for animation-fill-mode.
sourcepub fn animation_fill_mode_count(&self) -> usize
pub fn animation_fill_mode_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_fill_mode_at(&self, index: usize) -> SingleComputedValue
pub fn animation_fill_mode_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_composition(&mut self, v: T)
pub fn set_animation_composition(&mut self, v: T)
Set animation-composition.
sourcepub fn copy_animation_composition_from(&mut self, other: &Self)
pub fn copy_animation_composition_from(&mut self, other: &Self)
Set animation-composition from other struct.
sourcepub fn reset_animation_composition(&mut self, other: &Self)
pub fn reset_animation_composition(&mut self, other: &Self)
Reset animation-composition from the initial struct.
sourcepub fn clone_animation_composition(&self) -> T
pub fn clone_animation_composition(&self) -> T
Get the computed value for animation-composition.
sourcepub fn animation_composition_count(&self) -> usize
pub fn animation_composition_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_composition_at(&self, index: usize) -> SingleComputedValue
pub fn animation_composition_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_delay(&mut self, v: T)
pub fn set_animation_delay(&mut self, v: T)
Set animation-delay.
sourcepub fn copy_animation_delay_from(&mut self, other: &Self)
pub fn copy_animation_delay_from(&mut self, other: &Self)
Set animation-delay from other struct.
sourcepub fn reset_animation_delay(&mut self, other: &Self)
pub fn reset_animation_delay(&mut self, other: &Self)
Reset animation-delay from the initial struct.
sourcepub fn clone_animation_delay(&self) -> T
pub fn clone_animation_delay(&self) -> T
Get the computed value for animation-delay.
sourcepub fn animation_delay_count(&self) -> usize
pub fn animation_delay_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_delay_at(&self, index: usize) -> SingleComputedValue
pub fn animation_delay_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
sourcepub fn set_animation_timeline(&mut self, v: T)
pub fn set_animation_timeline(&mut self, v: T)
Set animation-timeline.
sourcepub fn copy_animation_timeline_from(&mut self, other: &Self)
pub fn copy_animation_timeline_from(&mut self, other: &Self)
Set animation-timeline from other struct.
sourcepub fn reset_animation_timeline(&mut self, other: &Self)
pub fn reset_animation_timeline(&mut self, other: &Self)
Reset animation-timeline from the initial struct.
sourcepub fn clone_animation_timeline(&self) -> T
pub fn clone_animation_timeline(&self) -> T
Get the computed value for animation-timeline.
sourcepub fn animation_timeline_count(&self) -> usize
pub fn animation_timeline_count(&self) -> usize
If this longhand is indexed, get the number of elements.
sourcepub fn animation_timeline_at(&self, index: usize) -> SingleComputedValue
pub fn animation_timeline_at(&self, index: usize) -> SingleComputedValue
If this longhand is indexed, get the element at given index.
source§impl UI
impl UI
sourcepub fn transition_duration_iter(&self) -> TransitionDurationIter<'_> ⓘ
pub fn transition_duration_iter(&self) -> TransitionDurationIter<'_> ⓘ
Iterate over the values of transition-duration.
sourcepub fn transition_duration_mod(&self, index: usize) -> SingleComputedValue
pub fn transition_duration_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property transition-duration.
sourcepub fn transition_timing_function_iter(
&self,
) -> TransitionTimingFunctionIter<'_> ⓘ
pub fn transition_timing_function_iter( &self, ) -> TransitionTimingFunctionIter<'_> ⓘ
Iterate over the values of transition-timing-function.
sourcepub fn transition_timing_function_mod(
&self,
index: usize,
) -> SingleComputedValue
pub fn transition_timing_function_mod( &self, index: usize, ) -> SingleComputedValue
Get a value mod index
for the property transition-timing-function.
sourcepub fn transition_property_iter(&self) -> TransitionPropertyIter<'_> ⓘ
pub fn transition_property_iter(&self) -> TransitionPropertyIter<'_> ⓘ
Iterate over the values of transition-property.
sourcepub fn transition_property_mod(&self, index: usize) -> SingleComputedValue
pub fn transition_property_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property transition-property.
sourcepub fn transition_delay_iter(&self) -> TransitionDelayIter<'_> ⓘ
pub fn transition_delay_iter(&self) -> TransitionDelayIter<'_> ⓘ
Iterate over the values of transition-delay.
sourcepub fn transition_delay_mod(&self, index: usize) -> SingleComputedValue
pub fn transition_delay_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property transition-delay.
sourcepub fn transition_behavior_iter(&self) -> TransitionBehaviorIter<'_> ⓘ
pub fn transition_behavior_iter(&self) -> TransitionBehaviorIter<'_> ⓘ
Iterate over the values of transition-behavior.
sourcepub fn transition_behavior_mod(&self, index: usize) -> SingleComputedValue
pub fn transition_behavior_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property transition-behavior.
sourcepub fn animation_name_iter(&self) -> AnimationNameIter<'_> ⓘ
pub fn animation_name_iter(&self) -> AnimationNameIter<'_> ⓘ
Iterate over the values of animation-name.
sourcepub fn animation_name_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_name_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-name.
sourcepub fn animation_duration_iter(&self) -> AnimationDurationIter<'_> ⓘ
pub fn animation_duration_iter(&self) -> AnimationDurationIter<'_> ⓘ
Iterate over the values of animation-duration.
sourcepub fn animation_duration_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_duration_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-duration.
sourcepub fn animation_timing_function_iter(&self) -> AnimationTimingFunctionIter<'_> ⓘ
pub fn animation_timing_function_iter(&self) -> AnimationTimingFunctionIter<'_> ⓘ
Iterate over the values of animation-timing-function.
sourcepub fn animation_timing_function_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_timing_function_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-timing-function.
sourcepub fn animation_iteration_count_iter(&self) -> AnimationIterationCountIter<'_> ⓘ
pub fn animation_iteration_count_iter(&self) -> AnimationIterationCountIter<'_> ⓘ
Iterate over the values of animation-iteration-count.
sourcepub fn animation_iteration_count_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_iteration_count_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-iteration-count.
sourcepub fn animation_direction_iter(&self) -> AnimationDirectionIter<'_> ⓘ
pub fn animation_direction_iter(&self) -> AnimationDirectionIter<'_> ⓘ
Iterate over the values of animation-direction.
sourcepub fn animation_direction_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_direction_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-direction.
sourcepub fn animation_play_state_iter(&self) -> AnimationPlayStateIter<'_> ⓘ
pub fn animation_play_state_iter(&self) -> AnimationPlayStateIter<'_> ⓘ
Iterate over the values of animation-play-state.
sourcepub fn animation_play_state_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_play_state_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-play-state.
sourcepub fn animation_fill_mode_iter(&self) -> AnimationFillModeIter<'_> ⓘ
pub fn animation_fill_mode_iter(&self) -> AnimationFillModeIter<'_> ⓘ
Iterate over the values of animation-fill-mode.
sourcepub fn animation_fill_mode_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_fill_mode_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-fill-mode.
sourcepub fn animation_composition_iter(&self) -> AnimationCompositionIter<'_> ⓘ
pub fn animation_composition_iter(&self) -> AnimationCompositionIter<'_> ⓘ
Iterate over the values of animation-composition.
sourcepub fn animation_composition_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_composition_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-composition.
sourcepub fn animation_delay_iter(&self) -> AnimationDelayIter<'_> ⓘ
pub fn animation_delay_iter(&self) -> AnimationDelayIter<'_> ⓘ
Iterate over the values of animation-delay.
sourcepub fn animation_delay_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_delay_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-delay.
sourcepub fn animation_timeline_iter(&self) -> AnimationTimelineIter<'_> ⓘ
pub fn animation_timeline_iter(&self) -> AnimationTimelineIter<'_> ⓘ
Iterate over the values of animation-timeline.
sourcepub fn animation_timeline_mod(&self, index: usize) -> SingleComputedValue
pub fn animation_timeline_mod(&self, index: usize) -> SingleComputedValue
Get a value mod index
for the property animation-timeline.
sourcepub fn specifies_animations(&self) -> bool
pub fn specifies_animations(&self) -> bool
Returns whether there is any animation specified with
animation-name other than none
.
sourcepub fn specifies_transitions(&self) -> bool
pub fn specifies_transitions(&self) -> bool
Returns whether there are any transitions specified.
sourcepub fn has_initial_animation_timeline(&self) -> bool
pub fn has_initial_animation_timeline(&self) -> bool
Returns whether animation-timeline is initial value. We need this information to resolve animation-duration.
sourcepub fn animations_equals(&self, other: &Self) -> bool
pub fn animations_equals(&self, other: &Self) -> bool
Returns true if animation properties are equal between styles, but without considering keyframe data and animation-timeline.
Trait Implementations§
source§impl MallocSizeOf for UI
impl MallocSizeOf for UI
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
impl StructuralPartialEq for UI
Auto Trait Implementations§
impl Freeze for UI
impl RefUnwindSafe for UI
impl Send for UI
impl Sync for UI
impl Unpin for UI
impl UnwindSafe for UI
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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