Trait SpacingExt

Source
pub trait SpacingExt {
    // Required methods
    fn is_joint(&self) -> bool;
    fn is_alone(&self) -> bool;

    // Provided method
    fn punch(self, ch: char) -> Punct
       where Self: Sized { ... }
}

Required Methods§

Source

fn is_joint(&self) -> bool

*self == Joint

Source

fn is_alone(&self) -> bool

*self == Alone

Provided Methods§

Source

fn punch(self, ch: char) -> Punct
where Self: Sized,

Punct::new(ch, self)

Implementations on Foreign Types§

Source§

impl SpacingExt for Spacing

Source§

fn punch(self, ch: char) -> Punct

Source§

fn is_joint(&self) -> bool

Source§

fn is_alone(&self) -> bool

Implementors§