pub enum RegionError {
AlreadyOpen {
name: String,
line: usize,
},
NotOpen {
name: String,
line: usize,
},
NeverClosed {
name: String,
line: usize,
},
}Expand description
A RegionError reports a region marker that breaks the pairing of begin
and end markers (SOKF_FORMAT_95, SOKF_FORMAT_112), and gives the name of
the region and the number of the line.
Variants§
AlreadyOpen
A begin marker opens a region that is already open.
NotOpen
An end marker closes a region that isn’t open.
NeverClosed
A begin marker has no matching end marker.
Implementations§
Trait Implementations§
Source§impl Clone for RegionError
impl Clone for RegionError
Source§impl Debug for RegionError
impl Debug for RegionError
Source§impl Display for RegionError
impl Display for RegionError
impl Eq for RegionError
Source§impl Error for RegionError
impl Error for RegionError
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 RegionError
impl PartialEq for RegionError
impl StructuralPartialEq for RegionError
Auto Trait Implementations§
impl Forget for RegionError
impl Freeze for RegionError
impl Move for RegionError
impl RefUnwindSafe for RegionError
impl Send for RegionError
impl Sync for RegionError
impl Unpin for RegionError
impl UnsafeUnpin for RegionError
impl UnwindSafe for RegionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§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>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more