aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/io/io_interface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/io/io_interface.rs')
-rw-r--r--crates/shirabe/src/io/io_interface.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/shirabe/src/io/io_interface.rs b/crates/shirabe/src/io/io_interface.rs
index e33cea2..1ae8d28 100644
--- a/crates/shirabe/src/io/io_interface.rs
+++ b/crates/shirabe/src/io/io_interface.rs
@@ -151,6 +151,10 @@ pub trait IOInterfaceMutable {
// `dyn IOInterface`; its vtable carries both the immutable and mutable methods.
pub trait IOInterface: IOInterfaceImmutable + IOInterfaceMutable {
fn as_any(&self) -> &dyn std::any::Any;
+
+ fn as_base_io_mut(&mut self) -> Option<&mut dyn crate::io::BaseIO> {
+ None
+ }
}
// Shared-ownership handle for a PHP IO instance (reference semantics). It