Module value

Source
Expand description

§value

The value module defines the Value enum, representing any valid row value in the rline_api library.

§Enum Variants

  • String: Represents a string value.

  • Integer: Represents an integer value.

  • Float: Represents a floating-point value.

  • VecString: Represents a vector of strings.

  • VecInteger: Represents a vector of integers.

  • VecFloat: Represents a vector of floating-point numbers.

  • VecU8: Represents a vector of unsigned 8-bit integers.

§Examples

use rline_api::value::Value;

fn example_function() {
    let string_value: Value = "Hello, World!".to_string().into();
    let integer_value: Value = 42.into();
    let float_value: Value = 3.14.into();
    let vec_string_value: Value = vec!["one".to_string(), "two".to_string()].into();
    let vec_integer_value: Value = vec![1, 2, 3].into();
    let vec_float_value: Value = vec![1.1, 2.2, 3.3].into();
    let vec_u8_value: Value = vec![0, 1, 2].into();
}

§Usage

This module is used within the rline_api library to represent values associated with row columns. The Value enum is versatile and can store various types of data, making it suitable for diverse use cases in data processing.

§License

This module is part of the rline_api crate, licensed under the Apache-2.0 License.

Enums§

Value
Represents any valid Row value.