Struct ::exo::vs::LanguageSettings

Overview

Methods

Creates a new LanguageSettings object.

Example

let s = exo::vs::LanguageSettings::new();
assert!(s.typ == "singleline");

Clones the LanguageSettings object and returns a new independet one.

Example

let s0 = exo::vs::LanguageSettings::new();
let s1 = s0.clone();
assert_eq!(s0, s1);
s1.typ = "multiline";
assert_ne!(s0, s1);

Protocols

protocol partial_eq
if value == b { }

Allows for partial equality operations to work.

protocol string_debug
println("{:?}", value)

Allows the value to be debug printed.

protocol string_display
println("{}", value)

Allows the value to be display printed.

protocol get typ
let output = value.typ

Get the Language Typ which shuld be used. Available options are: 'singleline' or 'multiline'

Example

let s = exo::vs::LanguageSettings::new();
s.typ = "multiline";
assert_eq!(s.typ, "multiline");
protocol set typ
value.typ = input

Set the Language Typ which shuld be used. Available options are: 'singleline' or 'multiline'

Example

let s = exo::vs::LanguageSettings::new();
s.typ = "multiline";
assert_eq!(s.typ, "multiline");