pub struct GoldenUnion { /* private fields */ }Implementations§
Source§impl GoldenUnion
impl GoldenUnion
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub fn as_ref(&self) -> Option<&GoldenUnion>
pub fn into_option(self) -> Option<GoldenUnion>
Trait Implementations§
Source§impl Clone for GoldenUnion
impl Clone for GoldenUnion
Source§impl Constrained for GoldenUnion
impl Constrained for GoldenUnion
Source§impl Debug for GoldenUnion
impl Debug for GoldenUnion
Source§impl<___D> Decode<___D> for GoldenUnionwhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for GoldenUnionwhere
___D: InternalHandleDecoder + ?Sized,
Source§impl<'a, ___E> EncodeOption<GoldenUnion, ___E> for &'a GoldenUnion
impl<'a, ___E> EncodeOption<GoldenUnion, ___E> for &'a GoldenUnion
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<GoldenUnion>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<GoldenUnion>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<___E> EncodeOption<GoldenUnion, ___E> for GoldenUnion
impl<___E> EncodeOption<GoldenUnion, ___E> for GoldenUnion
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<GoldenUnion>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<GoldenUnion>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireOption<GoldenUnion> for Box<GoldenUnion>
impl FromWireOption<GoldenUnion> for Box<GoldenUnion>
Source§fn from_wire_option(wire: GoldenUnion) -> Option<Self>
fn from_wire_option(wire: GoldenUnion) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl FromWireOption<GoldenUnion> for GoldenUnion
impl FromWireOption<GoldenUnion> for GoldenUnion
Source§fn from_wire_option(wire: GoldenUnion) -> Option<Self>
fn from_wire_option(wire: GoldenUnion) -> Option<Self>
Converts the given owned value to an option of this type.
Source§impl FromWireOptionRef<GoldenUnion> for Box<GoldenUnion>
impl FromWireOptionRef<GoldenUnion> for Box<GoldenUnion>
Source§fn from_wire_option_ref(wire: &GoldenUnion) -> Option<Self>
fn from_wire_option_ref(wire: &GoldenUnion) -> Option<Self>
Converts the given reference to an option of this type.
Source§impl IntoNatural for GoldenUnion
impl IntoNatural for GoldenUnion
Source§type Natural = Option<GoldenUnion>
type Natural = Option<GoldenUnion>
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for GoldenUnion
impl Wire for GoldenUnion
Source§type Narrowed<'de> = GoldenUnion
type Narrowed<'de> = GoldenUnion
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for GoldenUnion
impl RefUnwindSafe for GoldenUnion
impl Send for GoldenUnion
impl Sync for GoldenUnion
impl Unpin for GoldenUnion
impl UnsafeUnpin for GoldenUnion
impl UnwindSafe for GoldenUnion
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> 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]