[librsvg/wip/rust-api: 3/5] LoadOptions: add an unimplemented read() method
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/wip/rust-api: 3/5] LoadOptions: add an unimplemented read() method
- Date: Mon, 18 Feb 2019 16:58:44 +0000 (UTC)
commit 40ff0412c451918f95c0274cccd3c6440d3a171c
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Feb 18 10:48:53 2019 -0600
LoadOptions: add an unimplemented read() method
librsvg_crate/src/lib.rs | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/librsvg_crate/src/lib.rs b/librsvg_crate/src/lib.rs
index e680c19f..a2880f59 100644
--- a/librsvg_crate/src/lib.rs
+++ b/librsvg_crate/src/lib.rs
@@ -5,6 +5,7 @@ extern crate glib;
extern crate rsvg_internals;
extern crate url;
+use std::io::Read;
use std::path::Path;
use gio::FileExt;
@@ -84,6 +85,11 @@ impl LoadOptions {
Ok(SvgHandle(handle))
}
+
+ pub fn read(self, _r: &dyn Read, _base_url: Option<&Url>) -> Result<SvgHandle, LoadingError> {
+ // This requires wrapping a Read with a GInputStream
+ unimplemented!();
+ }
}
pub struct SvgHandle(Handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]