Struct icu::datetime::fieldset::Combo

source ·
pub struct Combo<DT, Z> { /* private fields */ }
Expand description

Struct for combining date/time fields with zone fields.

This struct produces “composite field sets” as defined in UTS 35.

§Examples

Two ways to construct the same combo field set (in this case, weekday with location-based zone):

use icu::datetime::fieldset::{Combo, E, L};

let field_set_1 = E::long().zone_l();
let field_set_2 = Combo::<E, L>::long();

assert_eq!(field_set_1, field_set_2);

Format the weekday, hour, and location-based zone:

use icu::datetime::fieldset::{Combo, ET, L};
use icu::datetime::DateTimeFormatter;
use icu::locale::locale;
use icu::timezone::IxdtfParser;
use writeable::assert_try_writeable_eq;

// Note: Combo type can be elided, but it is shown here for demonstration
let formatter = DateTimeFormatter::<Combo<ET, L>>::try_new(
    &locale!("en-US").into(),
    ET::short().hm().zone_l(),
)
.unwrap();

let zdt = IxdtfParser::new().try_location_only_from_str(
    "2024-10-18T15:44[America/Los_Angeles]",
)
.unwrap();

assert_try_writeable_eq!(
    formatter.convert_and_format(&zdt),
    "Fri, 3:44 PM Los Angeles Time"
);

Same thing with a fixed calendar formatter:

use icu::calendar::Gregorian;
use icu::datetime::fieldset::{Combo, ET, L};
use icu::datetime::FixedCalendarDateTimeFormatter;
use icu::locale::locale;
use icu::timezone::IxdtfParser;
use writeable::assert_try_writeable_eq;

// Note: Combo type can be elided, but it is shown here for demonstration
let formatter = FixedCalendarDateTimeFormatter::<_, Combo<ET, L>>::try_new(
    &locale!("en-US").into(),
    ET::short().hm().zone_l(),
)
.unwrap();

let zdt = IxdtfParser::new().try_location_only_iso_from_str(
    "2024-10-18T15:44[America/Los_Angeles]",
)
.unwrap()
.to_calendar(Gregorian);

assert_try_writeable_eq!(
    formatter.format(&zdt),
    "Fri, 3:44 PM Los Angeles Time"
);

Mix a dynamic DateFieldSet with a static time zone:

use icu::datetime::fieldset::{Combo, YMD, Vs, dynamic::DateFieldSet};
use icu::datetime::DateTimeFormatter;
use icu::locale::locale;
use icu::timezone::IxdtfParser;
use writeable::assert_try_writeable_eq;

// Note: Combo type can be elided, but it is shown here for demonstration
let formatter = DateTimeFormatter::<Combo<DateFieldSet, Vs>>::try_new(
    &locale!("en-US").into(),
    DateFieldSet::YMD(YMD::long()).zone_v(),
)
.unwrap();

let zdt = IxdtfParser::new().try_location_only_from_str(
    "2024-10-18T15:44[America/Los_Angeles]",
)
.unwrap();

assert_try_writeable_eq!(
    formatter.convert_and_format(&zdt),
    "October 18, 2024 PT"
);

Implementations§

source§

impl<Z> Combo<D, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<D, Z>

Creates a D skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<D, Z>

Creates a D skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<D, Z>

Creates a D skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<D, Z>

Creates a D skeleton with a short length and a time zone.

source§

impl<Z> Combo<DT, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<DT, Z>

Creates a DT skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<DT, Z>

Creates a DT skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<DT, Z>

Creates a DT skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<DT, Z>

Creates a DT skeleton with a short length and a time zone.

source§

impl<Z> Combo<E, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<E, Z>

Creates a E skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<E, Z>

Creates a E skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<E, Z>

Creates a E skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<E, Z>

Creates a E skeleton with a short length and a time zone.

source§

impl<Z> Combo<ET, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<ET, Z>

Creates a ET skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<ET, Z>

Creates a ET skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<ET, Z>

Creates a ET skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<ET, Z>

Creates a ET skeleton with a short length and a time zone.

source§

impl<Z> Combo<DE, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<DE, Z>

Creates a DE skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<DE, Z>

Creates a DE skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<DE, Z>

Creates a DE skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<DE, Z>

Creates a DE skeleton with a short length and a time zone.

source§

impl<Z> Combo<DET, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<DET, Z>

Creates a DET skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<DET, Z>

Creates a DET skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<DET, Z>

Creates a DET skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<DET, Z>

Creates a DET skeleton with a short length and a time zone.

source§

impl<Z> Combo<MD, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<MD, Z>

Creates a MD skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<MD, Z>

Creates a MD skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<MD, Z>

Creates a MD skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<MD, Z>

Creates a MD skeleton with a short length and a time zone.

source§

impl<Z> Combo<MDT, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<MDT, Z>

Creates a MDT skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<MDT, Z>

Creates a MDT skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<MDT, Z>

