Struct ScriptInfo

Source
pub struct ScriptInfo {
    pub name: &'static str,
    pub version: u16,
    pub uint8x2: Section,
    pub uint8str: Section,
    pub string: Section,
    pub encstr: Section,
    pub uint16x4: Section,
    pub optunenc: u8,
    pub deckey: u8,
    pub nameopcode: u8,
}
Available on crate feature circus only.

Fields§

§name: &'static str§version: u16§uint8x2: Section

[op: byte] [arg1: uint8] [arg2: uint8]

§uint8str: Section

[op: byte] [arg1: uint8] [arg2: string]

§string: Section

[op: byte] [arg1: string]

§encstr: Section

[op: byte] [arg1: encstr]

§uint16x4: Section

[op: byte] [arg1: uint16] [arg2: uint16] [arg3: uint16] [arg4: uint16]

§optunenc: u8

the opcode for unencrypted strings in scene text

§deckey: u8§nameopcode: u8

Implementations§

Source§

impl ScriptInfo

Source

pub const fn new( name: &'static str, version: u16, uint8x2: (u8, u8), uint8str: (u8, u8), string: (u8, u8), encstr: (u8, u8), uint16x4: (u8, u8), optunenc: u8, deckey: u8, nameopcode: u8, ) -> Self

Source

pub fn query(name: &str) -> Option<&'static ScriptInfo>

Source

pub fn query_by_version(version: u16) -> Option<&'static ScriptInfo>

Trait Implementations§

Source§

impl Debug for ScriptInfo

Source§

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

Formats the value using the given formatter. Read more

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> 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> 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> 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 = 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> AnyDebug for T
where T: Debug + Any,

Source§

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