pub struct RangeSelection {
pub anchor: Point,
pub focus: Point,
pub format: f64,
pub style: String,
/* private fields */
}Expand description
RangeSelection’s fields.
Fields§
§anchor: Point§focus: Point§format: f64§style: StringImplementations§
Source§impl RangeSelection
impl RangeSelection
Sourcepub fn new(
anchor: Point,
focus: Point,
format: f64,
style: impl Into<String>,
) -> Self
pub fn new( anchor: Point, focus: Point, format: f64, style: impl Into<String>, ) -> Self
new RangeSelection(anchor, focus, format, style).
pub fn point(&self, which: Which) -> &Point
Sourcepub fn is(&self, other: &RangeSelection) -> bool
pub fn is(&self, other: &RangeSelection) -> bool
is(selection): equal points, format and style.
pub fn is_collapsed(&self) -> bool
Trait Implementations§
Source§impl Clone for RangeSelection
impl Clone for RangeSelection
Auto Trait Implementations§
impl Forget for RangeSelection
impl Freeze for RangeSelection
impl Move for RangeSelection
impl RefUnwindSafe for RangeSelection
impl Send for RangeSelection
impl Sync for RangeSelection
impl Unpin for RangeSelection
impl UnsafeUnpin for RangeSelection
impl UnwindSafe for RangeSelection
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