[−][src]Struct case_style::CaseStyle
Fields
tokens: Tokens
original: String
case_info: Option<String>
Methods
impl CaseStyle
[src]
pub fn from_snakecase<S: AsRef<str>>(input: S) -> CaseStyle
[src]
uses formats::SnakeCase Default trait to convert to CaseStyle
pub fn to_snakecase(self) -> String
[src]
uses formats::SnakeCase Default trait to convert to String
impl CaseStyle
[src]
pub fn from_camelcase<S: AsRef<str>>(input: S) -> CaseStyle
[src]
uses formats::CamelCase Default trait to convert to CaseStyle
pub fn to_camelcase(self) -> String
[src]
uses formats::CamelCase Default trait to convert to String
impl CaseStyle
[src]
pub fn from_kebabcase<S: AsRef<str>>(input: S) -> CaseStyle
[src]
uses formats::KebabCase Default trait to convert to CaseStyle
pub fn to_kebabcase(self) -> String
[src]
uses formats::KebabCase Default trait to convert to String
impl CaseStyle
[src]
pub fn from_lowercase_spacecase<S: AsRef<str>>(input: S) -> CaseStyle
[src]
uses formats::LowercaseSpace Default trait to convert to CaseStyle
pub fn to_lowercase_spacecase(self) -> String
[src]
uses formats::LowercaseSpace Default trait to convert to String
impl CaseStyle
[src]
pub fn from_pascalcase<S: AsRef<str>>(input: S) -> CaseStyle
[src]
uses formats::PascalCase Default trait to convert to CaseStyle
pub fn to_pascalcase(self) -> String
[src]
uses formats::PascalCase Default trait to convert to String
impl CaseStyle
[src]
pub fn from_constantcase<S: AsRef<str>>(input: S) -> CaseStyle
[src]
uses formats::ConstantCase Default trait to convert to CaseStyle
pub fn to_constantcase(self) -> String
[src]
uses formats::ConstantCase Default trait to convert to String
impl CaseStyle
[src]
pub fn from_sentencecase<S: AsRef<str>>(input: S) -> CaseStyle
[src]
uses formats::SentenceCase Default trait to convert to CaseStyle
pub fn to_sentencecase(self) -> String
[src]
uses formats::SentenceCase Default trait to convert to String
impl CaseStyle
[src]
pub fn decode<T: Case, S: AsRef<str>>(case: &T, input: S) -> CaseStyle
[src]
Use Case to convert string to CaseStyle object
pub fn encode<T: Case>(case: &T, input: CaseStyle) -> String
[src]
Use Case to convert CaseStyle object to String
pub fn guess<S: AsRef<str>>(input: S) -> Result<CaseStyle, ()>
[src]
Guess case style and on success convert to tokens
pub fn from_case<S: AsRef<str>>(case: S, input: S) -> Result<CaseStyle, String>
[src]
Instead of choosing a input case style on build time, decide it later. errors if case does not exists
pub fn to_case<S: AsRef<str>>(self, case: S) -> Result<String, String>
[src]
Instead of choosing a output case style on build time, decide it later. errors if case does not exists
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CaseStyle
impl Send for CaseStyle
impl Sync for CaseStyle
impl Unpin for CaseStyle
impl UnwindSafe for CaseStyle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,