#[repr(u32)]pub enum FunctionSource {
OwnModule = 0,
NamedModule = 1,
}
Expand description
Source module for a function
Variants§
OwnModule = 0
Launch a function in the module itself
NamedModule = 1
Launch a function from a separate named module
Trait Implementations§
Source§impl CheckedBitPattern for FunctionSource
impl CheckedBitPattern for FunctionSource
Source§type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for FunctionSource
impl Clone for FunctionSource
Source§fn clone(&self) -> FunctionSource
fn clone(&self) -> FunctionSource
Returns a duplicate 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 FunctionSource
impl Debug for FunctionSource
Source§impl From<FunctionSource> for u32
impl From<FunctionSource> for u32
Source§fn from(enum_value: FunctionSource) -> Self
fn from(enum_value: FunctionSource) -> Self
Converts to this type from the input type.
Source§impl Hash for FunctionSource
impl Hash for FunctionSource
Source§impl PartialEq for FunctionSource
impl PartialEq for FunctionSource
Source§impl TryFrom<u32> for FunctionSource
impl TryFrom<u32> for FunctionSource
Source§type Error = TryFromPrimitiveError<FunctionSource>
type Error = TryFromPrimitiveError<FunctionSource>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FunctionSource
impl TryFromPrimitive for FunctionSource
impl Copy for FunctionSource
impl Eq for FunctionSource
impl NoUninit for FunctionSource
impl StructuralPartialEq for FunctionSource
Auto Trait Implementations§
impl Freeze for FunctionSource
impl RefUnwindSafe for FunctionSource
impl Send for FunctionSource
impl Sync for FunctionSource
impl Unpin for FunctionSource
impl UnwindSafe for FunctionSource
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