webm_iterable::matroska_spec

Enum MatroskaSpec

Source
pub enum MatroskaSpec {
Show 268 variants Ebml(Master<MatroskaSpec>), EbmlVersion(u64), EbmlReadVersion(u64), EbmlMaxIdLength(u64), EbmlMaxSizeLength(u64), DocType(String), DocTypeVersion(u64), DocTypeReadVersion(u64), DocTypeExtension(Master<MatroskaSpec>), DocTypeExtensionName(String), DocTypeExtensionVersion(u64), Segment(Master<MatroskaSpec>), Attachments(Master<MatroskaSpec>), AttachedFile(Master<MatroskaSpec>), FileData(Vec<u8>), FileDescription(String), FileMimeType(String), FileName(String), FileReferral(Vec<u8>), FileUID(u64), FileUsedEndTime(u64), FileUsedStartTime(u64), Chapters(Master<MatroskaSpec>), EditionEntry(Master<MatroskaSpec>), ChapterAtom(Master<MatroskaSpec>), ChapProcess(Master<MatroskaSpec>), ChapProcessCodecID(u64), ChapProcessCommand(Master<MatroskaSpec>), ChapProcessData(Vec<u8>), ChapProcessTime(u64), ChapProcessPrivate(Vec<u8>), ChapterDisplay(Master<MatroskaSpec>), ChapCountry(String), ChapLanguage(String), ChapLanguageIETF(String), ChapString(String), ChapterFlagEnabled(u64), ChapterFlagHidden(u64), ChapterPhysicalEquiv(u64), ChapterSegmentEditionUID(u64), ChapterSegmentUID(Vec<u8>), ChapterStringUID(String), ChapterTimeEnd(u64), ChapterTimeStart(u64), ChapterTrack(Master<MatroskaSpec>), ChapterTrackUID(u64), ChapterUID(u64), EditionFlagDefault(u64), EditionFlagHidden(u64), EditionFlagOrdered(u64), EditionUID(u64), Cluster(Master<MatroskaSpec>), BlockGroup(Master<MatroskaSpec>), Block(Vec<u8>), BlockAdditions(Master<MatroskaSpec>), BlockMore(Master<MatroskaSpec>), BlockAddID(u64), BlockAdditional(Vec<u8>), BlockDuration(u64), BlockVirtual(Vec<u8>), CodecState(Vec<u8>), DiscardPadding(i64), ReferenceBlock(i64), ReferenceFrame(Master<MatroskaSpec>), ReferenceOffset(u64), ReferenceTimestamp(u64), ReferencePriority(u64), ReferenceVirtual(i64), Slices(Master<MatroskaSpec>), TimeSlice(Master<MatroskaSpec>), BlockAdditionID(u64), Delay(u64), FrameNumber(u64), LaceNumber(u64), SliceDuration(u64), EncryptedBlock(Vec<u8>), Position(u64), PrevSize(u64), SilentTracks(Master<MatroskaSpec>), SilentTrackNumber(u64), SimpleBlock(Vec<u8>), Timestamp(u64), Cues(Master<MatroskaSpec>), CuePoint(Master<MatroskaSpec>), CueTime(u64), CueTrackPositions(Master<MatroskaSpec>), CueBlockNumber(u64), CueClusterPosition(u64), CueCodecState(u64), CueDuration(u64), CueReference(Master<MatroskaSpec>), CueRefCluster(u64), CueRefCodecState(u64), CueRefNumber(u64), CueRefTime(u64), CueRelativePosition(u64), CueTrack(u64), Info(Master<MatroskaSpec>), ChapterTranslate(Master<MatroskaSpec>), ChapterTranslateCodec(u64), ChapterTranslateEditionUID(u64), ChapterTranslateID(Vec<u8>), DateUTC(i64), Duration(f64), MuxingApp(String), NextFilename(String), NextUID(Vec<u8>), PrevFilename(String), PrevUID(Vec<u8>), SegmentFamily(Vec<u8>), SegmentFilename(String), SegmentUID(Vec<u8>), TimestampScale(u64), Title(String), WritingApp(String), SeekHead(Master<MatroskaSpec>), Seek(Master<MatroskaSpec>), SeekID(Vec<u8>), SeekPosition(u64), Tags(Master<MatroskaSpec>), Tag(Master<MatroskaSpec>), SimpleTag(Master<MatroskaSpec>), TagBinary(Vec<u8>), TagDefault(u64), TagDefaultBogus(u64), TagLanguage(String), TagLanguageIETF(String), TagName(String), TagString(String), Targets(Master<MatroskaSpec>), TagAttachmentUID(u64), TagChapterUID(u64), TagEditionUID(u64), TagTrackUID(u64), TargetType(String), TargetTypeValue(u64), Tracks(Master<MatroskaSpec>), TrackEntry(Master<MatroskaSpec>), AttachmentLink(u64), Audio(Master<MatroskaSpec>), BitDepth(u64), ChannelPositions(Vec<u8>), Channels(u64), OutputSamplingFrequency(f64), SamplingFrequency(f64), BlockAdditionMapping(Master<MatroskaSpec>), BlockAddIDExtraData(Vec<u8>), BlockAddIDName(String), BlockAddIDType(u64), BlockAddIDValue(u64), CodecDecodeAll(u64), CodecDelay(u64), CodecDownloadURL(String), CodecID(String), CodecInfoURL(String), CodecName(String), CodecPrivate(Vec<u8>), CodecSettings(String), ContentEncodings(Master<MatroskaSpec>), ContentEncoding(Master<MatroskaSpec>), ContentCompression(Master<MatroskaSpec>), ContentCompAlgo(u64), ContentCompSettings(Vec<u8>), ContentEncodingOrder(u64), ContentEncodingScope(u64), ContentEncodingType(u64), ContentEncryption(Master<MatroskaSpec>), ContentEncAESSettings(Master<MatroskaSpec>), AESSettingsCipherMode(u64), ContentEncAlgo(u64), ContentEncKeyID(Vec<u8>), ContentSigAlgo(u64), ContentSigHashAlgo(u64), ContentSigKeyID(Vec<u8>), ContentSignature(Vec<u8>), DefaultDecodedFieldDuration(u64), DefaultDuration(u64), FlagCommentary(u64), FlagDefault(u64), FlagEnabled(u64), FlagForced(u64), FlagHearingImpaired(u64), FlagLacing(u64), FlagOriginal(u64), FlagTextDescriptions(u64), FlagVisualImpaired(u64), Language(String), LanguageIETF(String), MaxBlockAdditionID(u64), MaxCache(u64), MinCache(u64), Name(String), SeekPreRoll(u64), TrackNumber(u64), TrackOffset(i64), TrackOperation(Master<MatroskaSpec>), TrackCombinePlanes(Master<MatroskaSpec>), TrackPlane(Master<MatroskaSpec>), TrackPlaneType(u64), TrackPlaneUID(u64), TrackJoinBlocks(Master<MatroskaSpec>), TrackJoinUID(u64), TrackOverlay(u64), TrackTimestampScale(f64), TrackTranslate(Master<MatroskaSpec>), TrackTranslateCodec(u64), TrackTranslateEditionUID(u64), TrackTranslateTrackID(Vec<u8>), TrackType(u64), TrackUID(u64), TrickMasterTrackSegmentUID(Vec<u8>), TrickMasterTrackUID(u64), TrickTrackFlag(u64), TrickTrackSegmentUID(Vec<u8>), TrickTrackUID(u64), Video(Master<MatroskaSpec>), AlphaMode(u64), AspectRatioType(u64), Colour(Master<MatroskaSpec>), BitsPerChannel(u64), CbSubsamplingHorz(u64), CbSubsamplingVert(u64), ChromaSitingHorz(u64), ChromaSitingVert(u64), ChromaSubsamplingHorz(u64), ChromaSubsamplingVert(u64), MasteringMetadata(Master<MatroskaSpec>), LuminanceMax(f64), LuminanceMin(f64), PrimaryBChromaticityX(f64), PrimaryBChromaticityY(f64), PrimaryGChromaticityX(f64), PrimaryGChromaticityY(f64), PrimaryRChromaticityX(f64), PrimaryRChromaticityY(f64), WhitePointChromaticityX(f64), WhitePointChromaticityY(f64), MatrixCoefficients(u64), MaxCLL(u64), MaxFALL(u64), Primaries(u64), Range(u64), TransferCharacteristics(u64), DisplayHeight(u64), DisplayUnit(u64), DisplayWidth(u64), FieldOrder(u64), FlagInterlaced(u64), FrameRate(f64), GammaValue(f64), OldStereoMode(u64), PixelCropBottom(u64), PixelCropLeft(u64), PixelCropRight(u64), PixelCropTop(u64), PixelHeight(u64), PixelWidth(u64), Projection(Master<MatroskaSpec>), ProjectionPosePitch(f64), ProjectionPoseRoll(f64), ProjectionPoseYaw(f64), ProjectionPrivate(Vec<u8>), ProjectionType(u64), StereoMode(u64), UncompressedFourCC(Vec<u8>), Crc32(Vec<u8>), Void(Vec<u8>), RawTag(u64, Vec<u8>),
}
Expand description

