Trait nbt::FromTag[][src]

pub trait FromTag: Sized {
    fn from_tag(tag: Tag) -> Option<Self>;
fn from_borrowed_tag(tag: &Tag) -> Option<&Self>; }

A trait to convert NBT tags into rust types.

Required methods

fn from_tag(tag: Tag) -> Option<Self>[src]

fn from_borrowed_tag(tag: &Tag) -> Option<&Self>[src]

Loading content...

Implementations on Foreign Types

impl FromTag for i8[src]

impl FromTag for i16[src]

impl FromTag for i32[src]

impl FromTag for i64[src]

impl FromTag for f32[src]

impl FromTag for f64[src]

impl FromTag for String[src]

Loading content...

Implementors

impl FromTag for Tag[src]

Loading content...