Module resource_manager

Source
Expand description

X11 resource manager library.

To open a database, it is recommended to use Database::new_from_default, but that function needs to do I/O. A wrapper to simplify usage is e.g. provided in the x11rb crate.

This functionality is similar to what is available to C code through xcb-util-xrm and Xlib’s Xrm* function family. Not all their functionality is available in this library. Please open a feature request if you need something that is not available.

The code in this module is only available when the resource_manager feature of the library is enabled.

ModulesΒ§

matcher πŸ”’
Match Xrm entries against a query.
parser πŸ”’
Code for parsing resource management things
work_around_constant_limitations πŸ”’

StructsΒ§

Database
A X11 resource database.
Entry πŸ”’
A single entry in the resource manager database.

EnumsΒ§

Binding πŸ”’
How tightly does the component of an entry match a query?
Component πŸ”’
A component of a database entry.

ConstantsΒ§

MAX_INCLUSION_DEPTH πŸ”’
Maximum nesting of #include directives, same value as Xlib uses. After following this many #include directives, further includes are ignored.

FunctionsΒ§

parse_data_with_base_directory πŸ”’
Parse the given data as a resource database.
to_bool πŸ”’
Parse a value to a boolean, returning None if this is not possible.