Skip to main content

FunctionId

Enum FunctionId 

Source
#[repr(u16)]
pub enum FunctionId {
Show 107 variants Concat = 1, StringJoin = 2, Substring = 3, StringLength = 4, NormalizeSpace = 5, NormalizeUnicode = 6, UpperCase = 7, LowerCase = 8, Translate = 9, EncodeForUri = 10, IriToUri = 11, EscapeHtmlUri = 12, Contains = 13, StartsWith = 14, EndsWith = 15, SubstringBefore = 16, SubstringAfter = 17, StringToCodepoints = 18, CodepointsToString = 19, Compare = 20, CodepointEqual = 21, Abs = 100, Ceiling = 101, Floor = 102, Round = 103, RoundHalfToEven = 104, Empty = 200, Exists = 201, Reverse = 202, IndexOf = 203, Remove = 204, InsertBefore = 205, Subsequence = 206, Unordered = 207, ZeroOrOne = 208, OneOrMore = 209, ExactlyOne = 210, DistinctValues = 211, DeepEqual = 212, Count = 213, Sum = 300, Avg = 301, Min = 302, Max = 303, Name = 400, LocalName = 401, NamespaceUri = 402, NodeName = 403, Nilled = 404, BaseUri = 405, DocumentUri = 406, Lang = 407, Root = 408, Id = 409, Collection = 410, DateTime = 500, CurrentDateTime = 501, CurrentDate = 502, CurrentTime = 503, ImplicitTimezone = 504, YearsFromDuration = 505, MonthsFromDuration = 506, DaysFromDuration = 507, HoursFromDuration = 508, MinutesFromDuration = 509, SecondsFromDuration = 510, YearFromDateTime = 511, MonthFromDateTime = 512, DayFromDateTime = 513, HoursFromDateTime = 514, MinutesFromDateTime = 515, SecondsFromDateTime = 516, TimezoneFromDateTime = 517, YearFromDate = 518, MonthFromDate = 519, DayFromDate = 520, TimezoneFromDate = 521, HoursFromTime = 522, MinutesFromTime = 523, SecondsFromTime = 524, TimezoneFromTime = 525, AdjustDateTimeToTimezone = 526, AdjustDateToTimezone = 527, AdjustTimeToTimezone = 528, ResolveQName = 600, QName = 601, PrefixFromQName = 602, LocalNameFromQName = 603, NamespaceUriFromQName = 604, NamespaceUriForPrefix = 605, InScopePrefixes = 606, ResolveUri = 700, StaticBaseUri = 701, Matches = 800, Replace = 801, Tokenize = 802, Position = 900, Last = 901, Trace = 902, Data = 903, DefaultCollation = 904, True = 1_000, False = 1001, Not = 1002, Boolean = 1003, String = 1_100, Number = 1101,
}
Expand description

XPath function identifiers.

Each variant corresponds to a built-in XPath 2.0 function. This enum allows bind-time function resolution without generic type parameters.

Variants§

§

Concat = 1

fn:concat($arg1, $arg2, …)

§

StringJoin = 2

fn:string-join($arg1, $arg2)

§

Substring = 3

fn:substring($sourceString, $start, $length?)

§

StringLength = 4

fn:string-length($arg?)

§

NormalizeSpace = 5

fn:normalize-space($arg?)

§

NormalizeUnicode = 6

fn:normalize-unicode($arg, $normalizationForm?)

§

UpperCase = 7

fn:upper-case($arg)

§

LowerCase = 8

fn:lower-case($arg)

§

Translate = 9

fn:translate($arg, $mapString, $transString)

§

EncodeForUri = 10

fn:encode-for-uri($uri-part)

§

IriToUri = 11

fn:iri-to-uri($iri)

§

EscapeHtmlUri = 12

fn:escape-html-uri($uri)

§

Contains = 13

fn:contains($arg1, $arg2, $collation?)

§

StartsWith = 14

fn:starts-with($arg1, $arg2, $collation?)

§

EndsWith = 15

fn:ends-with($arg1, $arg2, $collation?)

§

SubstringBefore = 16

fn:substring-before($arg1, $arg2, $collation?)

§

SubstringAfter = 17

fn:substring-after($arg1, $arg2, $collation?)

§

StringToCodepoints = 18

fn:string-to-codepoints($arg)

§

CodepointsToString = 19

fn:codepoints-to-string($arg)

§

Compare = 20

fn:compare($comparand1, $comparand2, $collation?)

§

CodepointEqual = 21

fn:codepoint-equal($comparand1, $comparand2)

§

Abs = 100

fn:abs($arg)

§

Ceiling = 101

fn:ceiling($arg)

§

Floor = 102

fn:floor($arg)

§

Round = 103

fn:round($arg)

§

RoundHalfToEven = 104

fn:round-half-to-even($arg, $precision?)

§

Empty = 200

fn:empty($arg)

§

Exists = 201

fn:exists($arg)

§

Reverse = 202

fn:reverse($arg)

§

IndexOf = 203

fn:index-of($seq, $search, $collation?)

§

Remove = 204

fn:remove($target, $position)

§

InsertBefore = 205

fn:insert-before($target, $position, $inserts)

§

Subsequence = 206

fn:subsequence($sourceSeq, $startingLoc, $length?)

§

Unordered = 207

fn:unordered($sourceSeq)

§

ZeroOrOne = 208

