Trait svgdom::FromStream [] [src]

pub trait FromStream: Sized {
    type Err;
    fn from_stream(s: Stream) -> Result<Self, Self::Err>;

    fn from_data(data: &[u8]) -> Result<Self, Self::Err> { ... }
}

The trait for parsing data from the data stream.

Associated Types

Error type.

Required Methods

Parses data from the Stream.

Provided Methods

Parses data from the &[u8].

Implementors