Skip to main content

Module prefs

Module prefs 

Source

Structsยง

CmdArgs ๐Ÿ”’
ServoShellPreferences ๐Ÿ”’

Enumsยง

ArgumentParsingResult ๐Ÿ”’
ParseResolutionError ๐Ÿ”’

Staticsยง

EXPERIMENTAL_PREFS ๐Ÿ”’
Preferences enabled when servoshell is launched with the --enable-experimental-web-platform-features flag.

Functionsยง

default_config_dir
flag_with_default_parser ๐Ÿ”’
This is a helper function that fulfills the following parsing task check for long/short cmd. If there is the flag with this If the flag is not there, parse None`` If the flag is there but no argument, parse Some(default)` If the flag is there and an argument parse the argument
get_preferences ๐Ÿ”’
Get a Servo Preferences to use when initializing Servo by first reading the user preferences file and then overriding these preferences with the ones from the --prefs-file command-line argument, if given.
map_debug_options ๐Ÿ”’
parse_arguments_helper ๐Ÿ”’
parse_command_line_arguments ๐Ÿ”’
Parse Commandline arguments
parse_diagnostics_logging ๐Ÿ”’
Parse the โ€˜-Zโ€™ command-line flags.
parse_resolution_string ๐Ÿ”’
Parse a resolution string into a Size2D.
parse_user_stylesheets ๐Ÿ”’
Parse a space or comma-separated list of stylesheet paths into a vector of UserStyleSheet.
profile ๐Ÿ”’
read_prefs_file ๐Ÿ”’
read_prefs_map
update_preferences_from_command_line_arguemnts ๐Ÿ”’
userscripts ๐Ÿ”’
webdriver_port ๐Ÿ”’