The Matroska specification

Variants are all of the different tag types defined by the Matroska spec.

Variants§

§

Ebml(Master<MatroskaSpec>)

§

EbmlVersion(u64)

§

EbmlReadVersion(u64)

§

EbmlMaxIdLength(u64)

§

EbmlMaxSizeLength(u64)

§

DocType(String)

§

DocTypeVersion(u64)

§

DocTypeReadVersion(u64)

§

DocTypeExtension(Master<MatroskaSpec>)

§

DocTypeExtensionName(String)

§

DocTypeExtensionVersion(u64)

§

Segment(Master<MatroskaSpec>)

§

Attachments(Master<MatroskaSpec>)

§

AttachedFile(Master<MatroskaSpec>)

§

FileData(Vec<u8>)

§

FileDescription(String)

§

FileMimeType(String)

§

FileName(String)

§

FileReferral(Vec<u8>)

§

FileUID(u64)

§

FileUsedEndTime(u64)

§

FileUsedStartTime(u64)

§

Chapters(Master<MatroskaSpec>)

§

EditionEntry(Master<MatroskaSpec>)

§

ChapterAtom(Master<MatroskaSpec>)

§

ChapProcess(Master<MatroskaSpec>)

§

ChapProcessCodecID(u64)

§

ChapProcessCommand(Master<MatroskaSpec>)

