Skip to main content

AnyDescriptor

Enum AnyDescriptor 

Source
#[non_exhaustive]
pub enum AnyDescriptor<'a> {
Show 72 variants Registration(RegistrationDescriptor<'a>), DataStreamAlignment(DataStreamAlignmentDescriptor), Ca(CaDescriptor<'a>), Iso639Language(Iso639LanguageDescriptor), PrivateDataIndicator(PrivateDataIndicatorDescriptor), NetworkName(NetworkNameDescriptor<'a>), ServiceList(ServiceListDescriptor), Stuffing(StuffingDescriptor<'a>), SatelliteDeliverySystem(SatelliteDeliverySystemDescriptor), CableDeliverySystem(CableDeliverySystemDescriptor), VbiData(VbiDataDescriptor<'a>), VbiTeletext(VbiTeletextDescriptor), BouquetName(BouquetNameDescriptor<'a>), Service(ServiceDescriptor<'a>), CountryAvailability(CountryAvailabilityDescriptor), Linkage(LinkageDescriptor<'a>), NvodReference(NvodReferenceDescriptor), TimeShiftedService(TimeShiftedServiceDescriptor), ShortEvent(ShortEventDescriptor<'a>), ExtendedEvent(ExtendedEventDescriptor<'a>), TimeShiftedEvent(TimeShiftedEventDescriptor), Component(ComponentDescriptor<'a>), Mosaic(MosaicDescriptor), StreamIdentifier(StreamIdentifierDescriptor), CaIdentifier(CaIdentifierDescriptor), Content(ContentDescriptor), ParentalRating(ParentalRatingDescriptor), Teletext(TeletextDescriptor), Telephone(TelephoneDescriptor<'a>), LocalTimeOffset(LocalTimeOffsetDescriptor), Subtitling(SubtitlingDescriptor), TerrestrialDeliverySystem(TerrestrialDeliverySystemDescriptor), MultilingualNetworkName(MultilingualNetworkNameDescriptor<'a>), MultilingualBouquetName(MultilingualBouquetNameDescriptor<'a>), MultilingualServiceName(MultilingualServiceNameDescriptor<'a>), MultilingualComponent(MultilingualComponentDescriptor<'a>), PrivateDataSpecifier(PrivateDataSpecifierDescriptor), ServiceMove(ServiceMoveDescriptor), ShortSmoothingBuffer(ShortSmoothingBufferDescriptor<'a>), FrequencyList(FrequencyListDescriptor), PartialTransportStream(PartialTransportStreamDescriptor), DataBroadcast(DataBroadcastDescriptor<'a>), Scrambling(ScramblingDescriptor), DataBroadcastId(DataBroadcastIdDescriptor<'a>), TransportStream(TransportStreamDescriptor<'a>), Dsng(DsngDescriptor<'a>), Pdc(PdcDescriptor), Ac3(Ac3Descriptor<'a>), AncillaryData(AncillaryDataDescriptor), CellList(CellListDescriptor), CellFrequencyLink(CellFrequencyLinkDescriptor), AnnouncementSupport(AnnouncementSupportDescriptor), ApplicationSignalling(ApplicationSignallingDescriptor), AdaptationFieldData(AdaptationFieldDataDescriptor), ServiceIdentifier(ServiceIdentifierDescriptor<'a>), ServiceAvailability(ServiceAvailabilityDescriptor), DefaultAuthority(DefaultAuthorityDescriptor<'a>), RelatedContent(RelatedContentDescriptor), TvaId(TvaIdDescriptor), ContentIdentifier(ContentIdentifierDescriptor<'a>), TimeSliceFecIdentifier(TimeSliceFecIdentifierDescriptor<'a>), EcmRepetitionRate(EcmRepetitionRateDescriptor<'a>), S2SatelliteDeliverySystem(S2SatelliteDeliverySystemDescriptor), EnhancedAc3(EnhancedAc3Descriptor<'a>), Dts(DtsDescriptor<'a>), Aac(AacDescriptor<'a>), XaitLocation(XaitLocationDescriptor), FtaContentManagement(FtaContentManagementDescriptor), Extension(ExtensionDescriptor<'a>), LogicalChannel(LogicalChannelDescriptor), Other { tag: u8, value: Box<dyn DescriptorObject>, }, Unknown { tag: u8, body: &'a [u8], },
}
Expand description

Every crate-implemented descriptor, plus an Unknown fallthrough.

