pub struct SelectedContentRange {
pub start_offset: i32,
pub end_offset: i32,
}Expand description
The selected range of one selectable or handler, in content offsets.
Fields§
§start_offset: i32The start of the selection relative to the start of the content.
end_offset: i32The end of the selection relative to the start of the content.
Implementations§
Source§impl SelectedContentRange
impl SelectedContentRange
Sourcepub fn new(start_offset: i32, end_offset: i32) -> SelectedContentRange
pub fn new(start_offset: i32, end_offset: i32) -> SelectedContentRange
Creates a range; both offsets are non-negative, as Dart asserts.
Trait Implementations§
Source§impl Clone for SelectedContentRange
impl Clone for SelectedContentRange
impl Copy for SelectedContentRange
Source§impl Debug for SelectedContentRange
impl Debug for SelectedContentRange
impl Eq for SelectedContentRange
Source§impl Hash for SelectedContentRange
impl Hash for SelectedContentRange
Source§impl PartialEq for SelectedContentRange
impl PartialEq for SelectedContentRange
impl StructuralPartialEq for SelectedContentRange
Auto Trait Implementations§
impl Forget for SelectedContentRange
impl Freeze for SelectedContentRange
impl Move for SelectedContentRange
impl RefUnwindSafe for SelectedContentRange
impl Send for SelectedContentRange
impl Sync for SelectedContentRange
impl Unpin for SelectedContentRange
impl UnsafeUnpin for SelectedContentRange
impl UnwindSafe for SelectedContentRange
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.