pub struct Style {Show 65 fields
pub display: Option<Display>,
pub box_sizing: Option<BoxSizing>,
pub position_type: Option<PositionType>,
pub overflow_x: Option<OverflowAxis>,
pub overflow_y: Option<OverflowAxis>,
pub scrollbar_width: Option<f32>,
pub left: Option<Length>,
pub right: Option<Length>,
pub top: Option<Length>,
pub bottom: Option<Length>,
pub width: Option<Length>,
pub height: Option<Length>,
pub min_width: Option<Length>,
pub min_height: Option<Length>,
pub max_width: Option<Length>,
pub max_height: Option<Length>,
pub aspect_ratio: Option<f32>,
pub align_items: Option<AlignItems>,
pub justify_items: Option<JustifyItems>,
pub align_self: Option<AlignSelf>,
pub justify_self: Option<JustifySelf>,
pub align_content: Option<AlignContent>,
pub justify_content: Option<JustifyContent>,
pub margin: Option<Rect>,
pub padding: Option<Rect>,
pub border: Option<Rect>,
pub flex_direction: Option<FlexDirection>,
pub flex_wrap: Option<FlexWrap>,
pub flex_grow: Option<f32>,
pub flex_shrink: Option<f32>,
pub flex_basis: Option<Length>,
pub gap: Option<Length>,
pub row_gap: Option<Length>,
pub column_gap: Option<Length>,
pub grid_auto_flow: Option<GridAutoFlow>,
pub grid_template_rows: Option<Vec<RepeatedGridTrack>>,
pub grid_template_columns: Option<Vec<RepeatedGridTrack>>,
pub grid_auto_rows: Option<Vec<GridTrack>>,
pub grid_auto_columns: Option<Vec<GridTrack>>,
pub grid_row: Option<GridPlacement>,
pub grid_column: Option<GridPlacement>,
pub background_color: Option<String>,
pub border_color: Option<BorderColorSpec>,
pub border_radius: Option<Rect>,
pub outline: Option<OutlineSpec>,
pub box_shadow: Option<BoxShadowList>,
pub filter: Option<FilterSpec>,
pub background_gradient: Option<GradientList>,
pub border_gradient: Option<GradientList>,
pub z_index: Option<i32>,
pub global_z_index: Option<i32>,
pub focus_policy: Option<FocusPolicy>,
pub cursor: Option<String>,
pub transform: Option<Transform>,
pub opacity: Option<f32>,
pub transition: Option<Transition>,
pub color: Option<String>,
pub font_size: Option<FontSize>,
pub font_weight: Option<FontWeight>,
pub font_family: Option<String>,
pub text_align: Option<Justify>,
pub line_height: Option<LineHeightSpec>,
pub letter_spacing: Option<LetterSpacingSpec>,
pub text_shadow: Option<TextShadowSpec>,
pub line_break: Option<LineBreak>,
}Expand description
A CSS-like style object mapped onto bevy_ui::Node and its sibling visual
components. Every field is optional; unset fields keep Bevy’s defaults.
Length-valued fields accept a bare number (logical pixels) or a unit string
("50%", "100vw", "auto", "10px"). Rect-valued fields
(margin/padding/border/borderRadius) accept a number (uniform), a CSS
shorthand string ("8px 16px"), or a { top, right, bottom, left } object.
Keyword-valued fields (display, align*, flex*, …) decode straight into
the bevy_ui/bevy_text enum they drive (see the keyword_fields!
deserializers below); an unrecognized keyword warns and falls back to the
bevy default. Grid tracks/placements likewise parse once at decode.
Fields§
§display: Option<Display>§box_sizing: Option<BoxSizing>§position_type: Option<PositionType>§overflow_x: Option<OverflowAxis>§overflow_y: Option<OverflowAxis>§scrollbar_width: Option<f32>§left: Option<Length>§right: Option<Length>§top: Option<Length>§bottom: Option<Length>§width: Option<Length>§height: Option<Length>§min_width: Option<Length>§min_height: Option<Length>§max_width: Option<Length>§max_height: Option<Length>§aspect_ratio: Option<f32>§align_items: Option<AlignItems>§justify_items: Option<JustifyItems>§align_self: Option<AlignSelf>§justify_self: Option<JustifySelf>§align_content: Option<AlignContent>§justify_content: Option<JustifyContent>§margin: Option<Rect>§padding: Option<Rect>§border: Option<Rect>§flex_direction: Option<FlexDirection>§flex_wrap: Option<FlexWrap>§flex_grow: Option<f32>§flex_shrink: Option<f32>§flex_basis: Option<Length>§gap: Option<Length>§row_gap: Option<Length>§column_gap: Option<Length>§grid_auto_flow: Option<GridAutoFlow>§grid_template_rows: Option<Vec<RepeatedGridTrack>>CSS grid template ("repeat(3, 1fr)", "1fr 2fr 100px", "auto").
grid_template_columns: Option<Vec<RepeatedGridTrack>>§grid_auto_rows: Option<Vec<GridTrack>>Auto-track sizing (grid-auto-rows/columns); no repeat().
grid_auto_columns: Option<Vec<GridTrack>>§grid_row: Option<GridPlacement>Grid line placement ("1 / 3", "span 2", "2", "auto").
grid_column: Option<GridPlacement>§background_color: Option<String>Hex background color (#rrggbb / #rrggbbaa).
border_color: Option<BorderColorSpec>Border color: a single CSS color (all four sides) or a
{ top, right, bottom, left } object (omitted sides → transparent).
border_radius: Option<Rect>Corner radii; same forms as the other rect fields (corners are top-left, top-right, bottom-right, bottom-left).
outline: Option<OutlineSpec>§box_shadow: Option<BoxShadowList>§filter: Option<FilterSpec>CSS-like filter: per-pixel visual effects (blur, brightness,
contrast, saturate, grayscale, sepia, invert, hueRotate)
applied to the element’s own surface (its image or background) via a
custom UiMaterial shader. Unlike CSS it does not cascade to descendants
— a MaterialNode renders only the node itself, so children/text draw on
top unfiltered. Present → the reconciler swaps the node’s ImageNode /
BackgroundColor draw for a MaterialNode<FilterMaterial> (see
[crate::filter]).
background_gradient: Option<GradientList>Background gradient(s); one gradient or a layered list. bevy paints it
over backgroundColor (CSS background-image semantics): an opaque
gradient hides the color (fallback); transparent stops reveal it.
border_gradient: Option<GradientList>Border gradient(s); one gradient or a layered list. Painted over
borderColor (needs a border width to be visible).
z_index: Option<i32>§global_z_index: Option<i32>Global stacking order: lifts the node (and its subtree) into the UI’s
top-level stack, escaping the parent stacking context. Unlike z_index,
which only reorders a node among its siblings.
focus_policy: Option<FocusPolicy>Pointer pass-through. Maps to bevy::ui::FocusPolicy. "pass" lets pointer
interaction fall through to nodes behind this one; "block" makes it
capture interaction so siblings, the 3D scene, and portals behind it don’t
receive it. When unset the default is element-dependent (set in the
reconciler): a <button> blocks, a <node>/container passes.
cursor: Option<String>Mouse cursor shown while the pointer is over this node (CSS cursor).
A system keyword (winit’s SystemCursorIcon) or a custom-cursor name
registered via ReactUiPlugin::cursor; the name is resolved (registry first,
so a custom cursor can override a system keyword) onto the window’s
CursorIcon by crate::cursor::drive_cursor_icon. Like font_family, a raw
name resolved at drive time. Absent → the node contributes no cursor (its
ancestor’s or the default arrow shows).
transform: Option<Transform>Static transform (translate/scale/rotate). Mirrors the animated transform
channels; written to UiTransform. With a transition
a change eases instead of snapping.
opacity: Option<f32>Opacity in 0.0..=1.0, multiplied into the alpha of the background (and
text) color. With a transition a change eases.
transition: Option<Transition>CSS-like per-channel transition timing. Present → a change to transform /
opacity / backgroundColor (via re-render or hover/press) animates over
time using the same driver/easing engine as animatedStyle, rather than
snapping. See [crate::transition].
color: Option<String>Hex text color.
font_size: Option<FontSize>Font size: a number (logical pixels) or a unit string ("24px", "2vw",
"1.5rem"). See FontSize.
font_weight: Option<FontWeight>"thin" | "light" | "normal" | "medium" | "semibold" | "bold" | "black"
or a numeric weight string (e.g. "600").
font_family: Option<String>Registered font-family name to render this text with (see the plugin’s
default_font/font config). Unknown or unset → the configured default
font.
text_align: Option<Justify>Horizontal alignment of the text block (<text> root only):
"left" | "center" | "right" | "justify" | "start" | "end".
line_height: Option<LineHeightSpec>Line height. A bare number is a multiple of the font size; { "px": n }
is an absolute pixel height. Unset → bevy’s default (1.2× the font size).
letter_spacing: Option<LetterSpacingSpec>Letter spacing. A bare number is logical pixels; { "rem": n } is a
multiple of the font size. Unset → no extra spacing.
text_shadow: Option<TextShadowSpec>A single drop shadow behind the text (<text> root only).
line_break: Option<LineBreak>How the text wraps when it overflows its bounds (<text> root only):
"wordBoundary" (default) | "anyCharacter" | "wordOrCharacter" |
"noWrap".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Style
impl<'de> Deserialize<'de> for Style
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>,
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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)
&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)
&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>
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>
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)
&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)
&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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> FromTemplate for T
impl<T> FromTemplate for T
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,
impl<T> HitDataExtra for T
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>
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 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>
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<G> PatchFromTemplate for Gwhere
G: FromTemplate,
impl<G> PatchFromTemplate for Gwhere
G: FromTemplate,
Source§fn patch<F>(func: F) -> TemplatePatch<F, <G as PatchFromTemplate>::Template>
fn patch<F>(func: F) -> TemplatePatch<F, <G as PatchFromTemplate>::Template>
func, and turns it into a TemplatePatch.Source§impl<T> PatchTemplate for Twhere
T: Template,
impl<T> PatchTemplate for Twhere
T: Template,
Source§fn patch_template<F>(func: F) -> TemplatePatch<F, T>
fn patch_template<F>(func: F) -> TemplatePatch<F, T>
Source§impl<T> PathsInErrorsExt for Twhere
T: ?Sized,
impl<T> PathsInErrorsExt for Twhere
T: ?Sized,
Source§fn with_paths_in_errors(&self) -> SysWithPathsInErrors<'_, Self>
fn with_paths_in_errors(&self) -> SysWithPathsInErrors<'_, Self>
self in a SysWithPathsInErrors that includes paths in error messages.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
impl<T> Settings for T
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> Template for T
impl<T> Template for T
Source§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
entity context to produce a Template::Output.Source§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clone.