Trait phollaits::ToBase64[][src]

pub trait ToBase64 {
    fn base64(self) -> String;
}

Required methods

method converts the input to a base64 encoded String.

Example


extern crate phollaits;
use phollaits::{ToBase64};
fn main() {
	let a = "Teststring".to_string();
	assert_eq!(a.base64(), "VGVzdHN0cmluZw==".to_string());
}

Implementations on Foreign Types

Implementors