pub enum ExceptHandlerRef<'a> {
ExceptHandler(&'a ExceptHandlerExceptHandler),
}Expand description
See also excepthandler
Variants§
ExceptHandler(&'a ExceptHandlerExceptHandler)
Implementations§
Source§impl<'a> ExceptHandlerRef<'a>
impl<'a> ExceptHandlerRef<'a>
Sourcepub const fn is_except_handler(&self) -> bool
pub const fn is_except_handler(&self) -> bool
Returns true if self is of variant ExceptHandler.
Sourcepub fn as_except_handler(&self) -> Option<&&'a ExceptHandlerExceptHandler>
pub fn as_except_handler(&self) -> Option<&&'a ExceptHandlerExceptHandler>
Returns Some if self is a reference of variant ExceptHandler, and None otherwise.
Sourcepub fn as_mut_except_handler(
&mut self,
) -> Option<&mut &'a ExceptHandlerExceptHandler>
pub fn as_mut_except_handler( &mut self, ) -> Option<&mut &'a ExceptHandlerExceptHandler>
Returns Some if self is a mutable reference of variant ExceptHandler, and None otherwise.
Sourcepub fn expect_except_handler(self) -> &'a ExceptHandlerExceptHandlerwhere
Self: Debug,
pub fn expect_except_handler(self) -> &'a ExceptHandlerExceptHandlerwhere
Self: Debug,
Unwraps the value, yielding the content of ExceptHandler.
§Panics
Panics if the value is not ExceptHandler, with a panic message including the content of self.
Sourcepub fn except_handler(self) -> Option<&'a ExceptHandlerExceptHandler>
pub fn except_handler(self) -> Option<&'a ExceptHandlerExceptHandler>
Returns Some if self is of variant ExceptHandler, and None otherwise.
Trait Implementations§
Source§impl<'a> Clone for ExceptHandlerRef<'a>
impl<'a> Clone for ExceptHandlerRef<'a>
Source§fn clone(&self) -> ExceptHandlerRef<'a>
fn clone(&self) -> ExceptHandlerRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ExceptHandlerRef<'a>
impl<'a> Debug for ExceptHandlerRef<'a>
Source§impl<'a> From<&'a ExceptHandler> for ExceptHandlerRef<'a>
impl<'a> From<&'a ExceptHandler> for ExceptHandlerRef<'a>
Source§fn from(node: &'a ExceptHandler) -> Self
fn from(node: &'a ExceptHandler) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ExceptHandlerExceptHandler> for ExceptHandlerRef<'a>
impl<'a> From<&'a ExceptHandlerExceptHandler> for ExceptHandlerRef<'a>
Source§fn from(node: &'a ExceptHandlerExceptHandler) -> Self
fn from(node: &'a ExceptHandlerExceptHandler) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ExceptHandlerRef<'a>> for AnyNodeRef<'a>
impl<'a> From<ExceptHandlerRef<'a>> for AnyNodeRef<'a>
Source§fn from(node: ExceptHandlerRef<'a>) -> AnyNodeRef<'a>
fn from(node: ExceptHandlerRef<'a>) -> AnyNodeRef<'a>
Converts to this type from the input type.
Source§impl HasNodeIndex for ExceptHandlerRef<'_>
impl HasNodeIndex for ExceptHandlerRef<'_>
Source§fn node_index(&self) -> &AtomicNodeIndex
fn node_index(&self) -> &AtomicNodeIndex
Returns the
AtomicNodeIndex for this node.Source§impl<'a> PartialEq for ExceptHandlerRef<'a>
impl<'a> PartialEq for ExceptHandlerRef<'a>
Source§impl Ranged for ExceptHandlerRef<'_>
impl Ranged for ExceptHandlerRef<'_>
impl<'a> Copy for ExceptHandlerRef<'a>
impl<'a> StructuralPartialEq for ExceptHandlerRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExceptHandlerRef<'a>
impl<'a> RefUnwindSafe for ExceptHandlerRef<'a>
impl<'a> Send for ExceptHandlerRef<'a>
impl<'a> Sync for ExceptHandlerRef<'a>
impl<'a> Unpin for ExceptHandlerRef<'a>
impl<'a> UnsafeUnpin for ExceptHandlerRef<'a>
impl<'a> UnwindSafe for ExceptHandlerRef<'a>
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<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