§

ChapProcessData(Vec<u8>)

§

ChapProcessTime(u64)

§

ChapProcessPrivate(Vec<u8>)

§

ChapterDisplay(Master<MatroskaSpec>)

§

ChapCountry(String)

§

ChapLanguage(String)

§

ChapLanguageIETF(String)

§

ChapString(String)

§

ChapterFlagEnabled(u64)

§

ChapterFlagHidden(u64)

§

ChapterPhysicalEquiv(u64)

§

ChapterSegmentEditionUID(u64)

§

ChapterSegmentUID(Vec<u8>)

§

ChapterStringUID(String)

§

ChapterTimeEnd(u64)

§

ChapterTimeStart(u64)

§

ChapterTrack(Master<MatroskaSpec>)

§

ChapterTrackUID(u64)

§

ChapterUID(u64)

§

EditionFlagDefault(u64)

§

EditionFlagHidden(u64)

§

EditionFlagOrdered(u64)

§

EditionUID(u64)

§

Cluster(Master<MatroskaSpec>)

§

BlockGroup(Master<MatroskaSpec>)

§

Block(Vec<u8>)

§

BlockAdditions(Master<MatroskaSpec>)

§

BlockMore(Master<MatroskaSpec>)

§

BlockAddID(u64)

§

BlockAdditional(Vec<u8>)

§

BlockDuration(u64)

