[][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