Enum dcso3::trigger::Modulation
source · #[repr(u8)]pub enum Modulation {
AM = 0,
FM = 1,
}
Variants§
Trait Implementations§
source§impl Clone for Modulation
impl Clone for Modulation
source§fn clone(&self) -> Modulation
fn clone(&self) -> Modulation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Modulation
impl Debug for Modulation
source§impl<'de> Deserialize<'de> for Modulation
impl<'de> Deserialize<'de> for Modulation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'lua> FromLua<'lua> for Modulation
impl<'lua> FromLua<'lua> for Modulation
source§impl Hash for Modulation
impl Hash for Modulation
source§impl<'lua> IntoLua<'lua> for Modulation
impl<'lua> IntoLua<'lua> for Modulation
source§impl Ord for Modulation
impl Ord for Modulation
source§fn cmp(&self, other: &Modulation) -> Ordering
fn cmp(&self, other: &Modulation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Modulation
impl PartialEq for Modulation
source§fn eq(&self, other: &Modulation) -> bool
fn eq(&self, other: &Modulation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Modulation
impl PartialOrd for Modulation
source§fn partial_cmp(&self, other: &Modulation) -> Option<Ordering>
fn partial_cmp(&self, other: &Modulation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Modulation
impl Serialize for Modulation
impl Copy for Modulation
impl Eq for Modulation
impl StructuralEq for Modulation
impl StructuralPartialEq for Modulation
Auto Trait Implementations§
impl RefUnwindSafe for Modulation
impl Send for Modulation
impl Sync for Modulation
impl Unpin for Modulation
impl UnwindSafe for Modulation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, Error>
source§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.
unsafe fn push_into_stack_multi(self, lua: &'lua Lua) -> Result<i32, Error>
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.