Struct DeleteMe

Source
pub struct DeleteMe<'a, T> {
    pub value: &'a mut T,
    pub delete: bool,
}
Expand description

Modifier to add a delete button to an item probe UI.

Fields§

§value: &'a mut T§delete: bool

Trait Implementations§

Source§

impl<T> EguiProbe for DeleteMe<'_, T>
where T: EguiProbe,

Source§

fn probe(&mut self, ui: &mut Ui, style: &Style) -> Response

Shows probbing UI to edit the value.
Source§

fn has_inner(&mut self) -> bool

Returns true if the value has sub-values for probbing. This will cause the value to be
Source§

fn iterate_inner( &mut self, ui: &mut Ui, f: &mut dyn FnMut(&str, &mut Ui, &mut dyn EguiProbe), )

Shows probbing UI to edit the inner values. Read more

Auto Trait Implementations§

§

impl<'a, T> Freeze for DeleteMe<'a, T>

§

impl<'a, T> RefUnwindSafe for DeleteMe<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for DeleteMe<'a, T>
where T: Send,

§

impl<'a, T> Sync for DeleteMe<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for DeleteMe<'a, T>

§

impl<'a, T> !UnwindSafe for DeleteMe<'a, T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.