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
type Err
Error type.
Required Methods
fn from_stream(s: Stream) -> Result<Self, Self::Err>
Parses data from the Stream
.