§

BlockVirtual(Vec<u8>)

§

CodecState(Vec<u8>)

§

DiscardPadding(i64)

§

ReferenceBlock(i64)

§

ReferenceFrame(Master<MatroskaSpec>)

§

ReferenceOffset(u64)

§

ReferenceTimestamp(u64)

§

ReferencePriority(u64)

§

ReferenceVirtual(i64)

§

Slices(Master<MatroskaSpec>)

§

TimeSlice(Master<MatroskaSpec>)

§

BlockAdditionID(u64)

§

Delay(u64)

§

FrameNumber(u64)

§

LaceNumber(u64)

§

SliceDuration(u64)

§

EncryptedBlock(Vec<u8>)

§

Position(u64)

§

PrevSize(u64)

§

SilentTracks(Master<MatroskaSpec>)

§

SilentTrackNumber(u64)

§

SimpleBlock(Vec<u8>)

§

Timestamp(u64)

§

Cues(Master<MatroskaSpec>)

§

CuePoint(Master<MatroskaSpec>)

§

CueTime(u64)

§

CueTrackPositions(Master<MatroskaSpec>)

§

CueBlockNumber(u64)

§

CueClusterPosition(u64)

§

CueCodecState(u64)

§

CueDuration(u64)

§

CueReference(Master<MatroskaSpec>)

§

CueRefCluster(u64)

§

CueRefCodecState(u64)

§

CueRefNumber(u64)

§

CueRefTime(u64)

§

CueRelativePosition(u64)

§

CueTrack(u64)

§

Info(Master<MatroskaSpec>)

§

ChapterTranslate(Master<MatroskaSpec>)

§

ChapterTranslateCodec(u64)

§

ChapterTranslateEditionUID(u64)

§

ChapterTranslateID(Vec<u8>)

§

DateUTC(i64)

§

Duration(f64)

§

MuxingApp(String)

§

NextFilename(String)

§

NextUID(Vec<u8>)

§

PrevFilename(String)

§

PrevUID(Vec<u8>)

§

SegmentFamily(Vec<u8>)

§

SegmentFilename(String)

§

SegmentUID(Vec<u8>)

§

TimestampScale(u64)

§

Title(String)

§

WritingApp(String)

§

SeekHead(Master<MatroskaSpec>)

§

Seek(Master<MatroskaSpec>)

§

SeekID(Vec<u8>)

§

SeekPosition(u64)

§

Tags(Master<MatroskaSpec>)

§

Tag(Master<MatroskaSpec>)

§

SimpleTag(Master<MatroskaSpec>)

§

TagBinary(Vec<u8>)

§

TagDefault(u64)

§

TagDefaultBogus(u64)

§

TagLanguage(String)

§

TagLanguageIETF(String)

§

TagName(String)

§

TagString(String)

§

Targets(Master<MatroskaSpec>)

§

TagAttachmentUID(u64)

§

TagChapterUID(u64)

§

TagEditionUID(u64)

§

TagTrackUID(u64)

§

TargetType(String)

§

TargetTypeValue(u64)

§

Tracks(Master<MatroskaSpec>)

§

TrackEntry(Master<MatroskaSpec>)

§

Audio(Master<MatroskaSpec>)

§

BitDepth(u64)

§

ChannelPositions(Vec<u8>)

§

Channels(u64)

§

OutputSamplingFrequency(f64)

§

SamplingFrequency(f64)

§

BlockAdditionMapping(Master<MatroskaSpec>)

§

BlockAddIDExtraData(Vec<u8>)

§

BlockAddIDName(String)

§

BlockAddIDType(u64)

§

BlockAddIDValue(u64)

§

CodecDecodeAll(u64)

§

CodecDelay(u64)

§

CodecDownloadURL(String)

§

CodecID(String)

§

CodecInfoURL(String)

§

CodecName(String)

§

CodecPrivate(Vec<u8>)

§

CodecSettings(String)

§

ContentEncodings(Master<MatroskaSpec>)

§

ContentEncoding(Master<MatroskaSpec>)

