[−][src]Type Definition lv2rs_atom::literal::Literal
type Literal = ArrayAtomBody<LiteralHeader, u8>;
UTF-8 encoded string.
See the module documentation for more information.
Methods
impl Literal
[src]
pub fn as_str(&self) -> Result<&str, Utf8Error>
[src]
Try to parse the literal data as a &str
Parsing errors are forwarded.
pub fn lang(&self) -> URID
[src]
Return the language of the literal.
Trait Implementations
impl AtomBody for Literal
[src]
type InitializationParameter = URID
The type of the parameter for initialize_body
Read more
fn get_uri() -> &'static CStr
[src]
unsafe fn initialize_body<'a, W>(
writer: &mut W,
language: &URID,
urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'a> + WritingFrameExt<'a, Self>,
[src]
writer: &mut W,
language: &URID,
urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'a> + WritingFrameExt<'a, Self>,