[][src]Trait bloguen::ops::WrappedElement

pub trait WrappedElement {
    fn head(&self) -> &str;
fn content(&self) -> &str;
fn foot(&self) -> &str; fn head_b(&self) -> &[u8] { ... }
fn content_b(&self) -> &[u8] { ... }
fn foot_b(&self) -> &[u8] { ... } }

An element with a preface, a content, and a postface.

More efficient than concatting them together.

The *_b() versions are I/O helpers.

Required methods

fn head(&self) -> &str

Characters to put before the content.

fn content(&self) -> &str

The content itself.

fn foot(&self) -> &str

Characters to put after the content.

Loading content...

Provided methods

fn head_b(&self) -> &[u8]

Byte representation of pre-content.

fn content_b(&self) -> &[u8]

Byte representation of the content.

fn foot_b(&self) -> &[u8]

Byte representation of post-content.

Loading content...

Implementors

impl<Dt: WrappedElementImplData> WrappedElement for WrappedElementImpl<Dt>[src]

Loading content...