pub struct UtilityStylePatch {Show 41 fields
pub width: Option<UtilityVal>,
pub height: Option<UtilityVal>,
pub min_width: Option<UtilityVal>,
pub min_height: Option<UtilityVal>,
pub max_width: Option<UtilityVal>,
pub max_height: Option<UtilityVal>,
pub flex_direction: Option<UtilityFlexDirection>,
pub justify_content: Option<UtilityJustifyContent>,
pub align_items: Option<UtilityAlignItems>,
pub align_content: Option<UtilityAlignContent>,
pub align_self: Option<UtilityAlignSelf>,
pub flex_wrap: Option<UtilityFlexWrap>,
pub flex_grow: Option<f32>,
pub flex_shrink: Option<f32>,
pub flex_basis: Option<UtilityVal>,
pub row_gap: Option<UtilityVal>,
pub column_gap: Option<UtilityVal>,
pub padding: Option<UtilityRect>,
pub margin: Option<UtilityRect>,
pub border: Option<UtilityRect>,
pub border_radius: Option<UtilityVal>,
pub overflow_x: Option<UtilityOverflowAxis>,
pub overflow_y: Option<UtilityOverflowAxis>,
pub display: Option<UtilityDisplay>,
pub position_type: Option<UtilityPositionType>,
pub left: Option<UtilityVal>,
pub right: Option<UtilityVal>,
pub top: Option<UtilityVal>,
pub bottom: Option<UtilityVal>,
pub font_family_role: Option<UtilityFontFamilyRole>,
pub font_size: Option<f32>,
pub font_weight: Option<u16>,
pub font_style: Option<UtilityFontStyle>,
pub line_height: Option<f32>,
pub letter_spacing_em: Option<f32>,
pub text_transform: Option<UtilityTextTransform>,
pub visual: UtilityVisualStylePatch,
pub hover: UtilityVisualStylePatch,
pub active: UtilityVisualStylePatch,
pub focus: UtilityVisualStylePatch,
pub disabled: UtilityVisualStylePatch,
}Fields§
§width: Option<UtilityVal>§height: Option<UtilityVal>§min_width: Option<UtilityVal>§min_height: Option<UtilityVal>§max_width: Option<UtilityVal>§max_height: Option<UtilityVal>§flex_direction: Option<UtilityFlexDirection>§justify_content: Option<UtilityJustifyContent>§align_items: Option<UtilityAlignItems>§align_content: Option<UtilityAlignContent>§align_self: Option<UtilityAlignSelf>§flex_wrap: Option<UtilityFlexWrap>§flex_grow: Option<f32>§flex_shrink: Option<f32>§flex_basis: Option<UtilityVal>§row_gap: Option<UtilityVal>§column_gap: Option<UtilityVal>§padding: Option<UtilityRect>§margin: Option<UtilityRect>§border: Option<UtilityRect>§border_radius: Option<UtilityVal>§overflow_x: Option<UtilityOverflowAxis>§overflow_y: Option<UtilityOverflowAxis>§display: Option<UtilityDisplay>§position_type: Option<UtilityPositionType>§left: Option<UtilityVal>§right: Option<UtilityVal>§top: Option<UtilityVal>§bottom: Option<UtilityVal>§font_family_role: Option<UtilityFontFamilyRole>§font_size: Option<f32>§font_weight: Option<u16>§font_style: Option<UtilityFontStyle>§line_height: Option<f32>§letter_spacing_em: Option<f32>§text_transform: Option<UtilityTextTransform>§visual: UtilityVisualStylePatch§hover: UtilityVisualStylePatch§active: UtilityVisualStylePatch§focus: UtilityVisualStylePatch§disabled: UtilityVisualStylePatchTrait Implementations§
Source§impl Clone for UtilityStylePatch
impl Clone for UtilityStylePatch
Source§fn clone(&self) -> UtilityStylePatch
fn clone(&self) -> UtilityStylePatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UtilityStylePatch
impl Debug for UtilityStylePatch
Source§impl Default for UtilityStylePatch
impl Default for UtilityStylePatch
Source§fn default() -> UtilityStylePatch
fn default() -> UtilityStylePatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UtilityStylePatch
impl<'de> Deserialize<'de> for UtilityStylePatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 UtilityStylePatch
impl PartialEq for UtilityStylePatch
Source§fn eq(&self, other: &UtilityStylePatch) -> bool
fn eq(&self, other: &UtilityStylePatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UtilityStylePatch
impl Serialize for UtilityStylePatch
impl StructuralPartialEq for UtilityStylePatch
Auto Trait Implementations§
impl Freeze for UtilityStylePatch
impl RefUnwindSafe for UtilityStylePatch
impl Send for UtilityStylePatch
impl Sync for UtilityStylePatch
impl Unpin for UtilityStylePatch
impl UnsafeUnpin for UtilityStylePatch
impl UnwindSafe for UtilityStylePatch
Blanket Implementations§
Source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
Source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
Return the
T ShaderType for self. When used in AsBindGroup
derives, it is safe to assume that all images in self exist.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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
impl<T, U> ToSample<U> for Twhere
U: FromSample<T>,
fn to_sample_(self) -> U
Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.