1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use super::disposable::XtermDisposable;
use super::{interface, Disposable, IntoJsInterface, Terminal, TerminalAddon};
interface! {
#[allow(clippy::module_name_repetitions)]
pub trait XtermAddon mirrors TerminalAddon
where
Self extends Disposable as XtermDisposable,
{
fn activate(&self, terminal: Terminal);
}
}
impl Terminal {
pub fn load_xterm_addon<A: IntoJsInterface<TerminalAddon>>(
&self,
addon: &A,
) {
self.load_addon(addon.by_ref())
}
}