#[repr(C)]pub struct Edges<T: Clone + Default + Debug> {
pub top: T,
pub right: T,
pub bottom: T,
pub left: T,
}
Fields§
§top: T
§right: T
§bottom: T
§left: T
Implementations§
source§impl Edges<DefiniteLength>
impl Edges<DefiniteLength>
source§impl Edges<AbsoluteLength>
impl Edges<AbsoluteLength>
Trait Implementations§
source§impl<T: Clone + Default + Debug> From<EdgesRefinement<T>> for Edges<T>where
Option<T>: Clone,
impl<T: Clone + Default + Debug> From<EdgesRefinement<T>> for Edges<T>where Option<T>: Clone,
source§fn from(value: EdgesRefinement<T>) -> Self
fn from(value: EdgesRefinement<T>) -> Self
Converts to this type from the input type.
source§impl<T, S> MulAssign<S> for Edges<T>where
T: Mul<S, Output = T> + Clone + Default + Debug,
S: Clone,
impl<T, S> MulAssign<S> for Edges<T>where T: Mul<S, Output = T> + Clone + Default + Debug, S: Clone,
source§fn mul_assign(&mut self, rhs: S)
fn mul_assign(&mut self, rhs: S)
Performs the
*=
operation. Read moresource§impl<T: PartialEq + Clone + Default + Debug> PartialEq<Edges<T>> for Edges<T>
impl<T: PartialEq + Clone + Default + Debug> PartialEq<Edges<T>> for Edges<T>
source§impl<T: Clone + Default + Debug> Refineable for Edges<T>where
Option<T>: Clone,
impl<T: Clone + Default + Debug> Refineable for Edges<T>where Option<T>: Clone,
type Refinement = EdgesRefinement<T>
fn refine(&mut self, refinement: &Self::Refinement)
fn refined(self, refinement: Self::Refinement) -> Self
fn from_cascade(cascade: &Cascade<Self>) -> Selfwhere Self: Default + Sized,
impl<T: Clone + Default + Debug + Copy> Copy for Edges<T>
impl<T: Eq + Clone + Default + Debug> Eq for Edges<T>
impl<T: Clone + Default + Debug> StructuralEq for Edges<T>
impl<T: Clone + Default + Debug> StructuralPartialEq for Edges<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Edges<T>where T: RefUnwindSafe,
impl<T> Send for Edges<T>where T: Send,
impl<T> Sync for Edges<T>where T: Sync,
impl<T> Unpin for Edges<T>where T: Unpin,
impl<T> UnwindSafe for Edges<T>where T: 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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.