pub enum Part {
Char(char),
PushForm(FormId),
PopForm(FormId),
MainCursor,
ExtraCursor,
AlignLeft,
AlignCenter,
AlignRight,
ToggleStart(ToggleId),
ToggleEnd(ToggleId),
ResetState,
}Expand description
A part of the Text, can be a char or a Tag.
This type is used in iteration by Uis in order to
correctly print Duat’s content. Additionally, you may be
able to tell that there is no ghost text or concealment
tags, and there is a ResetState.
That is because the Text’s iteration process automatically
gets rid of these tags, since, from the point of view of the
ui, ghost text is just regular text, while conceals are
simply the lack of text. And if the ui can handle printing
regular text, printing ghost text should be a breeze.
Variants§
Char(char)
PushForm(FormId)
PopForm(FormId)
MainCursor
ExtraCursor
AlignLeft
AlignCenter
AlignRight
ToggleStart(ToggleId)
ToggleEnd(ToggleId)
ResetState
Implementations§
Trait Implementations§
impl Copy for Part
impl Eq for Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)