mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
19 lines
432 B
Rust
19 lines
432 B
Rust
use std::sync::Arc;
|
|
|
|
use crate::{editor::Editor, prelude::*};
|
|
|
|
pub(crate) struct PluginCache {
|
|
pub info: Info,
|
|
pub params: Arc<dyn PluginParameters>,
|
|
pub editor: Option<Box<dyn Editor>>,
|
|
}
|
|
|
|
impl PluginCache {
|
|
pub fn new(info: &Info, params: Arc<dyn PluginParameters>, editor: Option<Box<dyn Editor>>) -> Self {
|
|
Self {
|
|
info: info.clone(),
|
|
params,
|
|
editor,
|
|
}
|
|
}
|
|
}
|