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) -> Urlwhere
Self: Debug,
pub fn expect_url(self) -> Urlwhere
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) -> Functionwhere
Self: Debug,
pub fn expect_function(self) -> Functionwhere
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 moresourceimpl<'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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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