#[repr(C)]pub struct IdentifiedSelection {
pub id: SelectionId,
pub selection: Selection,
pub owner: SelectionOwner,
}Expand description
A selection (cursor or range) paired with a stable identity.
Fields§
§id: SelectionId§selection: Selection§owner: SelectionOwnerWHOSE selection this is (U1).
SelectionOwner::LOCAL for the person at this machine, which is
every selection the engine creates itself. An app running a shared
editing session injects the other participants’ cursors with their own
owners, and the paint path colours by this rather than by the node’s
caret-color - one colour per participant is the whole point.
Trait Implementations§
Source§impl Clone for IdentifiedSelection
impl Clone for IdentifiedSelection
Source§fn clone(&self) -> IdentifiedSelection
fn clone(&self) -> IdentifiedSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentifiedSelection
Source§impl Debug for IdentifiedSelection
impl Debug for IdentifiedSelection
impl Eq for IdentifiedSelection
Source§impl FromIterator<IdentifiedSelection> for IdentifiedSelectionVec
impl FromIterator<IdentifiedSelection> for IdentifiedSelectionVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = IdentifiedSelection>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = IdentifiedSelection>,
Creates a value from an iterator. Read more
Source§impl Hash for IdentifiedSelection
impl Hash for IdentifiedSelection
Source§impl PartialEq for IdentifiedSelection
impl PartialEq for IdentifiedSelection
impl StructuralPartialEq for IdentifiedSelection
Auto Trait Implementations§
impl Freeze for IdentifiedSelection
impl RefUnwindSafe for IdentifiedSelection
impl Send for IdentifiedSelection
impl Sync for IdentifiedSelection
impl Unpin for IdentifiedSelection
impl UnsafeUnpin for IdentifiedSelection
impl UnwindSafe for IdentifiedSelection
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