pub struct UiStackInfo {
pub kind: Option<UiKind>,
pub frame: Frame,
pub tags: UiTags,
}Available on crate feature
egui only.Fields§
§kind: Option<UiKind>§frame: FrameImplementations§
Source§impl UiStackInfo
impl UiStackInfo
Sourcepub fn new(kind: UiKind) -> UiStackInfo
pub fn new(kind: UiKind) -> UiStackInfo
Create a new UiStackInfo with the given kind and an empty frame.
pub fn with_frame(self, frame: Frame) -> UiStackInfo
Sourcepub fn with_tag(self, key: impl Into<String>) -> UiStackInfo
pub fn with_tag(self, key: impl Into<String>) -> UiStackInfo
Insert a tag with no value.
Sourcepub fn with_tag_value(
self,
key: impl Into<String>,
value: impl Any + Send + Sync + 'static,
) -> UiStackInfo
pub fn with_tag_value( self, key: impl Into<String>, value: impl Any + Send + Sync + 'static, ) -> UiStackInfo
Insert a tag with some value.
Trait Implementations§
Source§impl Clone for UiStackInfo
impl Clone for UiStackInfo
Source§fn clone(&self) -> UiStackInfo
fn clone(&self) -> UiStackInfo
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 UiStackInfo
impl Debug for UiStackInfo
Source§impl Default for UiStackInfo
impl Default for UiStackInfo
Source§fn default() -> UiStackInfo
fn default() -> UiStackInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for UiStackInfo
impl !UnwindSafe for UiStackInfo
impl Forget for UiStackInfo
impl Freeze for UiStackInfo
impl Move for UiStackInfo
impl Send for UiStackInfo
impl Sync for UiStackInfo
impl Unpin for UiStackInfo
impl UnsafeUnpin for UiStackInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, Option<Arc<dyn Any + Sync + Send>>)>: UnsafeUnpin,
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more