godot_core::classes::image

Struct Format

Source
pub struct Format { /* private fields */ }

Implementations§

Source§

impl Format

Source

pub const L8: Format

Godot enumerator name: FORMAT_L8

Source

pub const LA8: Format

Godot enumerator name: FORMAT_LA8

Source

pub const R8: Format

Godot enumerator name: FORMAT_R8

Source

pub const RG8: Format

Godot enumerator name: FORMAT_RG8

Source

pub const RGB8: Format

Godot enumerator name: FORMAT_RGB8

Source

pub const RGBA8: Format

Godot enumerator name: FORMAT_RGBA8

Source

pub const RGBA4444: Format

Godot enumerator name: FORMAT_RGBA4444

Source

pub const RGB565: Format

Godot enumerator name: FORMAT_RGB565

Source

pub const RF: Format

Godot enumerator name: FORMAT_RF

Source

pub const RGF: Format

Godot enumerator name: FORMAT_RGF

Source

pub const RGBF: Format

Godot enumerator name: FORMAT_RGBF

Source

pub const RGBAF: Format

Godot enumerator name: FORMAT_RGBAF

Source

pub const RH: Format

Godot enumerator name: FORMAT_RH

Source

pub const RGH: Format

Godot enumerator name: FORMAT_RGH

Source

pub const RGBH: Format

Godot enumerator name: FORMAT_RGBH

Source

pub const RGBAH: Format

Godot enumerator name: FORMAT_RGBAH

Source

pub const RGBE9995: Format

Godot enumerator name: FORMAT_RGBE9995

Source

pub const DXT1: Format

Godot enumerator name: FORMAT_DXT1

Source

pub const DXT3: Format

Godot enumerator name: FORMAT_DXT3

Source

pub const DXT5: Format

Godot enumerator name: FORMAT_DXT5

Source

pub const RGTC_R: Format

Godot enumerator name: FORMAT_RGTC_R

Source

pub const RGTC_RG: Format

Godot enumerator name: FORMAT_RGTC_RG

Source

pub const BPTC_RGBA: Format

Godot enumerator name: FORMAT_BPTC_RGBA

Source

pub const BPTC_RGBF: Format

Godot enumerator name: FORMAT_BPTC_RGBF

Source

pub const BPTC_RGBFU: Format

Godot enumerator name: FORMAT_BPTC_RGBFU

Source

pub const ETC: Format

Godot enumerator name: FORMAT_ETC

Source

pub const ETC2_R11: Format

Godot enumerator name: FORMAT_ETC2_R11

Source

pub const ETC2_R11S: Format

Godot enumerator name: FORMAT_ETC2_R11S

Source

pub const ETC2_RG11: Format

Godot enumerator name: FORMAT_ETC2_RG11

Source

pub const ETC2_RG11S: Format

Godot enumerator name: FORMAT_ETC2_RG11S

Source

pub const ETC2_RGB8: Format

Godot enumerator name: FORMAT_ETC2_RGB8

Source

pub const ETC2_RGBA8: Format

Godot enumerator name: FORMAT_ETC2_RGBA8

Source

pub const ETC2_RGB8A1: Format

Godot enumerator name: FORMAT_ETC2_RGB8A1

Source

pub const ETC2_RA_AS_RG: Format

Godot enumerator name: FORMAT_ETC2_RA_AS_RG

Source

pub const DXT5_RA_AS_RG: Format

Godot enumerator name: FORMAT_DXT5_RA_AS_RG

Source

pub const ASTC_4x4: Format

Godot enumerator name: FORMAT_ASTC_4x4

Source

pub const ASTC_4x4_HDR: Format

Godot enumerator name: FORMAT_ASTC_4x4_HDR

Source

pub const ASTC_8x8: Format

Godot enumerator name: FORMAT_ASTC_8x8

Source

pub const ASTC_8x8_HDR: Format

Godot enumerator name: FORMAT_ASTC_8x8_HDR

Source

pub const MAX: Format

Godot enumerator name: FORMAT_MAX

Trait Implementations§

Source§

impl Clone for Format

Source§

fn clone(&self) -> Format

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 Format

Source§

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

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

impl EngineEnum for Format

Source§

fn try_from_ord(ord: i32) -> Option<Self>

Source§

fn ord(self) -> i32

Ordinal value of the enumerator, as specified in Godot. This is not necessarily unique.
Source§

fn as_str(&self) -> &'static str

Source§

fn godot_name(&self) -> &'static str

Source§

fn from_ord(ord: i32) -> Self

Source§

impl FromGodot for Format

Source§

fn try_from_godot(via: Self::Via) -> Result<Self, ConvertError>

Converts the Godot representation to this type, returning Err on failure.
Source§

fn from_godot(via: Self::Via) -> Self

⚠️ Converts the Godot representation to this type. Read more
Source§

fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>

Performs the conversion from a [Variant], returning Err on failure.
Source§

fn from_variant(variant: &Variant) -> Self

⚠️ Performs the conversion from a [Variant]. Read more
Source§

impl GodotConvert for Format

Source§

type Via = i32

The type through which Self is represented in Godot.
Source§

impl Hash for Format

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IndexEnum for Format

Source§

const ENUMERATOR_COUNT: usize = 39usize

Number of distinct enumerators in the enum. Read more
Source§

fn to_index(self) -> usize

Converts the enumerator to usize, which can be used as an array index. Read more
Source§

impl PartialEq for Format

Source§

fn eq(&self, other: &Format) -> 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 ToGodot for Format

Source§

type ToVia<'v> = i32

Target type of to_godot(), which can differ from Via for pass-by-reference types. Read more
Source§

fn to_godot(&self) -> Self::ToVia<'_>

Converts this type to the Godot type by reference, usually by cloning.
Source§

fn to_variant(&self) -> Variant

Converts this type to a [Variant].
Source§

impl Copy for Format

Source§

impl Eq for Format

Source§

impl StructuralPartialEq for Format

Auto Trait Implementations§

§

impl Freeze for Format

§

impl RefUnwindSafe for Format

§

impl Send for Format

§

impl Sync for Format

§

impl Unpin for Format

§

impl UnwindSafe for Format

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 u8)

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