#[repr(C)]pub struct InsetF {
pub top: f32,
pub right: f32,
pub bottom: f32,
pub left: f32,
}Expand description
A floating point 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: f32§right: f32§bottom: f32§left: f32Trait Implementations§
Source§impl<'a, ___E> Encode<InsetF, ___E> for &'a InsetFwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<InsetF, ___E> for &'a InsetFwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<InsetF, ___E> for InsetFwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<InsetF, ___E> for InsetFwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, InsetF>
const COPY_OPTIMIZATION: CopyOptimization<Self, InsetF>
Source§impl<'a, ___E> EncodeOption<Box<'static, InsetF>, ___E> for &'a InsetF
impl<'a, ___E> EncodeOption<Box<'static, InsetF>, ___E> for &'a InsetF
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, InsetF>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, InsetF>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, InsetF>, ___E> for InsetF
impl<___E> EncodeOption<Box<'static, InsetF>, ___E> for InsetF
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, InsetF>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, InsetF>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireRef<InsetF> for InsetF
impl FromWireRef<InsetF> for InsetF
Source§fn from_wire_ref(wire: &InsetF) -> Self
fn from_wire_ref(wire: &InsetF) -> Self
Converts the given reference to this type.
Source§impl PartialOrd for InsetF
impl PartialOrd for InsetF
impl Copy for InsetF
impl StructuralPartialEq for InsetF
Auto Trait Implementations§
impl Freeze for InsetF
impl RefUnwindSafe for InsetF
impl Send for InsetF
impl Sync for InsetF
impl Unpin for InsetF
impl UnsafeUnpin for InsetF
impl UnwindSafe for InsetF
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]