pub struct Rule001HeadingCase { /* private fields */ }
Expand description
Headings should be in sentence case.
§Examples
§Valid
# This is sentence case
§Invalid
# This is Not Sentence Case
§Exceptions
Exceptions are configured via the may_uppercase
and may_lowercase
arrays.
may_uppercase
: Words that may be capitalized even if they are not the first word in the heading.may_lowercase
: Words that may be lowercased even if they are the first word in the heading.
See an example from the Supabase repo.
Trait Implementations§
Source§impl Debug for Rule001HeadingCase
impl Debug for Rule001HeadingCase
Auto Trait Implementations§
impl !Freeze for Rule001HeadingCase
impl !RefUnwindSafe for Rule001HeadingCase
impl Send for Rule001HeadingCase
impl !Sync for Rule001HeadingCase
impl Unpin for Rule001HeadingCase
impl UnwindSafe for Rule001HeadingCase
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more