Expand description
Macros§
- ack
- A wrapper for
return Ok(say!())
- boxed_
ranting_ trait - If you want to implement Ranting on a
Box<&dyn Trait>
where Trait has Ranting - nay
- A wrapper for
return Err(say!())
- ref_
ranting_ trait - If you want to implement Ranting on a
&'_ dyn Trait
where Trait has Ranting - say
- Functions like
format!()
for normal placeholders, but allows extended placeholders including e.g. articles or verbs beside a Noun or a variable with the Ranting trait. These are inflected accordingly, and adjustable by punctuation prefixes.
Structs§
- Noun
- Has the Ranting trait. Often you may want to
#[derive(Ranting)]
and sometimes override some of the trait functions.
Traits§
- Ranting
- The trait required for a struct or enum to function as a noun in a placeholder, derived with
#[derive_ranting]
. Functions are used insay!()
placeholders replacements.
Functions§
- handle_
placeholder - The say macro parses placeholders and passes captures to this function which returns a string.
- inflect_
possesive - Inflect possesive pronoun as to_plural indicates. The first character capitalized with uc set.
- is_
subject - return whether the given
&str
is a valid subject - is_
subjective_ plural - Returns whether the subjective is plural. You is assumed singular; a plural_you ranting attribute should already be considered before this call.
- uc_
1st_ if - upper cases first character if uc is true, or second in a contraction.