feat(mbuild): media-upload doit() methods

It's just a first step, and even though the generation works well,
I am still missing the right Rust code. Will have to simplify ...
This commit is contained in:
Sebastian Thiel
2015-03-08 15:49:28 +01:00
parent de0c7a4ae0
commit 5b2d8a77a3
7 changed files with 1046 additions and 370 deletions

View File

@@ -1,4 +1,6 @@
use std::marker::MarkerTrait;
use std::io::{Read, Seek};
use std::borrow::BorrowMut;
/// Identifies the Hub. There is only one per library, this trait is supposed
/// to make intended use more explicit.
@@ -28,3 +30,7 @@ pub trait Part: MarkerTrait {}
/// Identifies types which are only used by other types internally.
/// They have no special meaning, this trait just marks them for completeness.
pub trait NestedType: MarkerTrait {}
/// A utility to specify reader types which provide seeking capabilities too
pub trait ReadSeek: Seek + Read {}
impl<T: Seek + Read> ReadSeek for T {}