Struct editor2::EditorStyle
source · pub struct EditorStyle {
pub background: Hsla,
pub local_player: PlayerColor,
pub text: TextStyle,
pub scrollbar_width: Pixels,
pub syntax: Arc<SyntaxTheme>,
pub diagnostic_style: DiagnosticStyle,
}
Fields§
§background: Hsla
§local_player: PlayerColor
§text: TextStyle
§scrollbar_width: Pixels
§syntax: Arc<SyntaxTheme>
§diagnostic_style: DiagnosticStyle
Trait Implementations§
source§impl Clone for EditorStyle
impl Clone for EditorStyle
source§fn clone(&self) -> EditorStyle
fn clone(&self) -> EditorStyle
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 Default for EditorStyle
impl Default for EditorStyle
source§fn default() -> EditorStyle
fn default() -> EditorStyle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for EditorStyle
impl Send for EditorStyle
impl Sync for EditorStyle
impl Unpin for EditorStyle
impl UnwindSafe for EditorStyle
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