Struct snake_case::SnakeCase[][src]

pub struct SnakeCase(_);

An owning string type that can only contain valid snake_case. In other words, it always matches ^[_a-z][_a-z0-9]*$

  • Non-empty
  • Starts with a lower case ASCII letter or underscore
  • Contains only lower case ASCII letters, underscores and digits

Implementations

impl SnakeCase[src]

Trait Implementations

impl Borrow<str> for SnakeCase[src]

impl Clone for SnakeCase[src]

impl Debug for SnakeCase[src]

impl Display for SnakeCase[src]

impl Eq for SnakeCase[src]

impl Hash for SnakeCase[src]

impl Ord for SnakeCase[src]

impl PartialEq<&'_ str> for SnakeCase[src]

impl PartialEq<SnakeCase> for SnakeCase[src]

impl PartialEq<String> for SnakeCase[src]

impl PartialEq<str> for SnakeCase[src]

impl PartialOrd<SnakeCase> for SnakeCase[src]

impl StructuralEq for SnakeCase[src]

impl StructuralPartialEq for SnakeCase[src]

impl TryFrom<&'_ str> for SnakeCase[src]

type Error = InvalidSnakeCase

The type returned in the event of a conversion error.

impl TryFrom<String> for SnakeCase[src]

type Error = InvalidSnakeCase

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.