pub struct RectangleGeometry {
pub position: Box<GridPosition>,
pub dimension: Box<GridDimension>,
}Expand description
RectangleGeometry : Describes a two-dimensional rectangle
Fields§
§position: Box<GridPosition>§dimension: Box<GridDimension>Implementations§
Source§impl RectangleGeometry
impl RectangleGeometry
Sourcepub fn new(
position: GridPosition,
dimension: GridDimension,
) -> RectangleGeometry
pub fn new( position: GridPosition, dimension: GridDimension, ) -> RectangleGeometry
Describes a two-dimensional rectangle
Trait Implementations§
Source§impl Clone for RectangleGeometry
impl Clone for RectangleGeometry
Source§fn clone(&self) -> RectangleGeometry
fn clone(&self) -> RectangleGeometry
Returns a duplicate 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 RectangleGeometry
impl Debug for RectangleGeometry
Source§impl Default for RectangleGeometry
impl Default for RectangleGeometry
Source§fn default() -> RectangleGeometry
fn default() -> RectangleGeometry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RectangleGeometry
impl<'de> Deserialize<'de> for RectangleGeometry
Source§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
Source§impl PartialEq for RectangleGeometry
impl PartialEq for RectangleGeometry
Source§impl Serialize for RectangleGeometry
impl Serialize for RectangleGeometry
impl StructuralPartialEq for RectangleGeometry
Auto Trait Implementations§
impl Freeze for RectangleGeometry
impl RefUnwindSafe for RectangleGeometry
impl Send for RectangleGeometry
impl Sync for RectangleGeometry
impl Unpin for RectangleGeometry
impl UnwindSafe for RectangleGeometry
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