Struct target_lexicon::DefaultToUnknown
source · pub struct DefaultToUnknown(pub Triple);
Expand description
A simple wrapper around Triple
that provides an implementation of
Default
which defaults to Triple::unknown()
.
Tuple Fields§
§0: Triple
Trait Implementations§
source§impl Clone for DefaultToUnknown
impl Clone for DefaultToUnknown
source§fn clone(&self) -> DefaultToUnknown
fn clone(&self) -> DefaultToUnknown
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultToUnknown
impl Debug for DefaultToUnknown
source§impl Default for DefaultToUnknown
impl Default for DefaultToUnknown
source§impl Hash for DefaultToUnknown
impl Hash for DefaultToUnknown
source§impl PartialEq<DefaultToUnknown> for DefaultToUnknown
impl PartialEq<DefaultToUnknown> for DefaultToUnknown
source§fn eq(&self, other: &DefaultToUnknown) -> bool
fn eq(&self, other: &DefaultToUnknown) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DefaultToUnknown
impl StructuralEq for DefaultToUnknown
impl StructuralPartialEq for DefaultToUnknown
Auto Trait Implementations§
impl RefUnwindSafe for DefaultToUnknown
impl Send for DefaultToUnknown
impl Sync for DefaultToUnknown
impl Unpin for DefaultToUnknown
impl UnwindSafe for DefaultToUnknown
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