pub enum EnvBuildFlagsError {
NonUtf8 {
name: &'static str,
},
Parse {
name: &'static str,
},
}Expand description
Reason a parse_env_build_flags call failed. Both
variants name the offending variable so the diagnostic is
actionable.
Variants§
NonUtf8
The environment variable held a non-UTF-8 byte sequence that Cabin cannot interpret as shell-like text. Variable values are expected to be UTF-8; non-UTF-8 input is reported here rather than silently dropped.
Parse
The value was UTF-8 but POSIX shell-style word splitting rejected it (for example, an unterminated quote or a trailing escape).
Trait Implementations§
Source§impl Clone for EnvBuildFlagsError
impl Clone for EnvBuildFlagsError
Source§fn clone(&self) -> EnvBuildFlagsError
fn clone(&self) -> EnvBuildFlagsError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvBuildFlagsError
impl Debug for EnvBuildFlagsError
Source§impl Display for EnvBuildFlagsError
impl Display for EnvBuildFlagsError
impl Eq for EnvBuildFlagsError
Source§impl Error for EnvBuildFlagsError
impl Error for EnvBuildFlagsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for EnvBuildFlagsError
impl PartialEq for EnvBuildFlagsError
Source§fn eq(&self, other: &EnvBuildFlagsError) -> bool
fn eq(&self, other: &EnvBuildFlagsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnvBuildFlagsError
Auto Trait Implementations§
impl Freeze for EnvBuildFlagsError
impl RefUnwindSafe for EnvBuildFlagsError
impl Send for EnvBuildFlagsError
impl Sync for EnvBuildFlagsError
impl Unpin for EnvBuildFlagsError
impl UnsafeUnpin for EnvBuildFlagsError
impl UnwindSafe for EnvBuildFlagsError
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
Mutably borrows from an owned value. Read more