§

ContentCompression(Master<MatroskaSpec>)

§

ContentCompAlgo(u64)

§

ContentCompSettings(Vec<u8>)

§

ContentEncodingOrder(u64)

§

ContentEncodingScope(u64)

§

ContentEncodingType(u64)

§

ContentEncryption(Master<MatroskaSpec>)

§

ContentEncAESSettings(Master<MatroskaSpec>)

§

AESSettingsCipherMode(u64)

§

ContentEncAlgo(u64)

§

ContentEncKeyID(Vec<u8>)

§

ContentSigAlgo(u64)

§

ContentSigHashAlgo(u64)

§

ContentSigKeyID(Vec<u8>)

§

ContentSignature(Vec<u8>)

§

DefaultDecodedFieldDuration(u64)

§

DefaultDuration(u64)

§

FlagCommentary(u64)

§

FlagDefault(u64)

§

FlagEnabled(u64)

§

FlagForced(u64)

§

FlagHearingImpaired(u64)

§

FlagLacing(u64)

§

FlagOriginal(u64)

§

FlagTextDescriptions(u64)

§

FlagVisualImpaired(u64)

§

Language(String)

§

LanguageIETF(String)

§

MaxBlockAdditionID(u64)

§

MaxCache(u64)

§

MinCache(u64)

§

Name(String)

§

SeekPreRoll(u64)

§

TrackNumber(u64)

§

TrackOffset(i64)

§

TrackOperation(Master<MatroskaSpec>)

§

TrackCombinePlanes(Master<MatroskaSpec>)

§

TrackPlane(Master<MatroskaSpec>)

§

TrackPlaneType(u64)

§

TrackPlaneUID(u64)

§

TrackJoinBlocks(Master<MatroskaSpec>)

§

TrackJoinUID(u64)

§

TrackOverlay(u64)

§

TrackTimestampScale(f64)

§

TrackTranslate(Master<MatroskaSpec>)

§

TrackTranslateCodec(u64)

§

TrackTranslateEditionUID(u64)

§

TrackTranslateTrackID(Vec<u8>)

§

TrackType(u64)

§

TrackUID(u64)

§

TrickMasterTrackSegmentUID(Vec<u8>)

§

TrickMasterTrackUID(u64)

§

TrickTrackFlag(u64)

§

TrickTrackSegmentUID(Vec<u8>)

§

TrickTrackUID(u64)

§

Video(Master<MatroskaSpec>)

§

AlphaMode(u64)

§

AspectRatioType(u64)

§

Colour(Master<MatroskaSpec>)

§

BitsPerChannel(u64)

§

CbSubsamplingHorz(u64)

§

CbSubsamplingVert(u64)

§

ChromaSitingHorz(u64)

§

ChromaSitingVert(u64)

§

ChromaSubsamplingHorz(u64)

§

ChromaSubsamplingVert(u64)

§

MasteringMetadata(Master<MatroskaSpec>)

§

LuminanceMax(f64)

§

LuminanceMin(f64)

§

PrimaryBChromaticityX(f64)

§

PrimaryBChromaticityY(f64)

§

PrimaryGChromaticityX(f64)

§

PrimaryGChromaticityY(f64)

§

PrimaryRChromaticityX(f64)

§

PrimaryRChromaticityY(f64)

§

WhitePointChromaticityX(f64)

§

WhitePointChromaticityY(f64)

§

MatrixCoefficients(u64)

§

MaxCLL(u64)

§

MaxFALL(u64)

§

Primaries(u64)

§

Range(u64)

§

TransferCharacteristics(u64)

§

DisplayHeight(u64)

§

DisplayUnit(u64)

§

DisplayWidth(u64)

§

FieldOrder(u64)

§

FlagInterlaced(u64)

§

FrameRate(f64)

§

GammaValue(f64)

§

OldStereoMode(u64)

§

PixelCropBottom(u64)

§

PixelCropLeft(u64)

§

PixelCropRight(u64)

§

PixelCropTop(u64)

