Enum PassAction

Source
pub enum PassAction {
    Nothing,
    Clear(ClearData),
}

Variants§

§

Nothing

§

Clear(ClearData)

Trait Implementations§

Source§

impl Clone for PassAction

Source§

fn clone(&self) -> PassAction

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 PassAction

Source§

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

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

impl<'de> Deserialize<'de> for PassAction

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl IoLoad for PassAction

Source§

fn load_own_extensions() -> impl Iterator<Item = &'static str>

Dedicated file extension to load the value. ex png, jpeg for image Read more
Source§

fn load_from_bytes_with_own_extension( data: &[u8], path: &str, extension: &str, ) -> Result<Self, IoError>

Source§

fn load_from_bytes_with_own_extension_pathless( data: &[u8], extension: &str, ) -> Result<Self, IoErrorKind>

Source§

const CAN_BE_LOADED_FROM_TEXT: bool = false

Source§

fn load_from_str_with_own_extension( data: &str, path: &str, extension: &str, ) -> Result<Self, IoError>

Source§

fn load_from_str_with_own_extension_pathless( data: &str, extension: &str, ) -> Result<Self, IoErrorKind>

Source§

fn can_open_own_extension(extension: &str) -> bool

Don’t include the markup language extension like json or ron
Source§

fn load_extensions() -> impl Iterator<Item = &'static str>

Also include the markup language extension like json or ron
Source§

fn can_open_extension(extension: &str) -> bool

Also include the markup language extension like json or ron
Source§

fn load_from<Fs>(path: &str, fs: &mut Fs) -> Result<Self, IoError>
where Fs: IoFsRead,

Source§

fn load_from_with_extension<Fs>( path: &str, extension: &str, fs: &mut Fs, ) -> Result<Self, IoError>
where Fs: IoFsRead,

Source§

fn load_from_reader<R>(r: R, path: &str) -> Result<Self, IoError>
where R: Read,

Support bytes and str
Source§

fn load_from_bytes(data: &[u8], path: &str) -> Result<Self, IoError>

Support bytes and str
Source§

fn load_from_bytes_with_extension( data: &[u8], path: &str, extension: &str, ) -> Result<Self, IoError>

Support bytes and str
Source§

impl IoSave for PassAction

Source§

fn save_own_extensions() -> impl Iterator<Item = &'static str>

Dedicated file extension to save the value. ex png, jpeg for image Read more
Source§

fn save_to_with_own_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
where W: Write, Fs: IoFsWrite,

Source§

fn save_to_with_own_extension_pathless<W, Fs>( &self, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoErrorKind>
where W: Write, Fs: IoFsWrite,

Source§

fn save_default_extension() -> Option<&'static str>

When saving, if the extension is missing, the file will use this extension by default
Source§

fn can_save_own_extension(extension: &str) -> bool

Don’t include the markup language extension like json or ron
Source§

fn save_extensions() -> impl Iterator<Item = &'static str>

Also include the markup language extension like json or ron
Source§

fn can_save_extension(extension: &str) -> bool

Also include the markup language extension like json or ron
Source§

fn save_to<Fs>(&self, path: &str, fs: &mut Fs) -> Result<(), IoError>
where Fs: IoFsWrite,

Source§

fn save_to_with_extension<Fs>( &self, path: &str, extension: &str, fs: &mut Fs, ) -> Result<(), IoError>
where Fs: IoFsWrite,

Source§

fn save_with_reader<W, Fs>( &self, path: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
where W: Write, Fs: IoFsWrite,

Source§

fn save_with_reader_and_extension<W, Fs>( &self, path: &str, extension: &str, w: W, fs: &mut Fs, ) -> Result<(), IoError>
where W: Write, Fs: IoFsWrite,

Source§

impl PartialEq for PassAction

Source§

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

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for PassAction

Source§

impl StructuralPartialEq for PassAction

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<Src, Dest> CastFrom<Dest> for Src
where Dest: CastInto<Src>,

Source§

fn cast_from(value: Dest) -> Src

Source§

impl<Src, Dest> CastRangeFrom<Dest> for Src
where Dest: CastRangeInto<Src>,

Source§

fn cast_range_from(value: Dest) -> Src

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> LoadToDisk for T
where T: IoLoad + ?Sized,

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SaveToDisk for T
where T: IoSave + ?Sized,

Source§

fn save_to_disk(&self, path: &str) -> Result<(), IoError>

Source§

impl<T> SplatCoord1 for T
where T: Copy,

Source§

fn splat1(self) -> Vector<Self, 1>

Source§

impl<T> SplatCoord2 for T
where T: Copy,

Source§

fn splat2(self) -> Vector<Self, 2>

Source§

impl<T> SplatCoord3 for T
where T: Copy,

Source§

fn splat3(self) -> Vector<Self, 3>

Source§

impl<T> SplatCoord4 for T
where T: Copy,

Source§

fn splat4(self) -> Vector<Self, 4>

Source§

impl<T> ToDebug for T
where T: Debug,

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,