From ade21185976ea2324d313a5c28a88cc0492f2934 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 20 Aug 2022 17:10:08 +0200 Subject: docs: add a example that uses a 3rd party library --- examples/with-3rd-party/interfaces/mod.rs | 1 + examples/with-3rd-party/interfaces/ninja.rs | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 examples/with-3rd-party/interfaces/mod.rs create mode 100644 examples/with-3rd-party/interfaces/ninja.rs (limited to 'examples/with-3rd-party/interfaces') diff --git a/examples/with-3rd-party/interfaces/mod.rs b/examples/with-3rd-party/interfaces/mod.rs new file mode 100644 index 0000000..c060c34 --- /dev/null +++ b/examples/with-3rd-party/interfaces/mod.rs @@ -0,0 +1 @@ +pub mod ninja; diff --git a/examples/with-3rd-party/interfaces/ninja.rs b/examples/with-3rd-party/interfaces/ninja.rs new file mode 100644 index 0000000..c4e9a59 --- /dev/null +++ b/examples/with-3rd-party/interfaces/ninja.rs @@ -0,0 +1,4 @@ +pub trait INinja +{ + fn throw_shuriken(&self); +} -- cgit v1.2.3-18-g5258