#[non_exhaustive]pub enum MpsError {
IoError(Error),
ParseError {
line: usize,
message: String,
},
MissingSection(String),
DuplicateSection(String),
InvalidRowType(char),
InvalidBoundType(String),
UndefinedReference {
kind: String,
name: String,
},
UnclosedIntegerMarker,
}Expand description
MPSファイルのパース中に発生するエラー
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError(Error)
ファイル読み込み時のI/Oエラー
ParseError
指定行のパースエラー(行番号とメッセージを含む)
MissingSection(String)
必須セクションが欠落している
DuplicateSection(String)
同じセクションが複数回出現した
InvalidRowType(char)
無効な行タイプ文字が指定された
InvalidBoundType(String)
無効な上下限タイプ文字列が指定された
UndefinedReference
未定義の行名または列名が参照された
UnclosedIntegerMarker
INTORG マーカーが対応する INTEND で閉じられないまま COLUMNS を抜けた。 残り全列が無警告で整数化されるのを防ぐため明示エラーとする。
Trait Implementations§
Source§impl Error for MpsError
impl Error for MpsError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for MpsError
impl !UnwindSafe for MpsError
impl Freeze for MpsError
impl Send for MpsError
impl Sync for MpsError
impl Unpin for MpsError
impl UnsafeUnpin for MpsError
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
Converts
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>
Converts
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 more