[][src]Struct serde_gff::Label

pub struct Label(_);

Описание названия поля структуры GFF файла. GFF файл состоит из дерева структур, а каждая структура -- из полей с именем и значением. Имена полей представлены данной структурой

Methods

impl Label[src]

pub fn as_str(&self) -> Result<&str, Utf8Error>[src]

Возвращает представление данной метки как текста, если он представлен в виде UTF-8 строки

pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>[src]

Пытается создать метку из указанного массива байт.

Ошибки

В случае, если длина среза равна или превышает 16 байт, возвращается ошибка Error::TooLongLabel

Trait Implementations

impl AsRef<[u8]> for Label[src]

impl Clone for Label[src]

impl Copy for Label[src]

impl Debug for Label[src]

impl<'de> Deserialize<'de> for Label[src]

Десериализует метку из строки или массива байт

impl Display for Label[src]

impl Eq for Label[src]

impl From<[u8; 16]> for Label[src]

impl FromStr for Label[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Label[src]

impl<'de, E> IntoDeserializer<'de, E> for Label where
    E: Error
[src]

type Deserializer = LabelDeserializer<E>

The type of the deserializer being converted into.

impl PartialEq<Label> for Label[src]

impl Serialize for Label[src]

impl StructuralEq for Label[src]

impl StructuralPartialEq for Label[src]

Auto Trait Implementations

impl RefUnwindSafe for Label

impl Send for Label

impl Sync for Label

impl Unpin for Label

impl UnwindSafe for Label

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> ToString for T where
    T: Display + ?Sized
[src]

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.