Enum quil_rs::quil::ToQuilError
source · #[non_exhaustive]pub enum ToQuilError {
FormatError(Error),
UnresolvedLabelPlaceholder,
UnresolvedQubitPlaceholder,
}
Expand description
Errors which can occur when converting a Quil item to a string.
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.
Trait Implementations§
source§impl Debug for ToQuilError
impl Debug for ToQuilError
source§impl Display for ToQuilError
impl Display for ToQuilError
source§impl Error for ToQuilError
impl Error for ToQuilError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ToQuilError
impl From<Error> for ToQuilError
source§impl PartialEq<ToQuilError> for ToQuilError
impl PartialEq<ToQuilError> for ToQuilError
source§fn eq(&self, other: &ToQuilError) -> bool
fn eq(&self, other: &ToQuilError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ToQuilError
Auto Trait Implementations§
impl RefUnwindSafe for ToQuilError
impl Send for ToQuilError
impl Sync for ToQuilError
impl Unpin for ToQuilError
impl UnwindSafe for ToQuilError
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