#[non_exhaustive]pub struct TextSelectionEndpoint {
pub key: String,
pub offset: u32,
}Expand description
One end of a selection across a list’s items
(TextSelectionEvent::anchor, TextSelectionEvent::focus).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringThe item’s key, as the list names it: a TSX List’s
keyExtractor, else the item’s key or id, else its index. A
Rust component’s list (virtual_list) in a TSX List’s item leaves
the key to that item; with no TSX list around, its row goes by its
index. The index is written in decimal.
offset: u32Where the end is in the item’s text, as a copy of the whole item gives it, in UTF-16 code units.
Trait Implementations§
Source§impl Clone for TextSelectionEndpoint
impl Clone for TextSelectionEndpoint
Source§impl Debug for TextSelectionEndpoint
impl Debug for TextSelectionEndpoint
Source§impl Default for TextSelectionEndpoint
impl Default for TextSelectionEndpoint
impl Eq for TextSelectionEndpoint
Source§impl PartialEq for TextSelectionEndpoint
impl PartialEq for TextSelectionEndpoint
impl StructuralPartialEq for TextSelectionEndpoint
Auto Trait Implementations§
impl Forget for TextSelectionEndpoint
impl Freeze for TextSelectionEndpoint
impl Move for TextSelectionEndpoint
impl RefUnwindSafe for TextSelectionEndpoint
impl Send for TextSelectionEndpointwhere
RawVecInner: Send,
impl Sync for TextSelectionEndpointwhere
RawVecInner: Sync,
impl Unpin for TextSelectionEndpoint
impl UnsafeUnpin for TextSelectionEndpoint
impl UnwindSafe for TextSelectionEndpointwhere
RawVecInner: UnwindSafe,
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