Struct pepper::buffer_position::BufferRange [−][src]
pub struct BufferRange { pub from: BufferPosition, pub to: BufferPosition, // some fields omitted }
Fields
from: BufferPosition
to: BufferPosition
Implementations
impl BufferRange
[src]
impl BufferRange
[src]pub const fn zero() -> Self
[src]
pub fn between(from: BufferPosition, to: BufferPosition) -> Self
[src]
Trait Implementations
impl Clone for BufferRange
[src]
impl Clone for BufferRange
[src]fn clone(&self) -> BufferRange
[src]
fn clone(&self) -> BufferRange
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for BufferRange
[src]
impl Debug for BufferRange
[src]impl Default for BufferRange
[src]
impl Default for BufferRange
[src]fn default() -> BufferRange
[src]
fn default() -> BufferRange
[src]Returns the “default value” for a type. Read more
impl PartialEq<BufferRange> for BufferRange
[src]
impl PartialEq<BufferRange> for BufferRange
[src]fn eq(&self, other: &BufferRange) -> bool
[src]
fn eq(&self, other: &BufferRange) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &BufferRange) -> bool
[src]
fn ne(&self, other: &BufferRange) -> bool
[src]This method tests for !=
.
impl Copy for BufferRange
[src]
impl Eq for BufferRange
[src]
impl StructuralEq for BufferRange
[src]
impl StructuralPartialEq for BufferRange
[src]
Auto Trait Implementations
impl RefUnwindSafe for BufferRange
impl Send for BufferRange
impl Sync for BufferRange
impl Unpin for BufferRange
impl UnwindSafe for BufferRange
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more