Enum cbindgen::LineEndingStyle
source · pub enum LineEndingStyle {
LF,
CR,
CRLF,
Native,
}
Expand description
Controls what type of line endings are used in the generated code.
Variants§
LF
Use Unix-style linefeed characters
CR
Use classic Mac-style carriage-return characters
CRLF
Use Windows-style carriage-return and linefeed characters
Native
Use the native mode for the platform: CRLF on Windows, LF everywhere else.
Implementations§
Trait Implementations§
source§impl Clone for LineEndingStyle
impl Clone for LineEndingStyle
source§fn clone(&self) -> LineEndingStyle
fn clone(&self) -> LineEndingStyle
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 LineEndingStyle
impl Debug for LineEndingStyle
source§impl Default for LineEndingStyle
impl Default for LineEndingStyle
source§impl<'de> Deserialize<'de> for LineEndingStyle
impl<'de> Deserialize<'de> for LineEndingStyle
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 FromStr for LineEndingStyle
impl FromStr for LineEndingStyle
impl Copy for LineEndingStyle
Auto Trait Implementations§
impl RefUnwindSafe for LineEndingStyle
impl Send for LineEndingStyle
impl Sync for LineEndingStyle
impl Unpin for LineEndingStyle
impl UnwindSafe for LineEndingStyle
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