Enum Tag

Source
pub enum Tag<'a> {
Show 57 variants ExportAssets(ExportAssets<'a>), ScriptLimits { max_recursion_depth: u16, timeout_in_seconds: u16, }, ShowFrame, Protect(Option<&'a SwfStr>), CsmTextSettings(CsmTextSettings), DebugId(DebugId), DefineBinaryData(DefineBinaryData<'a>), DefineBits { id: CharacterId, jpeg_data: &'a [u8], }, DefineBitsJpeg2 { id: CharacterId, jpeg_data: &'a [u8], }, DefineBitsJpeg3(DefineBitsJpeg3<'a>), DefineBitsLossless(DefineBitsLossless<'a>), DefineButton(Box<Button<'a>>), DefineButton2(Box<Button<'a>>), DefineButtonColorTransform(ButtonColorTransform), DefineButtonSound(Box<ButtonSounds>), DefineEditText(Box<EditText<'a>>), DefineFont(Box<FontV1>), DefineFont2(Box<Font<'a>>), DefineFont4(Font4<'a>), DefineFontAlignZones { id: CharacterId, thickness: FontThickness, zones: Vec<FontAlignZone>, }, DefineFontInfo(Box<FontInfo<'a>>), DefineFontName { id: CharacterId, name: &'a SwfStr, copyright_info: &'a SwfStr, }, DefineMorphShape(Box<DefineMorphShape>), DefineScalingGrid { id: CharacterId, splitter_rect: Rectangle<Twips>, }, DefineShape(Shape), DefineSound(Box<Sound<'a>>), DefineSprite(Sprite<'a>), DefineText(Box<Text>), DefineText2(Box<Text>), DefineVideoStream(DefineVideoStream), DoAbc(&'a [u8]), DoAbc2(DoAbc2<'a>), DoAction(DoAction<'a>), DoInitAction { id: CharacterId, action_data: &'a [u8], }, EnableDebugger(&'a SwfStr), EnableTelemetry { password_hash: &'a [u8], }, End, Metadata(&'a SwfStr), ImportAssets { url: &'a SwfStr, imports: Vec<ExportedAsset<'a>>, }, JpegTables(JpegTables<'a>), NameCharacter(NameCharacter<'a>), SetBackgroundColor(SetBackgroundColor), SetTabIndex { depth: Depth, tab_index: u16, }, SoundStreamBlock(SoundStreamBlock<'a>), SoundStreamHead(Box<SoundStreamHead>), SoundStreamHead2(Box<SoundStreamHead>), StartSound(StartSound), StartSound2 { class_name: &'a SwfStr, sound_info: Box<SoundInfo>, }, SymbolClass(Vec<SymbolClassLink<'a>>), PlaceObject(Box<PlaceObject<'a>>), RemoveObject(RemoveObject), VideoFrame(VideoFrame<'a>), FileAttributes(FileAttributes), FrameLabel(FrameLabel<'a>), DefineSceneAndFrameLabelData(DefineSceneAndFrameLabelData<'a>), ProductInfo(ProductInfo), Unknown { tag_code: u16, data: &'a [u8], },
}
Expand description

Represents a tag in an SWF file.

The SWF format is made up of a stream of tags. Each tag either defines a character (Graphic, Sound, MovieClip), or places/modifies an instance of these characters on the display list.

Variants§

§

ExportAssets(ExportAssets<'a>)

§

ScriptLimits

Fields

§max_recursion_depth: u16
§timeout_in_seconds: u16
§

ShowFrame

§

Protect(Option<&'a SwfStr>)

§

CsmTextSettings(CsmTextSettings)

§

DebugId(DebugId)

§

DefineBinaryData(DefineBinaryData<'a>)

§

DefineBits

Fields

§jpeg_data: &'a [u8]
§

DefineBitsJpeg2

Fields

§jpeg_data: &'a [u8]
§

DefineBitsJpeg3(DefineBitsJpeg3<'a>)

§

DefineBitsLossless(DefineBitsLossless<'a>)

§

DefineButton(Box<Button<'a>>)

§

DefineButton2(Box<Button<'a>>)

§

DefineButtonColorTransform(ButtonColorTransform)

§

DefineButtonSound(Box<ButtonSounds>)

§

DefineEditText(Box<EditText<'a>>)

§

DefineFont(Box<FontV1>)

§

DefineFont2(Box<Font<'a>>)

§

DefineFont4(Font4<'a>)

§

DefineFontAlignZones

§

DefineFontInfo(Box<FontInfo<'a>>)

§

DefineFontName

Fields

§name: &'a SwfStr
§copyright_info: &'a SwfStr
§

DefineMorphShape(Box<DefineMorphShape>)

§

DefineScalingGrid

Fields

§splitter_rect: Rectangle<Twips>
§

DefineShape(Shape)

§

DefineSound(Box<Sound<'a>>)

§

DefineSprite(Sprite<'a>)

§

DefineText(Box<Text>)

§

DefineText2(Box<Text>)

§

DefineVideoStream(DefineVideoStream)

§

DoAbc(&'a [u8])

§

DoAbc2(DoAbc2<'a>)

§

DoAction(DoAction<'a>)

§

DoInitAction

Fields

§action_data: &'a [u8]
§

EnableDebugger(&'a SwfStr)

§

EnableTelemetry

Fields

§password_hash: &'a [u8]
§

End

§

Metadata(&'a SwfStr)

§

ImportAssets

Fields

§url: &'a SwfStr
§imports: Vec<ExportedAsset<'a>>
§

JpegTables(JpegTables<'a>)

§

NameCharacter(NameCharacter<'a>)

§

SetBackgroundColor(SetBackgroundColor)

§

SetTabIndex

Fields

§depth: Depth
§tab_index: u16
§

SoundStreamBlock(SoundStreamBlock<'a>)

§

SoundStreamHead(Box<SoundStreamHead>)

§

SoundStreamHead2(Box<SoundStreamHead>)

§

StartSound(StartSound)

§

StartSound2

Fields

§class_name: &'a SwfStr
§sound_info: Box<SoundInfo>
§

SymbolClass(Vec<SymbolClassLink<'a>>)

§

PlaceObject(Box<PlaceObject<'a>>)

§

RemoveObject(RemoveObject)

§

VideoFrame(VideoFrame<'a>)

§

FileAttributes(FileAttributes)

§

FrameLabel(FrameLabel<'a>)

§

DefineSceneAndFrameLabelData(DefineSceneAndFrameLabelData<'a>)

§

ProductInfo(ProductInfo)

§

Unknown

Fields

§tag_code: u16
§data: &'a [u8]

Trait Implementations§

Source§

impl<'a> Debug for Tag<'a>

Source§

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

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

impl<'a> PartialEq for Tag<'a>

Source§

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

Auto Trait Implementations§

§

impl<'a> Freeze for Tag<'a>

§

impl<'a> RefUnwindSafe for Tag<'a>

§

impl<'a> Send for Tag<'a>

§

impl<'a> Sync for Tag<'a>

§

impl<'a> Unpin for Tag<'a>

§

impl<'a> UnwindSafe for Tag<'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> 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, 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.