[][src]Trait kul::text::chunk::RefCntStrish

pub trait RefCntStrish: Clone + AsStr + Sealed {
    fn from_str(s: &str) -> Self;

    fn empty() -> Self { ... }
}

Restricts what can be used in PosStrish to only Rc and Arc of only String, Box<str>, and str.

Only the types that implement the private Sealed trait can implement this trait, and so nothing else can implement it, which enforces the restriction even though this trait is public.

Required methods

fn from_str(s: &str) -> Self

Convert from a &str.

Loading content...

Provided methods

fn empty() -> Self

Make an empty one.

Loading content...

Implementations on Foreign Types

impl RefCntStrish for Rc<String>[src]

fn empty() -> Self[src]

impl RefCntStrish for Rc<Box<str>>[src]

fn empty() -> Self[src]

impl RefCntStrish for Rc<str>[src]

fn empty() -> Self[src]

impl RefCntStrish for Arc<String>[src]

fn empty() -> Self[src]

impl RefCntStrish for Arc<Box<str>>[src]

fn empty() -> Self[src]

impl RefCntStrish for Arc<str>[src]

fn empty() -> Self[src]

Loading content...

Implementors

Loading content...