Struct ::exo::vs::ListSettings

Overview

Methods

fn new() -> ListSettings

Creates a new ListSettings object.

Example

let s = exo::vs::ListSettings::new();
assert!(s is exo::vs::ListSettings);

Clones the ListSettings object and returns a new independet one.

Example

let s0 = exo::vs::ListSettings::new();
let s1 = s0.clone();
assert_eq!(s0, s1);
s1.add_at_bottom = true;
assert_ne!(s0, s1);

Protocols

protocol get add_at_bottom
let output = value.add_at_bottom

Allows a get operation to work.

protocol set add_at_bottom
value.add_at_bottom = input

Allows a set operation to work.

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 set restrict_value
value.restrict_value = input

Set the default value for a restricted value typ.

Example

let s = exo::vs::ListSettings::new();
s.restrict_value = "Hello World";
assert_eq!(s.restrict_value?, "Hello World");
protocol get restrict_value
let output = value.restrict_value

Get the default value for a restricted value typ.

Example

let s = exo::vs::ListSettings::new();
s.restrict_value = "Hello World";
assert_eq!(s.restrict_value?, "Hello World");
protocol set restrict_setting
value.restrict_setting = input

Set the restricted value typ.

Example

let s = exo::vs::ListSettings::new();
s.restrict_setting = exo::vs::VariableSettings::None;
assert_eq!(s.restrict_setting, exo::vs::VariableSettings::None);
protocol get restrict_setting
let output = value.restrict_setting

Get the restricted value typ.

Example

let s = exo::vs::ListSettings::new();
s.restrict_setting = exo::vs::VariableSettings::None;
assert_eq!(s.restrict_setting, exo::vs::VariableSettings::None);