pub struct AdvancedCodeEditor {
pub code: String,
pub language: String,
pub theme: String,
pub line_numbers: bool,
pub minimap: bool,
pub autocomplete: bool,
}Fields§
§code: String§language: String§theme: String§line_numbers: bool§minimap: bool§autocomplete: boolImplementations§
Source§impl AdvancedCodeEditor
impl AdvancedCodeEditor
pub fn new(code: String) -> AdvancedCodeEditor
pub fn language(self, language: String) -> AdvancedCodeEditor
pub fn theme(self, theme: String) -> AdvancedCodeEditor
pub fn line_numbers(self, show: bool) -> AdvancedCodeEditor
pub fn minimap(self, show: bool) -> AdvancedCodeEditor
pub fn autocomplete(self, enable: bool) -> AdvancedCodeEditor
Trait Implementations§
Source§impl Clone for AdvancedCodeEditor
impl Clone for AdvancedCodeEditor
Source§fn clone(&self) -> AdvancedCodeEditor
fn clone(&self) -> AdvancedCodeEditor
Returns a duplicate 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 AdvancedCodeEditor
impl Debug for AdvancedCodeEditor
Source§impl Default for AdvancedCodeEditor
impl Default for AdvancedCodeEditor
Source§fn default() -> AdvancedCodeEditor
fn default() -> AdvancedCodeEditor
Returns the “default value” for a type. Read more
Source§impl Hash for AdvancedCodeEditor
impl Hash for AdvancedCodeEditor
Source§impl PartialEq for AdvancedCodeEditor
impl PartialEq for AdvancedCodeEditor
Source§impl Renderable for AdvancedCodeEditor
impl Renderable for AdvancedCodeEditor
impl Eq for AdvancedCodeEditor
impl StructuralPartialEq for AdvancedCodeEditor
Auto Trait Implementations§
impl Freeze for AdvancedCodeEditor
impl RefUnwindSafe for AdvancedCodeEditor
impl Send for AdvancedCodeEditor
impl Sync for AdvancedCodeEditor
impl Unpin for AdvancedCodeEditor
impl UnwindSafe for AdvancedCodeEditor
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