pub enum StackLayoutId<'a> {
Str(&'a str),
Ptr(*const c_void),
Int(i32),
Raw(Id),
}Expand description
Identifier accepted by the stack layout compatibility helpers.
The pointer form mirrors the upstream BeginHorizontal(id.AsPointer())
usage from imgui-node-editor; the pointer is used only as an ID and is not
dereferenced.
Variants§
Implementations§
Source§impl<'a> StackLayoutId<'a>
impl<'a> StackLayoutId<'a>
Trait Implementations§
Source§impl<'a> Clone for StackLayoutId<'a>
impl<'a> Clone for StackLayoutId<'a>
Source§fn clone(&self) -> StackLayoutId<'a>
fn clone(&self) -> StackLayoutId<'a>
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<'a> Debug for StackLayoutId<'a>
impl<'a> Debug for StackLayoutId<'a>
Source§impl<'a> From<&'a str> for StackLayoutId<'a>
impl<'a> From<&'a str> for StackLayoutId<'a>
Source§impl From<Id> for StackLayoutId<'_>
impl From<Id> for StackLayoutId<'_>
Source§impl From<i32> for StackLayoutId<'_>
impl From<i32> for StackLayoutId<'_>
impl<'a> Copy for StackLayoutId<'a>
Auto Trait Implementations§
impl<'a> Freeze for StackLayoutId<'a>
impl<'a> RefUnwindSafe for StackLayoutId<'a>
impl<'a> !Send for StackLayoutId<'a>
impl<'a> !Sync for StackLayoutId<'a>
impl<'a> Unpin for StackLayoutId<'a>
impl<'a> UnsafeUnpin for StackLayoutId<'a>
impl<'a> UnwindSafe for StackLayoutId<'a>
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