yodel/context

Types

pub opaque type Context

Values

pub fn get_bool(
  ctx: Context,
  path: String,
) -> Result(Bool, PropertiesError)
pub fn get_bool_or(
  ctx: Context,
  path: String,
  default: Bool,
) -> Bool
pub fn get_float(
  ctx: Context,
  path: String,
) -> Result(Float, PropertiesError)
pub fn get_float_or(
  ctx: Context,
  path: String,
  default: Float,
) -> Float
pub fn get_int(
  ctx: Context,
  path: String,
) -> Result(Int, PropertiesError)
pub fn get_int_or(
  ctx: Context,
  path: String,
  default: Int,
) -> Int
pub fn get_string(
  ctx: Context,
  path: String,
) -> Result(String, PropertiesError)
pub fn get_string_or(
  ctx: Context,
  path: String,
  default: String,
) -> String
pub fn new(from properties: Properties) -> Context
pub fn parse_bool(
  ctx: Context,
  path: String,
) -> Result(Bool, PropertiesError)
pub fn parse_float(
  ctx: Context,
  path: String,
) -> Result(Float, PropertiesError)
pub fn parse_int(
  ctx: Context,
  path: String,
) -> Result(Int, PropertiesError)
pub fn parse_string(
  ctx: Context,
  path: String,
) -> Result(String, PropertiesError)
Search Document