Enum tpnote_lib::error::LibCfgError
source · pub enum LibCfgError {
SchemeNotFound {
scheme_name: String,
schemes: String,
},
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,
},
}Expand description
Configuration file related semantic errors.
Variants§
SchemeNotFound
Remedy: Choose another scheme.
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 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 (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.
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
1.30.0 · 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<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
source§fn eq(&self, other: &LibCfgError) -> bool
fn eq(&self, other: &LibCfgError) -> bool
self and other values to be equal, and is used
by ==.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<E> Fail for E
impl<E> Fail for E
source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Backtrace carried by this failure, if it
carries one. Read moresource§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 to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more