fn:zero-or-one($arg)

§

OneOrMore = 209

fn:one-or-more($arg)

§

ExactlyOne = 210

fn:exactly-one($arg)

§

DistinctValues = 211

fn:distinct-values($arg, $collation?)

§

DeepEqual = 212

fn:deep-equal($parameter1, $parameter2, $collation?)

§

Count = 213

fn:count($arg)

§

Sum = 300

fn:sum($arg, $zero?)

§

Avg = 301

fn:avg($arg)

§

Min = 302

fn:min($arg, $collation?)

§

Max = 303

fn:max($arg, $collation?)

§

Name = 400

fn:name($arg?)

§

LocalName = 401

fn:local-name($arg?)

§

NamespaceUri = 402

fn:namespace-uri($arg?)

§

NodeName = 403

fn:node-name($arg?)

§

Nilled = 404

fn:nilled($arg)

§

BaseUri = 405

fn:base-uri($arg?)

§

DocumentUri = 406

fn:document-uri($arg)

§

Lang = 407

fn:lang($testlang, $node?)

§

Root = 408

fn:root($arg?)

§

Id = 409

fn:id($arg as xs:string*, $node as node()) as element()*

§

Collection = 410

fn:collection($arg as xs:string?) as node()*

§

DateTime = 500

fn:dateTime($arg1, $arg2)

§

CurrentDateTime = 501

fn:current-dateTime()

§

CurrentDate = 502

fn:current-date()

§

CurrentTime = 503

fn:current-time()

§

ImplicitTimezone = 504

fn:implicit-timezone()

§

YearsFromDuration = 505

fn:years-from-duration($arg)

§

MonthsFromDuration = 506

fn:months-from-duration($arg)

§

DaysFromDuration = 507

fn:days-from-duration($arg)

§

HoursFromDuration = 508

fn:hours-from-duration($arg)

§

MinutesFromDuration = 509

fn:minutes-from-duration($arg)

§

SecondsFromDuration = 510

fn:seconds-from-duration($arg)

§

YearFromDateTime = 511

fn:year-from-dateTime($arg)

§

MonthFromDateTime = 512

fn:month-from-dateTime($arg)

§

DayFromDateTime = 513

fn:day-from-dateTime($arg)

§

HoursFromDateTime = 514

fn:hours-from-dateTime($arg)

§

MinutesFromDateTime = 515

fn:minutes-from-dateTime($arg)

§

SecondsFromDateTime = 516

fn:seconds-from-dateTime($arg)

§

TimezoneFromDateTime = 517

fn:timezone-from-dateTime($arg)

§

YearFromDate = 518

fn:year-from-date($arg)

§

MonthFromDate = 519

fn:month-from-date($arg)

§

DayFromDate = 520

fn:day-from-date($arg)

§

TimezoneFromDate = 521

fn:timezone-from-date($arg)

§

HoursFromTime = 522

fn:hours-from-time($arg)

§

MinutesFromTime = 523

fn:minutes-from-time($arg)

§

SecondsFromTime = 524

fn:seconds-from-time($arg)

§

TimezoneFromTime = 525

fn:timezone-from-time($arg)

§

AdjustDateTimeToTimezone = 526

fn:adjust-dateTime-to-timezone($arg, $timezone?)

§

AdjustDateToTimezone = 527

fn:adjust-date-to-timezone($arg, $timezone?)

§

AdjustTimeToTimezone = 528

fn:adjust-time-to-timezone($arg, $timezone?)

§

ResolveQName = 600

fn:resolve-QName($qname, $element)

§

QName = 601

fn:QName($paramURI, $paramLocal)

§

PrefixFromQName = 602

fn:prefix-from-QName($arg)

§

LocalNameFromQName = 603

fn:local-name-from-QName($arg)

§

NamespaceUriFromQName = 604

fn:namespace-uri-from-QName($arg)

§

NamespaceUriForPrefix = 605

fn:namespace-uri-for-prefix($prefix, $element)

§

InScopePrefixes = 606

fn:in-scope-prefixes($element)

§

ResolveUri = 700

fn:resolve-uri($relative, $base?)

§

StaticBaseUri = 701

fn:static-base-uri()

§

Matches = 800

fn:matches($input, $pattern, $flags?)

§

Replace = 801

fn:replace($input, $pattern, $replacement, $flags?)

§

Tokenize = 802

fn:tokenize($input, $pattern, $flags?)

§

Position = 900

fn:position()

§

Last = 901

fn:last()

§

Trace = 902

fn:trace($value, $label?)

§

Data = 903

fn:data($arg)

§

DefaultCollation = 904

fn:default-collation()

§

True = 1_000

fn:true()

§

False = 1001

fn:false()

§

Not = 1002

fn:not($arg)

§

Boolean = 1003

fn:boolean($arg)

§

String = 1_100

fn:string($arg?)

§

Number = 1101

fn:number($arg?)

Trait Implementations§

Source§

impl Clone for FunctionId

Source§

fn clone(&self) -> FunctionId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FunctionId

Source§

impl Debug for FunctionId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for FunctionId

Source§

impl From<FunctionId> for FunctionHandle

Source§

fn from(id: FunctionId) -> Self

Converts to this type from the input type.
Source§

impl Hash for FunctionId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for FunctionId

Source§

fn eq(&self, other: &FunctionId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for FunctionId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.