Struct RelativeCoords
pub struct RelativeCoords {
pub y_min: f32,
pub x_min: f32,
pub y_max: f32,
pub x_max: f32,
}
Expand description
Coordinates relative to the full image.
§Fields
y_min: top coordinate between 0 and 1 in height dimension x_min : left coordinate between 0 and 1 in width dimension y_max: bottom coordinate between 0 and 1 in height dimension x_max: right coordinate between 0 and 1 in width dimension
Fields§
§y_min: f32
§x_min: f32
§y_max: f32
§x_max: f32
Implementations§
§impl RelativeCoords
impl RelativeCoords
pub fn all() -> Self
Trait Implementations§
§impl Clone for RelativeCoords
impl Clone for RelativeCoords
§fn clone(&self) -> RelativeCoords
fn clone(&self) -> RelativeCoords
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 more§impl Debug for RelativeCoords
impl Debug for RelativeCoords
§impl<'de> Deserialize<'de> for RelativeCoords
impl<'de> Deserialize<'de> for RelativeCoords
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for RelativeCoords
impl Display for RelativeCoords
§impl PartialEq for RelativeCoords
impl PartialEq for RelativeCoords
§impl Serialize for RelativeCoords
impl Serialize for RelativeCoords
impl Copy for RelativeCoords
impl StructuralPartialEq for RelativeCoords
Auto Trait Implementations§
impl Freeze for RelativeCoords
impl RefUnwindSafe for RelativeCoords
impl Send for RelativeCoords
impl Sync for RelativeCoords
impl Unpin for RelativeCoords
impl UnwindSafe for RelativeCoords
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