Struct svd2rust::config::IdentFormat
source · pub struct IdentFormat {
pub case: Option<Case>,
pub prefix: String,
pub suffix: String,
}
Fields§
§case: Option<Case>
§prefix: String
§suffix: String
Implementations§
source§impl IdentFormat
impl IdentFormat
pub fn case(self, case: Case) -> Self
pub fn constant_case(self) -> Self
pub fn pascal_case(self) -> Self
pub fn scake_case(self) -> Self
pub fn prefix(self, prefix: &str) -> Self
pub fn suffix(self, suffix: &str) -> Self
Trait Implementations§
source§impl Clone for IdentFormat
impl Clone for IdentFormat
source§fn clone(&self) -> IdentFormat
fn clone(&self) -> IdentFormat
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 IdentFormat
impl Debug for IdentFormat
source§impl Default for IdentFormat
impl Default for IdentFormat
source§fn default() -> IdentFormat
fn default() -> IdentFormat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IdentFormatwhere
IdentFormat: Default,
impl<'de> Deserialize<'de> for IdentFormatwhere
IdentFormat: Default,
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 PartialEq for IdentFormat
impl PartialEq for IdentFormat
source§fn eq(&self, other: &IdentFormat) -> bool
fn eq(&self, other: &IdentFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IdentFormat
impl StructuralEq for IdentFormat
impl StructuralPartialEq for IdentFormat
Auto Trait Implementations§
impl RefUnwindSafe for IdentFormat
impl Send for IdentFormat
impl Sync for IdentFormat
impl Unpin for IdentFormat
impl UnwindSafe for IdentFormat
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.