pub struct FacetProbe<'mem, 'facet> { /* private fields */ }Implementations§
Source§impl<'mem, 'facet> FacetProbe<'mem, 'facet>
impl<'mem, 'facet> FacetProbe<'mem, 'facet>
pub fn readonly(self, readonly: bool) -> Self
pub fn expand_all(self, expand_all: bool) -> Self
pub fn with_header(self, label: impl Into<WidgetText>) -> Self
Sourcepub fn with_id_source(self, id_source: impl Hash + Debug) -> Self
pub fn with_id_source(self, id_source: impl Hash + Debug) -> Self
Set a stable egui id source for this probe.
Use this when the probe can move in the UI hierarchy (e.g. draggable tabs), so collapse/expand state remains stable.
Sourcepub unsafe fn force_reborrow(self) -> Self
pub unsafe fn force_reborrow(self) -> Self
§Safety
If used, there is a high chance what you do is unsound.
If you use this, you will have to manually ensure your variances are okay for use with reborrowing. Normally, this is determined by facet but there may be cases where a type does not implement Facet or has opaque parts that would (if used with facet) be ok.
pub fn new_peek(value: Peek<'mem, 'facet>) -> Self
pub fn new_poke(value: Poke<'mem, 'facet>) -> Self
pub fn new<T>(value: impl Into<MaybeMutT<'mem, T>>) -> Selfwhere
T: Facet<'facet> + 'mem,
pub fn show<'lock>(self, ui: &mut Ui) -> Responsewhere
'mem: 'lock,
Trait Implementations§
Source§impl<'mem, 'facet> Deref for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> Deref for FacetProbe<'mem, 'facet>
Auto Trait Implementations§
impl<'mem, 'facet> !Send for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> !Sync for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> !UnwindSafe for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> Freeze for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> RefUnwindSafe for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> Unpin for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> UnsafeUnpin for FacetProbe<'mem, 'facet>
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> 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