Struct euclid::side_offsets::TypedSideOffsets2D
[−]
[src]
pub struct TypedSideOffsets2D<T, U> { pub top: T, pub right: T, pub bottom: T, pub left: T, // some fields omitted }
Fields
top: T
right: T
bottom: T
left: T
Methods
impl<T, U> TypedSideOffsets2D<T, U>
[src]
fn new(top: T, right: T, bottom: T, left: T) -> TypedSideOffsets2D<T, U>
impl<T: Clone, U> TypedSideOffsets2D<T, U>
[src]
fn get_top(&self) -> Length<T, U>
fn get_right(&self) -> Length<T, U>
fn get_bottom(&self) -> Length<T, U>
fn get_left(&self) -> Length<T, U>
impl<T: Clone, U> TypedSideOffsets2D<T, U>
[src]
fn new_all_same(all: T) -> TypedSideOffsets2D<T, U>
impl<T, U> TypedSideOffsets2D<T, U> where T: Add<T, Output=T> + Copy
[src]
fn horizontal(&self) -> T
fn vertical(&self) -> T
impl<T: Zero, U> TypedSideOffsets2D<T, U>
[src]
fn zero() -> TypedSideOffsets2D<T, U>
Trait Implementations
impl<T: Debug, U: Debug> Debug for TypedSideOffsets2D<T, U>
[src]
impl<T: Clone, U: Clone> Clone for TypedSideOffsets2D<T, U>
[src]
fn clone(&self) -> TypedSideOffsets2D<T, U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: HeapSizeOf, U> HeapSizeOf for TypedSideOffsets2D<T, U>
[src]
fn heap_size_of_children(&self) -> usize
Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of::
impl<T: Clone + Deserialize, U> Deserialize for TypedSideOffsets2D<T, U>
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl<T: Serialize, U> Serialize for TypedSideOffsets2D<T, U>
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl<T: Add<T, Output=T>, U> Add for TypedSideOffsets2D<T, U>
[src]
type Output = TypedSideOffsets2D<T, U>
The resulting type after applying the +
operator
fn add(self, other: TypedSideOffsets2D<T, U>) -> TypedSideOffsets2D<T, U>
The method for the +
operator