#[non_exhaustive]pub enum InitializerType {
Normal,
Static,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
Normal initializers map to actual language constructors A name is still required as some languages (e.g. C) don’t support associated constructors and require free-standing functions instead
Static
Static initializers are mapped to static methods in languages that support them (e.g. C++, Java, C#)
Trait Implementations§
Source§impl Clone for InitializerType
impl Clone for InitializerType
Source§fn clone(&self) -> InitializerType
fn clone(&self) -> InitializerType
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 InitializerType
impl Debug for InitializerType
Source§impl PartialEq for InitializerType
impl PartialEq for InitializerType
impl Copy for InitializerType
impl Eq for InitializerType
impl StructuralPartialEq for InitializerType
Auto Trait Implementations§
impl Freeze for InitializerType
impl RefUnwindSafe for InitializerType
impl Send for InitializerType
impl Sync for InitializerType
impl Unpin for InitializerType
impl UnwindSafe for InitializerType
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