pub enum LibCfgError {
Show 13 variants
CfgValInputIsNotTable,
SchemeNotFound {
scheme_name: String,
schemes: String,
},
MinimumRelativeDistanceInvalid {
scheme_name: String,
dist: f64,
},
SortTagExtraSeparator {
scheme_name: String,
dot_file_marker: char,
sort_tag_extra_chars: String,
extra_separator: String,
},
ExtensionDefault {
scheme_name: String,
extension_default: String,
extensions: String,
},
SortTagSeparator {
scheme_name: String,
dot_file_marker: char,
chars: String,
separator: String,
},
CopyCounterExtraSeparator {
scheme_name: String,
chars: String,
extra_separator: String,
},
ParseAssertPrecondition,
ParseLocalLinkKind,
ParseLanguageCode {
language_code: String,
all_langs: String,
},
NotEnoughLanguageCodes {
language_code: String,
},
HighlightingThemeName {
var: String,
value: String,
available: String,
},
Deserialize(Error),
}
Expand description
Configuration file related semantic errors.
Variants§
CfgValInputIsNotTable
CfgVal
can only be deserialized with data whose root element
is a Value::Table
.
This should not happen. Please file a bug report.
SchemeNotFound
Remedy: Choose another scheme.
MinimumRelativeDistanceInvalid
Remedy: Choose a value in the given interval.
SortTagExtraSeparator
Remedy: Choose another sort_tag.extra_separator
character.
Fields
ExtensionDefault
Remedy: Choose another extension_default
out of
extensions[..].0
.
SortTagSeparator
Remedy: Insert sort_tag.separator
in sort_tag.extra_chars
.
CopyCounterExtraSeparator
Remedy: Choose a copy_counter.extra_separator
in the set.
ParseAssertPrecondition
Remedy: check the configuration file variable tmpl.filter.assert_preconditions
.
ParseLocalLinkKind
Remedy: check the configuration file variable arg_default.export_link_rewriting
.
ParseLanguageCode
Remedy: check the ISO 639-1 codes in the configuration variable
tmpl.filter.get_lang.language_candidates
and make sure that they are
supported, by checking tpnote -V
.
NotEnoughLanguageCodes
Remedy: add one more ISO 639-1 code in the configuration variable
tmpl.filter.get_lang.language_candidates
(or in
TPNOTE_LANG_DETECTION
) and make sure that the code is supported, by
checking tpnote -V
.
HighlightingThemeName
Remedy: correct the variable by choosing one the available themes.
Deserialize(Error)
Trait Implementations§
Source§impl Clone for LibCfgError
impl Clone for LibCfgError
Source§fn clone(&self) -> LibCfgError
fn clone(&self) -> LibCfgError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LibCfgError
impl Debug for LibCfgError
Source§impl Display for LibCfgError
impl Display for LibCfgError
Source§impl Error for LibCfgError
impl Error for LibCfgError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for LibCfgError
impl From<Error> for LibCfgError
Source§impl From<LibCfgError> for NoteError
impl From<LibCfgError> for NoteError
Source§fn from(source: LibCfgError) -> Self
fn from(source: LibCfgError) -> Self
Source§impl PartialEq for LibCfgError
impl PartialEq for LibCfgError
impl StructuralPartialEq for LibCfgError
Auto Trait Implementations§
impl Freeze for LibCfgError
impl RefUnwindSafe for LibCfgError
impl Send for LibCfgError
impl Sync for LibCfgError
impl Unpin for LibCfgError
impl UnwindSafe for LibCfgError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString
. Read more