Skip to main content

SpacingExt

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)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§