Enum sdl2_ttf::Text
[−]
[src]
pub enum Text<'a> { Latin1(&'a [u8]), Utf8(&'a str), Char(char), }
A renderable piece of text in the UTF8 or Latin-1 format
Variants
Latin1(&'a [u8])
Utf8(&'a str)
Char(char)
Trait Implementations
impl<'a> From<&'a str> for Text<'a>
[src]
Automatically convert strs to the right format
impl<'a> From<&'a String> for Text<'a>
[src]
Automatically convert Strings to the right format
impl<'a> From<char> for Text<'a>
[src]
Automatically convert chars to the right format
impl<'a> From<&'a [u8]> for Text<'a>
[src]
Automatically convert latin-1 bytes to the right format