[][src]Struct json_ld::LangString

pub struct LangString { /* fields omitted */ }

Methods

impl LangString[src]

pub fn new(
    str: String,
    language: Option<String>,
    direction: Option<Direction>
) -> LangString
[src]

pub fn as_str(&self) -> &str[src]

pub fn language(&self) -> Option<&str>[src]

pub fn set_language(&mut self, language: Option<String>)[src]

pub fn direction(&self) -> Option<Direction>[src]

pub fn set_direction(&mut self, direction: Option<Direction>)[src]

Trait Implementations

impl Clone for LangString[src]

impl Debug for LangString[src]

impl Eq for LangString[src]

impl Hash for LangString[src]

impl PartialEq<LangString> for LangString[src]

impl StructuralEq for LangString[src]

impl StructuralPartialEq for LangString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToOwned for T[src]

type Owned = T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.