pub struct FunctionRef<'a> {
pub name: Cow<'a, str>,
pub options: Options<'a>,
}Expand description
A function reference: its identifier and options.
Fields§
§name: Cow<'a, str>The identifier, e.g. "number" or "ns:fn", without the : sigil.
options: Options<'a>The options, in source order.
Implementations§
Source§impl FunctionRef<'_>
impl FunctionRef<'_>
Sourcepub fn into_owned(self) -> FunctionRef<'static>
pub fn into_owned(self) -> FunctionRef<'static>
The same reference, owned.
Trait Implementations§
Source§impl<'a> Clone for FunctionRef<'a>
impl<'a> Clone for FunctionRef<'a>
Source§impl<'a> Debug for FunctionRef<'a>
impl<'a> Debug for FunctionRef<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for FunctionRef<'a>
Available on crate feature serde only.
impl<'de: 'a, 'a> Deserialize<'de> for FunctionRef<'a>
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for FunctionRef<'a>
Source§impl<'a> Hash for FunctionRef<'a>
impl<'a> Hash for FunctionRef<'a>
Source§impl<'a> PartialEq for FunctionRef<'a>
impl<'a> PartialEq for FunctionRef<'a>
Source§impl Serialize for FunctionRef<'_>
Available on crate feature serde only.
impl Serialize for FunctionRef<'_>
Available on crate feature
serde only.impl<'a> StructuralPartialEq for FunctionRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for FunctionRef<'a>
impl<'a> RefUnwindSafe for FunctionRef<'a>
impl<'a> Send for FunctionRef<'a>
impl<'a> Sync for FunctionRef<'a>
impl<'a> Unpin for FunctionRef<'a>
impl<'a> UnsafeUnpin for FunctionRef<'a>
impl<'a> UnwindSafe for FunctionRef<'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