pub struct Ellipsis<P, E> {
pub center: Vec2<P>,
pub radius: Extent2<E>,
}Expand description
Ellipsis (2D), represented by center and radius in both axii.
Fields§
§center: Vec2<P>§radius: Extent2<E>Trait Implementations§
source§impl<'de, P, E> Deserialize<'de> for Ellipsis<P, E>where
P: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, P, E> Deserialize<'de> for Ellipsis<P, E>where P: Deserialize<'de>, E: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Ellipsis<P, E>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Ellipsis<P, E>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<P, E> PartialEq<Ellipsis<P, E>> for Ellipsis<P, E>where
P: PartialEq<P>,
E: PartialEq<E>,
impl<P, E> PartialEq<Ellipsis<P, E>> for Ellipsis<P, E>where P: PartialEq<P>, E: PartialEq<E>,
source§impl<P, E> Serialize for Ellipsis<P, E>where
P: Serialize,
E: Serialize,
impl<P, E> Serialize for Ellipsis<P, E>where P: Serialize, E: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<P, E> Copy for Ellipsis<P, E>where P: Copy, E: Copy,
impl<P, E> Eq for Ellipsis<P, E>where P: Eq, E: Eq,
impl<P, E> StructuralEq for Ellipsis<P, E>
impl<P, E> StructuralPartialEq for Ellipsis<P, E>
Auto Trait Implementations§
impl<P, E> RefUnwindSafe for Ellipsis<P, E>where E: RefUnwindSafe, P: RefUnwindSafe,
impl<P, E> Send for Ellipsis<P, E>where E: Send, P: Send,
impl<P, E> Sync for Ellipsis<P, E>where E: Sync, P: Sync,
impl<P, E> Unpin for Ellipsis<P, E>where E: Unpin, P: Unpin,
impl<P, E> UnwindSafe for Ellipsis<P, E>where E: UnwindSafe, P: UnwindSafe,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more