pub enum Profile {
Prose,
Code,
Mixed,
}Expand description
Text kind, which changes the characters-per-token assumption.
Variants§
Prose
Ordinary prose. ~4 characters per token.
Code
Source code or markup. Denser: ~3 characters per token.
Mixed
Mixed content, e.g. prose with fenced code blocks.
Implementations§
Trait Implementations§
impl Copy for Profile
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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