Struct ::exo::vs::StringSettings

Overview

Settings for the reference typ which is used for variables

Methods

Creates a new StringSettings object.

Example

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

Clones the StringSettings object and returns a new independet one.

Example

let s0 = exo::vs::StringSettings::new();
let s1 = s0.clone();
assert_eq!(s0, s1);
s1.typ = "markdown";
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 String Typ which shuld be used. Available options are: 'singleline', 'multiline', 'markdown'

Example

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

Set the String Typ which shuld be used. Available options are: 'singleline', 'multiline', 'markdown'

Example

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