pub struct Notebook<T> {
pub cell_contents: HashMap<Uuid, NotebookCell<T>>,
pub cell_order: Vec<Uuid>,
}
Fields§
§cell_contents: HashMap<Uuid, NotebookCell<T>>
§cell_order: Vec<Uuid>
Implementations§
Source§impl<T> Notebook<T>
impl<T> Notebook<T>
pub fn cells(&self) -> impl Iterator<Item = &NotebookCell<T>>
pub fn migrate_from_v0(old: Notebook<T>) -> Self
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Notebook<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Notebook<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> FromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
impl<T> FromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
Source§impl<T> IntoWasmAbi for Notebook<T>
impl<T> IntoWasmAbi for Notebook<T>
Source§impl<T> OptionFromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
impl<T> OptionFromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
Source§impl<T> OptionIntoWasmAbi for Notebook<T>
impl<T> OptionIntoWasmAbi for Notebook<T>
Source§impl<T> RefFromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
impl<T> RefFromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self
are recovered from.Source§impl<T> Tsify for Notebook<T>
impl<T> Tsify for Notebook<T>
const DECL: &'static str = "export interface Notebook<T> {\n cellContents: Record<Uuid, NotebookCell<T>>;\n cellOrder: Uuid[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl<T> VectorFromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
impl<T> VectorFromWasmAbi for Notebook<T>where
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl<T> VectorIntoWasmAbi for Notebook<T>
impl<T> VectorIntoWasmAbi for Notebook<T>
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
impl<T: Eq> Eq for Notebook<T>
impl<T> StructuralPartialEq for Notebook<T>
Auto Trait Implementations§
impl<T> Freeze for Notebook<T>
impl<T> RefUnwindSafe for Notebook<T>where
T: RefUnwindSafe,
impl<T> Send for Notebook<T>where
T: Send,
impl<T> Sync for Notebook<T>where
T: Sync,
impl<T> Unpin for Notebook<T>where
T: Unpin,
impl<T> UnwindSafe for Notebook<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.