Enum cbindgen::Style
[−]
[src]
pub enum Style { Both, Tag, Type, }
A style of Style to use when generating structs and enums.
Variants
Both
Tag
Type
Methods
impl Style
[src]
pub fn generate_tag(&self) -> bool
[src]
pub fn generate_typedef(&self) -> bool
[src]
Trait Implementations
impl Debug for Style
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Style
[src]
fn clone(&self) -> Style
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Style
[src]
fn eq(&self, __arg_0: &Style) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl FromStr for Style
[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Style, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more
impl<'de> Deserialize<'de> for Style
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more