pub struct ExpandError {
pub error: Error,
pub block: Option<BlockAt>,
}Expand description
展開の誤り: 誤りと、それが起きたプロジェクトのブロック(ブロックの中で起きたとき)
Fields§
§error: Error§block: Option<BlockAt>Implementations§
Source§impl ExpandError
impl ExpandError
Sourcepub fn kind(&self) -> &'static str
pub fn kind(&self) -> &'static str
誤りの種類(lensbench_core::Error::kind)
Sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
誤りの文(ブロックの名前は付けない。lensbench_core::Error::message)
Sourcepub fn code(&self) -> &'static str
pub fn code(&self) -> &'static str
誤りの符号(lensbench_core::Error::code)
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
ブロックの名前を前に付けた誤り(ブロックの外なら誤りそのもの)
Trait Implementations§
Source§impl Clone for ExpandError
impl Clone for ExpandError
Source§fn clone(&self) -> ExpandError
fn clone(&self) -> ExpandError
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 ExpandError
impl Debug for ExpandError
Source§impl Display for ExpandError
impl Display for ExpandError
Source§impl Error for ExpandError
impl Error for ExpandError
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 From<Error> for ExpandError
impl From<Error> for ExpandError
Source§fn from(error: Error) -> ExpandError
fn from(error: Error) -> ExpandError
Converts to this type from the input type.
Source§impl From<ExpandError> for Error
impl From<ExpandError> for Error
Source§fn from(e: ExpandError) -> Error
fn from(e: ExpandError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for ExpandError
impl PartialEq for ExpandError
impl StructuralPartialEq for ExpandError
Auto Trait Implementations§
impl Freeze for ExpandError
impl RefUnwindSafe for ExpandError
impl Send for ExpandError
impl Sync for ExpandError
impl Unpin for ExpandError
impl UnsafeUnpin for ExpandError
impl UnwindSafe for ExpandError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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