Trait tref::NodeContent[][src]

pub trait NodeContent {
    fn new(content: String) -> Option<Self>
    where
        Self: Sized
;
fn get_content(&self) -> &str; }
Expand description

Trait to define structs that model a node content.

Required methods

Constructor.

Aeguments

  • content - Node content.

Return

  • An Option with the node content.

Get node content.

Return

  • Node content.

Implementors