serde uses external tagging with camelCase variant keys — a parsed short_event_descriptor serializes as {"shortEvent": {…}}. Variant names map 1:1 to the descriptor modules; see each module for the wire layout.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Registration(RegistrationDescriptor<'a>)

§

DataStreamAlignment(DataStreamAlignmentDescriptor)

§

Ca(CaDescriptor<'a>)

§

Iso639Language(Iso639LanguageDescriptor)

§

PrivateDataIndicator(PrivateDataIndicatorDescriptor)

§

NetworkName(NetworkNameDescriptor<'a>)

§

ServiceList(ServiceListDescriptor)

§

Stuffing(StuffingDescriptor<'a>)

§

SatelliteDeliverySystem(SatelliteDeliverySystemDescriptor)

§

CableDeliverySystem(CableDeliverySystemDescriptor)

§

VbiData(VbiDataDescriptor<'a>)

§

VbiTeletext(VbiTeletextDescriptor)

§

BouquetName(BouquetNameDescriptor<'a>)

§

Service(ServiceDescriptor<'a>)

§

CountryAvailability(CountryAvailabilityDescriptor)

§

Linkage(LinkageDescriptor<'a>)

§

NvodReference(NvodReferenceDescriptor)

§

TimeShiftedService(TimeShiftedServiceDescriptor)

§

ShortEvent(ShortEventDescriptor<'a>)

§

ExtendedEvent(ExtendedEventDescriptor<'a>)

§

TimeShiftedEvent(TimeShiftedEventDescriptor)

§

Component(ComponentDescriptor<'a>)

§

Mosaic(MosaicDescriptor)

§

StreamIdentifier(StreamIdentifierDescriptor)

§

CaIdentifier(CaIdentifierDescriptor)

§

Content(ContentDescriptor)

§

ParentalRating(ParentalRatingDescriptor)

§

Teletext(TeletextDescriptor)

§

Telephone(TelephoneDescriptor<'a>)

§

LocalTimeOffset(LocalTimeOffsetDescriptor)

§

Subtitling(SubtitlingDescriptor)

§

TerrestrialDeliverySystem(TerrestrialDeliverySystemDescriptor)

§

MultilingualNetworkName(MultilingualNetworkNameDescriptor<'a>)

§

MultilingualBouquetName(MultilingualBouquetNameDescriptor<'a>)

§

MultilingualServiceName(MultilingualServiceNameDescriptor<'a>)

§

MultilingualComponent(MultilingualComponentDescriptor<'a>)

§

PrivateDataSpecifier(PrivateDataSpecifierDescriptor)

§

ServiceMove(ServiceMoveDescriptor)

§

ShortSmoothingBuffer(ShortSmoothingBufferDescriptor<'a>)

§

FrequencyList(FrequencyListDescriptor)

§

PartialTransportStream(PartialTransportStreamDescriptor)

§

DataBroadcast(DataBroadcastDescriptor<'a>)

§

Scrambling(ScramblingDescriptor)

§

DataBroadcastId(DataBroadcastIdDescriptor<'a>)

§

TransportStream(TransportStreamDescriptor<'a>)

§

Dsng(DsngDescriptor<'a>)

§

Pdc(PdcDescriptor)

§

Ac3(Ac3Descriptor<'a>)

§

AncillaryData(AncillaryDataDescriptor)

§

CellList(CellListDescriptor)

§

AnnouncementSupport(AnnouncementSupportDescriptor)

§

ApplicationSignalling(ApplicationSignallingDescriptor)

§

AdaptationFieldData(AdaptationFieldDataDescriptor)

§

ServiceIdentifier(ServiceIdentifierDescriptor<'a>)

§

ServiceAvailability(ServiceAvailabilityDescriptor)

§

DefaultAuthority(DefaultAuthorityDescriptor<'a>)

§

RelatedContent(RelatedContentDescriptor)

§

TvaId(TvaIdDescriptor)

§

ContentIdentifier(ContentIdentifierDescriptor<'a>)

§

TimeSliceFecIdentifier(TimeSliceFecIdentifierDescriptor<'a>)

§

EcmRepetitionRate(EcmRepetitionRateDescriptor<'a>)

§

S2SatelliteDeliverySystem(S2SatelliteDeliverySystemDescriptor)

§

EnhancedAc3(EnhancedAc3Descriptor<'a>)

§

Dts(DtsDescriptor<'a>)

§

Aac(AacDescriptor<'a>)

§

XaitLocation(XaitLocationDescriptor)

§

FtaContentManagement(FtaContentManagementDescriptor)

§

Extension(ExtensionDescriptor<'a>)

§

LogicalChannel(LogicalChannelDescriptor)

§

Other

Runtime-registered custom descriptor (see DescriptorRegistry).

Fields

§tag: u8

The raw descriptor_tag byte.

§value: Box<dyn DescriptorObject>

The parsed, type-erased descriptor value. Use DescriptorObject::as_any followed by downcast_ref to recover the concrete type.

§

Unknown

Tag with no typed implementation; body is the payload sans the 2-byte (tag, length) header.

Fields

§tag: u8

The raw descriptor_tag byte.

§body: &'a [u8]

The raw payload bytes (descriptor_length bytes).

Implementations§

Source§

impl<'a> AnyDescriptor<'a>

Source

pub const DISPATCHED_TAGS: &'static [u8]

Every tag the generated dispatcher routes (excludes @no_dispatch variants and AnyDescriptor::Unknown).

Trait Implementations§

Source§

impl<'a> Debug for AnyDescriptor<'a>

Source§

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

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

impl<'a> From<AacDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: AacDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Ac3Descriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: Ac3Descriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<AdaptationFieldDataDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: AdaptationFieldDataDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<AncillaryDataDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: AncillaryDataDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<AnnouncementSupportDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: AnnouncementSupportDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ApplicationSignallingDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: ApplicationSignallingDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<BouquetNameDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: BouquetNameDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CaDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: CaDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CaIdentifierDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: CaIdentifierDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CableDeliverySystemDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: CableDeliverySystemDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CellFrequencyLinkDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: CellFrequencyLinkDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CellListDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: CellListDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ComponentDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ComponentDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ContentDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: ContentDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ContentIdentifierDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ContentIdentifierDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CountryAvailabilityDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: CountryAvailabilityDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<DataBroadcastDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: DataBroadcastDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<DataBroadcastIdDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: DataBroadcastIdDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<DataStreamAlignmentDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: DataStreamAlignmentDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<DefaultAuthorityDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: DefaultAuthorityDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<DsngDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: DsngDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<DtsDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: DtsDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<EcmRepetitionRateDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: EcmRepetitionRateDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<EnhancedAc3Descriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: EnhancedAc3Descriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ExtendedEventDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ExtendedEventDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ExtensionDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ExtensionDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FrequencyListDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: FrequencyListDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FtaContentManagementDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: FtaContentManagementDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Iso639LanguageDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: Iso639LanguageDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<LinkageDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: LinkageDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<LocalTimeOffsetDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: LocalTimeOffsetDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<LogicalChannelDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: LogicalChannelDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<MosaicDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: MosaicDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<MultilingualBouquetNameDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: MultilingualBouquetNameDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<MultilingualComponentDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: MultilingualComponentDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<MultilingualNetworkNameDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: MultilingualNetworkNameDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<MultilingualServiceNameDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: MultilingualServiceNameDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<NetworkNameDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: NetworkNameDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<NvodReferenceDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: NvodReferenceDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ParentalRatingDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: ParentalRatingDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<PartialTransportStreamDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: PartialTransportStreamDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<PdcDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: PdcDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<PrivateDataIndicatorDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: PrivateDataIndicatorDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<PrivateDataSpecifierDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: PrivateDataSpecifierDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<RegistrationDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: RegistrationDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<RelatedContentDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: RelatedContentDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<S2SatelliteDeliverySystemDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: S2SatelliteDeliverySystemDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<SatelliteDeliverySystemDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: SatelliteDeliverySystemDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ScramblingDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: ScramblingDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ServiceAvailabilityDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: ServiceAvailabilityDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ServiceDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ServiceDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ServiceIdentifierDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ServiceIdentifierDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ServiceListDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: ServiceListDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ServiceMoveDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: ServiceMoveDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ShortEventDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ShortEventDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<ShortSmoothingBufferDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: ShortSmoothingBufferDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<StreamIdentifierDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: StreamIdentifierDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<StuffingDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: StuffingDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<SubtitlingDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: SubtitlingDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TelephoneDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: TelephoneDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TeletextDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: TeletextDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TerrestrialDeliverySystemDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: TerrestrialDeliverySystemDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TimeShiftedEventDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: TimeShiftedEventDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TimeShiftedServiceDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: TimeShiftedServiceDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TimeSliceFecIdentifierDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: TimeSliceFecIdentifierDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TransportStreamDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: TransportStreamDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<TvaIdDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: TvaIdDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<VbiDataDescriptor<'a>> for AnyDescriptor<'a>

Source§

fn from(d: VbiDataDescriptor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<VbiTeletextDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: VbiTeletextDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<XaitLocationDescriptor> for AnyDescriptor<'a>

Source§

fn from(d: XaitLocationDescriptor) -> Self

Converts to this type from the input type.
Source§

impl<'a> Serialize for AnyDescriptor<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for AnyDescriptor<'a>

§

impl<'a> !UnwindSafe for AnyDescriptor<'a>

§

impl<'a> Freeze for AnyDescriptor<'a>

§

impl<'a> Send for AnyDescriptor<'a>

§

impl<'a> Sync for AnyDescriptor<'a>

§

impl<'a> Unpin for AnyDescriptor<'a>

§

impl<'a> UnsafeUnpin for AnyDescriptor<'a>

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> DescriptorObject for T
where T: Debug + Any + Send + Sync + Serialize,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

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.