Struct loro_internal::stable_pos::Cursor
source · pub struct Cursor {
pub id: Option<ID>,
pub container: ContainerID,
pub side: Side,
}
Fields§
§id: Option<ID>
§container: ContainerID
§side: Side
The target position is at the left, middle, or right of the given id.
Side info can help to model the selection
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Cursor
impl<'de> Deserialize<'de> for Cursor
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Cursor
impl PartialEq for Cursor
impl Eq for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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