pub struct ChatPosition(/* private fields */);Expand description
Every ChatContent in a Chat has a position, and every Line and Choice
has a next position.
No ChatContent ever exists at ChatPosition::end().
Implementations§
Source§impl ChatPosition
impl ChatPosition
pub fn end() -> ChatPosition
pub fn start() -> ChatPosition
Trait Implementations§
Source§impl Clone for ChatPosition
impl Clone for ChatPosition
Source§fn clone(&self) -> ChatPosition
fn clone(&self) -> ChatPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Ord for ChatPosition
impl Ord for ChatPosition
Source§fn cmp(&self, other: &ChatPosition) -> Ordering
fn cmp(&self, other: &ChatPosition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChatPosition
impl PartialEq for ChatPosition
Source§impl PartialOrd for ChatPosition
impl PartialOrd for ChatPosition
impl Copy for ChatPosition
impl Eq for ChatPosition
impl StructuralPartialEq for ChatPosition
Auto Trait Implementations§
impl Freeze for ChatPosition
impl RefUnwindSafe for ChatPosition
impl Send for ChatPosition
impl Sync for ChatPosition
impl Unpin for ChatPosition
impl UnwindSafe for ChatPosition
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