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) -> Self
pub fn with_id_source(self, id_source: impl Hash) -> 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> Freeze for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> RefUnwindSafe for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> !Send for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> !Sync for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> Unpin for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> UnsafeUnpin for FacetProbe<'mem, 'facet>
impl<'mem, 'facet> !UnwindSafe 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