pub trait ToPString<A: MemPool> {
    fn to_pstring(&self, journal: &Journal<A>) -> String<A>;
}

Required Methods

Converts the given value to a String.

Examples

Basic usage:

Heap::transaction(|j| {
    let i: i32 = 5;
    let five = String::<Heap>::pfrom("5", j);

    assert_eq!(five, i.to_pstring(j));
}).unwrap();

Implementations on Foreign Types

Implementors

Panics

In this implementation, the to_string method panics if the Display implementation returns an error. This indicates an incorrect Display implementation since fmt::Write for String never returns an error itself.