pub enum EmptyOutputPolicy {
KeepEmptySlug,
UseFallbackSlug(String),
}Expand description
Behavior when the generated slug is empty.
Variants§
KeepEmptySlug
Return the empty slug.
UseFallbackSlug(String)
Replace the empty slug with a caller-provided fallback.
Trait Implementations§
Source§impl Clone for EmptyOutputPolicy
impl Clone for EmptyOutputPolicy
Source§fn clone(&self) -> EmptyOutputPolicy
fn clone(&self) -> EmptyOutputPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmptyOutputPolicy
impl Debug for EmptyOutputPolicy
impl Eq for EmptyOutputPolicy
Source§impl PartialEq for EmptyOutputPolicy
impl PartialEq for EmptyOutputPolicy
impl StructuralPartialEq for EmptyOutputPolicy
Auto Trait Implementations§
impl Freeze for EmptyOutputPolicy
impl RefUnwindSafe for EmptyOutputPolicy
impl Send for EmptyOutputPolicy
impl Sync for EmptyOutputPolicy
impl Unpin for EmptyOutputPolicy
impl UnsafeUnpin for EmptyOutputPolicy
impl UnwindSafe for EmptyOutputPolicy
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