[−][src]Struct serde_gff::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]
Десериализует метку из строки или массива байт
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
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.
fn from_str(value: &str) -> Result<Self, Error>
[src]
impl Hash for Label
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'de, E> IntoDeserializer<'de, E> for Label where
E: Error,
[src]
E: Error,
type Deserializer = LabelDeserializer<E>
The type of the deserializer being converted into.
fn into_deserializer(self) -> Self::Deserializer
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,