pub struct DataProperties { /* private fields */ }Implementations§
Source§impl DataProperties
impl DataProperties
pub fn new(nm_frame: NmFrame) -> Self
pub fn from(min_x: f64, max_x: f64, min_y: f64, max_y: f64) -> Self
pub fn data_frame(&self) -> &NmFrame
pub fn width(&self) -> f64
pub fn width_offset(&self) -> f64
pub fn set_width_offset(&mut self, _value: f64)
pub fn height(&self) -> f64
pub fn height_offset(&self) -> f64
pub fn set_height_offset(&mut self, _value: f64)
pub fn calculate_image_height(&self, pixel_size: f64) -> usize
pub fn calculate_image_width(&self, pixel_size: f64) -> usize
pub fn within_bounds(&self, x: f64, y: f64) -> bool
Trait Implementations§
Source§impl Clone for DataProperties
impl Clone for DataProperties
Auto Trait Implementations§
impl Forget for DataProperties
impl Freeze for DataProperties
impl Move for DataProperties
impl RefUnwindSafe for DataProperties
impl Send for DataProperties
impl Sync for DataProperties
impl Unpin for DataProperties
impl UnsafeUnpin for DataProperties
impl UnwindSafe for DataProperties
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.