[librsvg/rustification] node.rs: Rename trait Node to NodeTrait



commit e3f29e975235e97b31334b3d5b051d79a47dd2bd
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Dec 1 12:27:41 2016 -0600

    node.rs: Rename trait Node to NodeTrait
    
    We'll use Node for a concrete object

 rust/src/node.rs   |    2 +-
 rust/src/shapes.rs |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rust/src/node.rs b/rust/src/node.rs
index 024a4c2..50d584e 100644
--- a/rust/src/node.rs
+++ b/rust/src/node.rs
@@ -9,7 +9,7 @@ use property_bag::RsvgPropertyBag;
 
 use state::RsvgState;
 
-pub trait Node {
+pub trait NodeTrait {
     fn set_atts (&self, handle: *const RsvgHandle, pbag: *const RsvgPropertyBag);
     fn draw (&self, draw_ctx: *const RsvgDrawingCtx, dominate: i32);
 }
diff --git a/rust/src/shapes.rs b/rust/src/shapes.rs
index 7eddac1..57fd1f8 100644
--- a/rust/src/shapes.rs
+++ b/rust/src/shapes.rs
@@ -24,7 +24,7 @@ impl NodePath {
     }
 }
 
-impl Node for NodePath {
+impl NodeTrait for NodePath {
     fn set_atts (&self, _: *const RsvgHandle, pbag: *const RsvgPropertyBag) {
         if let Some (value) = property_bag::lookup (pbag, "d") {
             let mut builder = self.builder.borrow_mut ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]