Enum oo_bindgen::model::InitializerType
source · #[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<InitializerType> for InitializerType
impl PartialEq<InitializerType> for InitializerType
source§fn eq(&self, other: &InitializerType) -> bool
fn eq(&self, other: &InitializerType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.