pub struct FunctionSig {
pub params: Vec<SequenceType>,
pub ret: SequenceType,
}Expand description
The signature of a specific function test function(T1, …, Tn) as R
(XPath 3.1 §2.5.4.3). Drives the function-subtyping rules applied by
instance of / treat as: the parameter types are contravariant and
the return type is covariant.
Fields§
§params: Vec<SequenceType>§ret: SequenceTypeTrait Implementations§
Source§impl Clone for FunctionSig
impl Clone for FunctionSig
Source§fn clone(&self) -> FunctionSig
fn clone(&self) -> FunctionSig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionSig
impl Debug for FunctionSig
Source§impl PartialEq for FunctionSig
impl PartialEq for FunctionSig
Source§fn eq(&self, other: &FunctionSig) -> bool
fn eq(&self, other: &FunctionSig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionSig
Auto Trait Implementations§
impl Freeze for FunctionSig
impl RefUnwindSafe for FunctionSig
impl Send for FunctionSig
impl Sync for FunctionSig
impl Unpin for FunctionSig
impl UnsafeUnpin for FunctionSig
impl UnwindSafe for FunctionSig
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