#[repr(C)]pub struct Inset {
pub top: i32,
pub right: i32,
pub bottom: i32,
pub left: i32,
}Expand description
An integer offset to apply to each edge of a rectangle.
This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.
Fields§
§top: i32§right: i32§bottom: i32§left: i32Trait Implementations§
Source§impl<'a, ___E> Encode<Inset, ___E> for &'a Insetwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<Inset, ___E> for &'a Insetwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<Inset, ___E> for Insetwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<Inset, ___E> for Insetwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, Inset>
const COPY_OPTIMIZATION: CopyOptimization<Self, Inset>
Source§impl<'a, ___E> EncodeOption<Box<'static, Inset>, ___E> for &'a Inset
impl<'a, ___E> EncodeOption<Box<'static, Inset>, ___E> for &'a Inset
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Inset>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Inset>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, Inset>, ___E> for Inset
impl<___E> EncodeOption<Box<'static, Inset>, ___E> for Inset
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Inset>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Inset>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireRef<Inset> for Inset
impl FromWireRef<Inset> for Inset
Source§fn from_wire_ref(wire: &Inset) -> Self
fn from_wire_ref(wire: &Inset) -> Self
Converts the given reference to this type.
Source§impl Ord for Inset
impl Ord for Inset
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Inset
impl PartialOrd for Inset
impl Copy for Inset
impl Eq for Inset
impl StructuralPartialEq for Inset
Auto Trait Implementations§
impl Freeze for Inset
impl RefUnwindSafe for Inset
impl Send for Inset
impl Sync for Inset
impl Unpin for Inset
impl UnsafeUnpin for Inset
impl UnwindSafe for Inset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]