pub struct Color {
pub id: u32,
pub name: String,
}Fields§
§id: u32§name: StringTrait Implementations§
Source§impl CompatFrom<Color> for Color
impl CompatFrom<Color> for Color
Source§fn compat_from(value: Color) -> Self
fn compat_from(value: Color) -> Self
Converts
value into a value of this type.Source§impl CompatFrom<Color> for Color
impl CompatFrom<Color> for Color
Source§fn compat_from(value: Color) -> Self
fn compat_from(value: Color) -> Self
Converts
value into a value of this type.Source§impl<'a, ___E> Encode<Color<'static>, ___E> for &'a Colorwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<'a, ___E> Encode<Color<'static>, ___E> for &'a Colorwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<___E> Encode<Color<'static>, ___E> for Colorwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
impl<___E> Encode<Color<'static>, ___E> for Colorwhere
___E: InternalHandleEncoder + ?Sized + Encoder,
Source§impl<'a, ___E> EncodeOption<Box<'static, Color<'static>>, ___E> for &'a Color
impl<'a, ___E> EncodeOption<Box<'static, Color<'static>>, ___E> for &'a Color
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Color<'static>>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Color<'static>>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, Color<'static>>, ___E> for Color
impl<___E> EncodeOption<Box<'static, Color<'static>>, ___E> for Color
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Color<'static>>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Color<'static>>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'de> FromWireRef<Color<'de>> for Color
impl<'de> FromWireRef<Color<'de>> for Color
Source§fn from_wire_ref(wire: &Color<'de>) -> Self
fn from_wire_ref(wire: &Color<'de>) -> Self
Converts the given reference to this type.
Source§impl Ord for Color
impl Ord for Color
Source§impl PartialOrd for Color
impl PartialOrd for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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]