[][src]Module kankyo::utils

A collection of lower-level functions for parsing .env files, unloading keys, and working with parsed .env lines.

You most likely do not need to work with these yourself and should usually prefer the higher-level functions in the root module of the library.

Functions

only_keys

Maps the given slice of ParsedLine into a vector of their keys.

parse_kv

Parses a K-V pair of an environment variable OsString name and value into their String equivalents.

parse_line

Parses a .env file line.

parse_lines

Returns a Vec of ParsedLines, each line representing a parsed key-value pair of the given buffer.

set_variables

Loads the given slice of parsed lines into the environment.

unload

Unloads the given slice of keys from the environment.

unload_from_parsed_lines

Unloads from the given borrowed ParsedLines.

Type Definitions

ParsedLine

A key-value pair of a line from a .env file.