Skip to main content

Output

Struct Output 

Source
pub struct Output {
    pub prefab: Option<PrefabRow>,
    pub plan_index: u64,
    pub key: String,
    pub kind: OutputKind,
    pub unit: Option<String>,
    pub serialized_file: RawStr,
    pub path_id: i64,
    pub sprite: Option<usize>,
    pub bytes: Vec<u8>,
    pub md5: [u8; 16],
    pub picture: Option<Picture>,
    pub members: Vec<MemberPath>,
    /* private fields */
}
Expand description

An output the cut made, handed to the sink as it is made.

Fields§

§prefab: Option<PrefabRow>§plan_index: u64

Stable planning ordinal, independent of export grouping.

§key: String

Its key.

§kind: OutputKind

Its kind.

§unit: Option<String>

Its unit key (4.5), or none.

§serialized_file: RawStr

Its object’s SerializedFile, by its stored name.

§path_id: i64

Its object’s path id (an atlas’s outputs, the MonoBehaviour’s; a Sprite’s, the Sprite’s).

§sprite: Option<usize>

An atlas sprite’s index in mSprites.

§bytes: Vec<u8>

The file: a PNG, or the atlas JSON.

§md5: [u8; 16]

The bytes’ MD5.

§picture: Option<Picture>

A PNG’s image; none for an atlas JSON.

§members: Vec<MemberPath>

Its archive member paths, expanded at the plan.

Trait Implementations§

Source§

impl Debug for Output

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Output

§

impl !RefUnwindSafe for Output

§

impl !UnwindSafe for Output

§

impl Forget for Output

§

impl Move for Output

§

impl Send for Output

§

impl Sync for Output

§

impl Unpin for Output

§

impl UnsafeUnpin for Output

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.