Variants
Url(Url)
Function(Function)
Implementations
sourceimpl DocumentPreludeMatchingFunction
impl DocumentPreludeMatchingFunction
sourcepub fn as_url(&self) -> Option<&Url>
pub fn as_url(&self) -> Option<&Url>
Returns Some
if self
is a reference of variant Url
, and None
otherwise.
sourcepub fn as_mut_url(&mut self) -> Option<&mut Url>
pub fn as_mut_url(&mut self) -> Option<&mut Url>
Returns Some
if self
is a mutable reference of variant Url
, and None
otherwise.
sourcepub fn expect_url(self) -> Url where
Self: Debug,
pub fn expect_url(self) -> Url where
Self: Debug,
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Returns true
if self
is of variant Function
.
sourcepub fn as_function(&self) -> Option<&Function>
pub fn as_function(&self) -> Option<&Function>
Returns Some
if self
is a reference of variant Function
, and None
otherwise.
sourcepub fn as_mut_function(&mut self) -> Option<&mut Function>
pub fn as_mut_function(&mut self) -> Option<&mut Function>
Returns Some
if self
is a mutable reference of variant Function
, and None
otherwise.
sourcepub fn expect_function(self) -> Function where
Self: Debug,
pub fn expect_function(self) -> Function where
Self: Debug,
Trait Implementations
sourceimpl Clone for DocumentPreludeMatchingFunction
impl Clone for DocumentPreludeMatchingFunction
sourcefn clone(&self) -> DocumentPreludeMatchingFunction
fn clone(&self) -> DocumentPreludeMatchingFunction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for DocumentPreludeMatchingFunction
impl<'de> Deserialize<'de> for DocumentPreludeMatchingFunction
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for DocumentPreludeMatchingFunction
impl EqIgnoreSpan for DocumentPreludeMatchingFunction
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<Url> for DocumentPreludeMatchingFunction
impl From<Url> for DocumentPreludeMatchingFunction
sourceimpl PartialEq<DocumentPreludeMatchingFunction> for DocumentPreludeMatchingFunction
impl PartialEq<DocumentPreludeMatchingFunction> for DocumentPreludeMatchingFunction
sourcefn eq(&self, other: &DocumentPreludeMatchingFunction) -> bool
fn eq(&self, other: &DocumentPreludeMatchingFunction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for DocumentPreludeMatchingFunction
impl StructuralEq for DocumentPreludeMatchingFunction
impl StructuralPartialEq for DocumentPreludeMatchingFunction
Auto Trait Implementations
impl RefUnwindSafe for DocumentPreludeMatchingFunction
impl Send for DocumentPreludeMatchingFunction
impl Sync for DocumentPreludeMatchingFunction
impl Unpin for DocumentPreludeMatchingFunction
impl UnwindSafe for DocumentPreludeMatchingFunction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more