Enum bevy_bsml::class::StyleClass
source · pub enum StyleClass {
Width(Width),
MinWidth(MinWidth),
Height(Height),
AspectRatio(AspectRatio),
JustifyContent(JustifyContent),
AlignContent(AlignContent),
AlignItems(AlignItems),
FlexDirection(FlexDirection),
FlexWrap(FlexWrap),
Gap(Gap),
RowGap(RowGap),
ColGap(ColGap),
}
Variants§
Width(Width)
MinWidth(MinWidth)
Height(Height)
AspectRatio(AspectRatio)
JustifyContent(JustifyContent)
AlignContent(AlignContent)
AlignItems(AlignItems)
FlexDirection(FlexDirection)
FlexWrap(FlexWrap)
Gap(Gap)
RowGap(RowGap)
ColGap(ColGap)
Trait Implementations§
source§impl ApplyClass for StyleClass
impl ApplyClass for StyleClass
source§impl Clone for StyleClass
impl Clone for StyleClass
source§fn clone(&self) -> StyleClass
fn clone(&self) -> StyleClass
Returns a copy of the value. Read more
1.0.0 · 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 StyleClass
impl Debug for StyleClass
source§impl From<AlignContent> for StyleClass
impl From<AlignContent> for StyleClass
source§fn from(original: AlignContent) -> StyleClass
fn from(original: AlignContent) -> StyleClass
Converts to this type from the input type.
source§impl From<AlignItems> for StyleClass
impl From<AlignItems> for StyleClass
source§fn from(original: AlignItems) -> StyleClass
fn from(original: AlignItems) -> StyleClass
Converts to this type from the input type.
source§impl From<AspectRatio> for StyleClass
impl From<AspectRatio> for StyleClass
source§fn from(original: AspectRatio) -> StyleClass
fn from(original: AspectRatio) -> StyleClass
Converts to this type from the input type.
source§impl From<ColGap> for StyleClass
impl From<ColGap> for StyleClass
source§fn from(original: ColGap) -> StyleClass
fn from(original: ColGap) -> StyleClass
Converts to this type from the input type.
source§impl From<FlexDirection> for StyleClass
impl From<FlexDirection> for StyleClass
source§fn from(original: FlexDirection) -> StyleClass
fn from(original: FlexDirection) -> StyleClass
Converts to this type from the input type.
source§impl From<FlexWrap> for StyleClass
impl From<FlexWrap> for StyleClass
source§fn from(original: FlexWrap) -> StyleClass
fn from(original: FlexWrap) -> StyleClass
Converts to this type from the input type.
source§impl From<Gap> for StyleClass
impl From<Gap> for StyleClass
source§fn from(original: Gap) -> StyleClass
fn from(original: Gap) -> StyleClass
Converts to this type from the input type.
source§impl From<Height> for StyleClass
impl From<Height> for StyleClass
source§fn from(original: Height) -> StyleClass
fn from(original: Height) -> StyleClass
Converts to this type from the input type.
source§impl From<JustifyContent> for StyleClass
impl From<JustifyContent> for StyleClass
source§fn from(original: JustifyContent) -> StyleClass
fn from(original: JustifyContent) -> StyleClass
Converts to this type from the input type.
source§impl From<MinWidth> for StyleClass
impl From<MinWidth> for StyleClass
source§fn from(original: MinWidth) -> StyleClass
fn from(original: MinWidth) -> StyleClass
Converts to this type from the input type.
source§impl From<RowGap> for StyleClass
impl From<RowGap> for StyleClass
source§fn from(original: RowGap) -> StyleClass
fn from(original: RowGap) -> StyleClass
Converts to this type from the input type.
source§impl From<StyleClass> for ClassEnum
impl From<StyleClass> for ClassEnum
source§fn from(original: StyleClass) -> ClassEnum
fn from(original: StyleClass) -> ClassEnum
Converts to this type from the input type.
source§impl From<Width> for StyleClass
impl From<Width> for StyleClass
source§fn from(original: Width) -> StyleClass
fn from(original: Width) -> StyleClass
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for StyleClass
impl Send for StyleClass
impl Sync for StyleClass
impl Unpin for StyleClass
impl UnwindSafe for StyleClass
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.