pub struct CompletionOutput {
pub text_edit: TextEditOutput,
pub accepted: Option<Suggestion>,
pub is_open: bool,
}Available on crate feature
egui only.Expand description
The result of CompletionPopup::show.
Fields§
§text_edit: TextEditOutputThe output of the wrapped TextEdit.
accepted: Option<Suggestion>The suggestion accepted this frame (with Enter, Tab, or a click), if any.
is_open: boolIs the popup visible?
Auto Trait Implementations§
impl !RefUnwindSafe for CompletionOutput
impl !Send for CompletionOutput
impl !Sync for CompletionOutput
impl !UnwindSafe for CompletionOutput
impl Forget for CompletionOutput
impl Freeze for CompletionOutputwhere
*const ArcInner<RwLock<ContextImpl>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ContextImpl>>>: Freeze,
NonZero<u64>: Freeze,
*const (IdSalt, Rect) is !null: Freeze,
PhantomData<(IdSalt, Rect)>: Freeze,
*const ArcInner<Galley> is !null: Freeze,
PhantomData<ArcInner<Galley>>: Freeze,
*const ArcInner<Mutex<Undoer<(CCursorRange, String)>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Undoer<(CCursorRange, String)>>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Atom<'static>>: Freeze,
impl Move for CompletionOutput
impl Unpin for CompletionOutputwhere
Arc<RwLock<ContextImpl>>: Unpin,
NonZero<u64>: Unpin,
*const (IdSalt, Rect) is !null: Unpin,
(IdSalt, Rect): Unpin,
Arc<Galley>: Unpin,
Arc<Mutex<Undoer<(CCursorRange, String)>>>: Unpin,
*const u8 is !null: Unpin,
Arc<RichText>: Unpin,
Arc<LayoutJob>: Unpin,
&'static str: Unpin,
String: Unpin,
&'static [u8]: Unpin,
Arc<[u8]>: Unpin,
Box<dyn FnOnce(&Ui, IntoSizedArgs) -> IntoSizedResult<'static>>: Unpin,
Arc<dyn Fn(&Ui, AtomPaintArgs)>: Unpin,
Box<WidgetAtom<'static>>: Unpin,
Box<ContainerAtom<'static>>: Unpin,
impl UnsafeUnpin for CompletionOutputwhere
*const ArcInner<RwLock<ContextImpl>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ContextImpl>>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const (IdSalt, Rect) is !null: UnsafeUnpin,
PhantomData<(IdSalt, Rect)>: UnsafeUnpin,
*const ArcInner<Galley> is !null: UnsafeUnpin,
PhantomData<ArcInner<Galley>>: UnsafeUnpin,
*const ArcInner<Mutex<Undoer<(CCursorRange, String)>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Undoer<(CCursorRange, String)>>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Atom<'static>>: 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> 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