Trait corundum::default::ToPStringSlice
source · [−]pub trait ToPStringSlice<A: MemPool> {
fn to_pstring(&self, journal: &Journal<A>) -> StdVec<String<A>>;
}
Required Methods
fn to_pstring(&self, journal: &Journal<A>) -> StdVec<String<A>>
fn to_pstring(&self, journal: &Journal<A>) -> StdVec<String<A>>
Converts the given value to a String
.
Examples
Basic usage:
Heap::transaction(|j| {
let i: Vec<i32> = vec![1,2,3];
let list = vec![
String::<Heap>::pfrom("1", j),
String::<Heap>::pfrom("2", j),
String::<Heap>::pfrom("3", j)
];
assert_eq!(list, i.to_pstring(j));
}).unwrap();