Struct shape_core::Parallelogram
source · [−]Fields
anchor: Point<T>
side: (Point<T>, Point<T>)
Implementations
sourceimpl<T> Parallelogram<T>
impl<T> Parallelogram<T>
Trait Implementations
sourceimpl<T: Clone> Clone for Parallelogram<T>
impl<T: Clone> Clone for Parallelogram<T>
sourcefn clone(&self) -> Parallelogram<T>
fn clone(&self) -> Parallelogram<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for Parallelogram<T>
impl<T: Debug> Debug for Parallelogram<T>
sourceimpl<'de, T> Deserialize<'de> for Parallelogram<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Parallelogram<T> where
T: Deserialize<'de>,
sourcefn 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
sourceimpl<T> From<&'_ Parallelogram<T>> for Polygon<T> where
T: Clone + Num,
impl<T> From<&'_ Parallelogram<T>> for Polygon<T> where
T: Clone + Num,
sourcefn from(v: &Parallelogram<T>) -> Self
fn from(v: &Parallelogram<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: Hash> Hash for Parallelogram<T>
impl<T: Hash> Hash for Parallelogram<T>
sourceimpl<T: PartialEq> PartialEq<Parallelogram<T>> for Parallelogram<T>
impl<T: PartialEq> PartialEq<Parallelogram<T>> for Parallelogram<T>
sourcefn eq(&self, other: &Parallelogram<T>) -> bool
fn eq(&self, other: &Parallelogram<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Parallelogram<T>) -> bool
fn ne(&self, other: &Parallelogram<T>) -> bool
This method tests for !=
.
sourceimpl<T> Serialize for Parallelogram<T> where
T: Serialize,
impl<T> Serialize for Parallelogram<T> where
T: Serialize,
impl<T: Copy> Copy for Parallelogram<T>
impl<T: Eq> Eq for Parallelogram<T>
impl<T> StructuralEq for Parallelogram<T>
impl<T> StructuralPartialEq for Parallelogram<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Parallelogram<T> where
T: RefUnwindSafe,
impl<T> Send for Parallelogram<T> where
T: Send,
impl<T> Sync for Parallelogram<T> where
T: Sync,
impl<T> Unpin for Parallelogram<T> where
T: Unpin,
impl<T> UnwindSafe for Parallelogram<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more