§

PixelHeight(u64)

§

PixelWidth(u64)

§

Projection(Master<MatroskaSpec>)

§

ProjectionPosePitch(f64)

§

ProjectionPoseRoll(f64)

§

ProjectionPoseYaw(f64)

§

ProjectionPrivate(Vec<u8>)

§

ProjectionType(u64)

§

StereoMode(u64)

§

UncompressedFourCC(Vec<u8>)

§

Crc32(Vec<u8>)

§

Void(Vec<u8>)

§

RawTag(u64, Vec<u8>)

Trait Implementations§

Source§

impl Clone for MatroskaSpec

Source§

fn clone(&self) -> MatroskaSpec

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 Debug for MatroskaSpec

Source§

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

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

impl EbmlSpecification<MatroskaSpec> for MatroskaSpec

Source§

fn get_tag_data_type(id: u64) -> Option<TagDataType>

Pulls the data type for a tag from the spec, based on the tag id. Read more
Source§

fn get_path_by_id(id: u64) -> &'static [PathPart]

Gets the schema path of a specific tag. Read more
Source§

fn get_unsigned_int_tag(id: u64, data: u64) -> Option<MatroskaSpec>

Creates an unsigned integer type tag from the spec. Read more
Source§

fn get_signed_int_tag(id: u64, data: i64) -> Option<MatroskaSpec>

Creates a signed integer type tag from the spec. Read more
Source§

fn get_utf8_tag(id: u64, data: String) -> Option<MatroskaSpec>

Creates a utf8 type tag from the spec. Read more
Source§

fn get_binary_tag(id: u64, data: &[u8]) -> Option<MatroskaSpec>

Creates a binary type tag from the spec. Read more
Source§

fn get_float_tag(id: u64, data: f64) -> Option<MatroskaSpec>

Creates a float type tag from the spec. Read more
Source§

fn get_master_tag(id: u64, data: Master<MatroskaSpec>) -> Option<MatroskaSpec>

Creates a master type tag from the spec. Read more
Source§

fn get_raw_tag(id: u64, data: &[u8]) -> MatroskaSpec

Creates a tag that does not conform to the spec. Read more
Source§

fn get_tag_id(item: &T) -> u64

Gets the id of a specific tag variant. Read more
Source§

fn get_path_by_tag(item: &T) -> &'static [PathPart]

Gets the schema path of a specific tag variant. Read more
Source§

impl EbmlTag<MatroskaSpec> for MatroskaSpec

Source§

fn get_id(&self) -> u64

Gets the id of self. Read more
Source§

fn as_unsigned_int(&self) -> Option<&u64>

Gets a reference to the data contained in self as an unsigned integer. Read more
Source§

fn as_signed_int(&self) -> Option<&i64>

Gets a reference to the data contained in self as an integer. Read more
Source§

fn as_utf8(&self) -> Option<&str>

Gets a reference to the data contained in self as string slice. Read more
Source§

fn as_binary(&self) -> Option<&[u8]>

Gets a reference to the data contained in self as binary data. Read more
Source§

fn as_float(&self) -> Option<&f64>

Gets a reference to the data contained in self as float data. Read more
Source§

fn as_master(&self) -> Option<&Master<MatroskaSpec>>

Gets a reference to master data contained in self. Read more
Source§

impl<'a> From<Block<'a>> for MatroskaSpec

Source§

fn from(block: Block<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<SimpleBlock<'a>> for MatroskaSpec

Source§

fn from(simple_block: SimpleBlock<'_>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MatroskaSpec

Source§

fn eq(&self, other: &MatroskaSpec) -> 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<'a> TryFrom<&'a MatroskaSpec> for Block<'a>

Source§

type Error = WebmCoercionError

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

fn try_from(value: &'a MatroskaSpec) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a MatroskaSpec> for SimpleBlock<'a>

Source§

type Error = WebmCoercionError

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

fn try_from(value: &'a MatroskaSpec) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for MatroskaSpec

Auto Trait Implementations§

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, 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> 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.