Creates a MDT skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<MDT, Z>

Creates a MDT skeleton with a short length and a time zone.

source§

impl<Z> Combo<MDE, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<MDE, Z>

Creates a MDE skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<MDE, Z>

Creates a MDE skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<MDE, Z>

Creates a MDE skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<MDE, Z>

Creates a MDE skeleton with a short length and a time zone.

source§

impl<Z> Combo<MDET, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<MDET, Z>

Creates a MDET skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<MDET, Z>

Creates a MDET skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<MDET, Z>

Creates a MDET skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<MDET, Z>

Creates a MDET skeleton with a short length and a time zone.

source§

impl<Z> Combo<YMD, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<YMD, Z>

Creates a YMD skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<YMD, Z>

Creates a YMD skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<YMD, Z>

Creates a YMD skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<YMD, Z>

Creates a YMD skeleton with a short length and a time zone.

source§

impl<Z> Combo<YMDT, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<YMDT, Z>

Creates a YMDT skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<YMDT, Z>

Creates a YMDT skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<YMDT, Z>

Creates a YMDT skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<YMDT, Z>

Creates a YMDT skeleton with a short length and a time zone.

source§

impl<Z> Combo<YMDE, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<YMDE, Z>

Creates a YMDE skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<YMDE, Z>

Creates a YMDE skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<YMDE, Z>

Creates a YMDE skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<YMDE, Z>

Creates a YMDE skeleton with a short length and a time zone.

source§

impl<Z> Combo<YMDET, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<YMDET, Z>

Creates a YMDET skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<YMDET, Z>

Creates a YMDET skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<YMDET, Z>

Creates a YMDET skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<YMDET, Z>

Creates a YMDET skeleton with a short length and a time zone.

source§

impl<Z> Combo<T, Z>

source

pub fn with_length(length: NeoSkeletonLength) -> Combo<T, Z>

Creates a T skeleton with the given formatting length and a time zone.

source

pub const fn long() -> Combo<T, Z>

Creates a T skeleton with a long length and a time zone.

source

pub const fn medium() -> Combo<T, Z>

Creates a T skeleton with a medium length and a time zone.

source

pub const fn short() -> Combo<T, Z>

Creates a T skeleton with a short length and a time zone.

Trait Implementations§

source§

impl<DT, Z> Clone for Combo<DT, Z>
where DT: Clone, Z: Clone,

source§

fn clone(&self) -> Combo<DT, Z>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<DT, Z> DateTimeMarkers for Combo<DT, Z>

source§

type D = <DT as DateTimeMarkers>::D

Associated types for date formatting. Read more
source§

type T = <DT as DateTimeMarkers>::T

Associated types for time formatting. Read more
source§

type Z = <Z as DateTimeMarkers>::Z

Associated types for time zone formatting. Read more
source§

type GluePatternV1Marker = GluePatternV1Marker

Marker for loading the date/time glue pattern.
source§

impl<DT, Z> DateTimeNamesMarker for Combo<DT, Z>

source§

impl<DT, Z> Debug for Combo<DT, Z>
where DT: Debug, Z: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl GetField<CompositeFieldSet> for Combo<D, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<D, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<D, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<D, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DE, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DT, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateAndTimeFieldSet, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<DateFieldSet, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<E, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<ET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MD, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDE, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<MDT, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<T, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<TimeFieldSet, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMD, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDE, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDET, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, L>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, O>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, Vs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl GetField<CompositeFieldSet> for Combo<YMDT, Zs>

source§

fn get_field(&self) -> CompositeFieldSet

Returns the value of this trait’s field T.
source§

impl<DT, Z> PartialEq for Combo<DT, Z>
where DT: PartialEq, Z: PartialEq,

source§

fn eq(&self, other: &Combo<DT, Z>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<DT, Z> Copy for Combo<DT, Z>
where DT: Copy, Z: Copy,

source§

impl<DT, Z> Eq for Combo<DT, Z>
where DT: Eq, Z: Eq,

source§

impl<DT, Z> StructuralPartialEq for Combo<DT, Z>

source§

impl<DT, Z> UnstableSealed for Combo<DT, Z>

Auto Trait Implementations§

§

impl<DT, Z> Freeze for Combo<DT, Z>
where DT: Freeze,

§

impl<DT, Z> RefUnwindSafe for Combo<DT, Z>

§

impl<DT, Z> Send for Combo<DT, Z>
where DT: Send, Z: Send,

§

impl<DT, Z> Sync for Combo<DT, Z>
where DT: Sync, Z: Sync,

§

impl<DT, Z> Unpin for Combo<DT, Z>
where DT: Unpin, Z: Unpin,

§

impl<DT, Z> UnwindSafe for Combo<DT, Z>
where DT: UnwindSafe, Z: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> GetField<T> for T
where T: Copy,

source§

fn get_field(&self) -> T

Returns the value of this trait’s field T.
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T
where T: Send + Sync,