pub type SegmentsRange = Range<BrushSegment>;

Aliased Type§

struct SegmentsRange {
    pub start: Index<BrushSegment>,
    pub end: Index<BrushSegment>,
}

Fields§

§start: Index<BrushSegment>§end: Index<BrushSegment>

Implementations§

source§

impl<T> Range<T>

source

pub fn empty() -> Self

Create an empty Range

source

pub fn is_empty(self) -> bool

Check for an empty Range

Trait Implementations§

source§

impl<T> Clone for Range<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Range<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Serialize for Range<T>where T: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T> Copy for Range<T>