pub enum CodeMirrorMode {
Simple(String),
CustomMode {
name: String,
version: usize,
},
}
Variants§
Implementations§
Source§impl CodeMirrorMode
impl CodeMirrorMode
pub fn typescript() -> Self
pub fn python() -> Self
pub fn ipython_code_mirror_mode() -> Self
Trait Implementations§
Source§impl Clone for CodeMirrorMode
impl Clone for CodeMirrorMode
Source§fn clone(&self) -> CodeMirrorMode
fn clone(&self) -> CodeMirrorMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CodeMirrorMode
impl Debug for CodeMirrorMode
Source§impl<'de> Deserialize<'de> for CodeMirrorMode
impl<'de> Deserialize<'de> for CodeMirrorMode
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
Auto Trait Implementations§
impl Freeze for CodeMirrorMode
impl RefUnwindSafe for CodeMirrorMode
impl Send for CodeMirrorMode
impl Sync for CodeMirrorMode
impl Unpin for CodeMirrorMode
impl UnwindSafe for CodeMirrorMode
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