Struct pepper::buffer_position::BufferRange
source · pub struct BufferRange {
pub from: BufferPosition,
pub to: BufferPosition,
/* private fields */
}
Fields§
§from: BufferPosition
§to: BufferPosition
Implementations§
source§impl BufferRange
impl BufferRange
pub const fn zero() -> Self
pub fn between(from: BufferPosition, to: BufferPosition) -> Self
pub fn between_with_direction(
from: BufferPosition,
to: BufferPosition
) -> (Self, bool)
Trait Implementations§
source§impl Clone for BufferRange
impl Clone for BufferRange
source§fn clone(&self) -> BufferRange
fn clone(&self) -> BufferRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BufferRange
impl Debug for BufferRange
source§impl PartialEq<BufferRange> for BufferRange
impl PartialEq<BufferRange> for BufferRange
source§fn eq(&self, other: &BufferRange) -> bool
fn eq(&self, other: &BufferRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.