Struct editor2::scroll::ScrollAnchor
source · pub struct ScrollAnchor {
pub offset: Point<f32>,
pub anchor: Anchor,
}
Fields§
§offset: Point<f32>
§anchor: Anchor
Implementations§
source§impl ScrollAnchor
impl ScrollAnchor
pub fn scroll_position(&self, snapshot: &DisplaySnapshot) -> Point<f32>
pub fn top_row(&self, buffer: &MultiBufferSnapshot) -> u32
Trait Implementations§
source§impl Clone for ScrollAnchor
impl Clone for ScrollAnchor
source§fn clone(&self) -> ScrollAnchor
fn clone(&self) -> ScrollAnchor
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 ScrollAnchor
impl Debug for ScrollAnchor
source§impl PartialEq<ScrollAnchor> for ScrollAnchor
impl PartialEq<ScrollAnchor> for ScrollAnchor
source§fn eq(&self, other: &ScrollAnchor) -> bool
fn eq(&self, other: &ScrollAnchor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScrollAnchor
impl StructuralPartialEq for ScrollAnchor
Auto Trait Implementations§
impl RefUnwindSafe for ScrollAnchor
impl Send for ScrollAnchor
impl Sync for ScrollAnchor
impl Unpin for ScrollAnchor
impl UnwindSafe for ScrollAnchor
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.