Enum ql2::term::TermType[][src]

#[repr(i32)]pub enum TermType {
    Datum,
    MakeArray,
    MakeObj,
    Var,
    Javascript,
    Uuid,
    Http,
    Error,
    ImplicitVar,
    Db,
    Table,
    Get,
    GetAll,
    Eq,
    Ne,
    Lt,
    Le,
    Gt,
    Ge,
    Not,
    Add,
    Sub,
    Mul,
    Div,
    Mod,
    Floor,
    Ceil,
    Round,
    Append,
    Prepend,
    Difference,
    SetInsert,
    SetIntersection,
    SetUnion,
    SetDifference,
    Slice,
    Skip,
    Limit,
    OffsetsOf,
    Contains,
    GetField,
    Keys,
    Values,
    Object,
    HasFields,
    WithFields,
    Pluck,
    Without,
    Merge,
    BetweenDeprecated,
    Between,
    Reduce,
    Map,
    Fold,
    Filter,
    ConcatMap,
    OrderBy,
    Distinct,
    Count,
    IsEmpty,
    Union,
    Nth,
    Bracket,
    InnerJoin,
    OuterJoin,
    EqJoin,
    Zip,
    Range,
    InsertAt,
    DeleteAt,
    ChangeAt,
    SpliceAt,
    CoerceTo,
    TypeOf,
    Update,
    Delete,
    Replace,
    Insert,
    DbCreate,
    DbDrop,
    DbList,
    TableCreate,
    TableDrop,
    TableList,
    Config,
    Status,
    Wait,
    Reconfigure,
    Rebalance,
    Sync,
    Grant,
    IndexCreate,
    IndexDrop,
    IndexList,
    IndexStatus,
    IndexWait,
    IndexRename,
    SetWriteHook,
    GetWriteHook,
    Funcall,
    Branch,
    Or,
    And,
    ForEach,
    Func,
    Asc,
    Desc,
    Info,
    Match,
    Upcase,
    Downcase,
    Sample,
    Default,
    Json,
    Iso8601,
    ToIso8601,
    EpochTime,
    ToEpochTime,
    Now,
    InTimezone,
    During,
    Date,
    TimeOfDay,
    Timezone,
    Year,
    Month,
    Day,
    DayOfWeek,
    DayOfYear,
    Hours,
    Minutes,
    Seconds,
    Time,
    Monday,
    Tuesday,
    Wednesday,
    Thursday,
    Friday,
    Saturday,
    Sunday,
    January,
    February,
    March,
    April,
    May,
    June,
    July,
    August,
    September,
    October,
    November,
    December,
    Literal,
    Group,
    Sum,
    Avg,
    Min,
    Max,
    Split,
    Ungroup,
    Random,
    Changes,
    Args,
    Binary,
    Geojson,
    ToGeojson,
    Point,
    Line,
    Polygon,
    Distance,
    Intersects,
    Includes,
    Circle,
    GetIntersecting,
    Fill,
    GetNearest,
    PolygonSub,
    ToJsonString,
    Minval,
    Maxval,
    BitAnd,
    BitOr,
    BitXor,
    BitNot,
    BitSal,
    BitSar,
}

Variants

Datum

A RQL datum, stored in datum below.

MakeArray

DATUM… -> ARRAY

MakeObj

Evaluate the terms in [optargs] and make an object

{…} -> OBJECT

Var

Takes an integer representing a variable and returns the value stored in that variable. It’s the responsibility of the client to translate from their local representation of a variable to a unique non-negative integer for that variable. (We do it this way instead of letting clients provide variable names as strings to discourage variable-capturing client libraries, and because it’s more efficient on the wire.)

!NUMBER -> DATUM

Javascript

Takes some javascript code and executes it.

STRING {timeout: !NUMBER} -> DATUM |

Uuid

STRING {timeout: !NUMBER} -> Function(*)

() -> DATUM

Http

Takes an HTTP URL and gets it. If the get succeeds and returns valid JSON, it is converted into a DATUM

STRING {data: OBJECT | STRING,

Error

Takes a string and throws an error with that message. Inside of a default block, you can omit the first argument to rethrow whatever error you catch (this is most useful as an argument to the default filter optarg).

STRING -> Error | -> Error

ImplicitVar

Takes nothing and returns a reference to the implicit variable.

-> DATUM

Db
  • Data Operators Returns a reference to a database.

STRING -> Database

Table

Returns a reference to a table.

Database, STRING, {read_mode:STRING, identifier_format:STRING} -> Table

Get

STRING, {read_mode:STRING, identifier_format:STRING} -> Table Gets a single element from a table by its primary or a secondary key.

Table, STRING -> SingleSelection | Table, NUMBER -> SingleSelection |

GetAll

Table, STRING -> NULL | Table, NUMBER -> NULL |

Table, DATUM…, {index:!STRING} => ARRAY

Eq

Simple DATUM Ops

DATUM… -> BOOL

Ne

DATUM… -> BOOL

Lt

DATUM… -> BOOL

Le

DATUM… -> BOOL

Gt

DATUM… -> BOOL

Ge

DATUM… -> BOOL

Not

BOOL -> BOOL

Add

ADD can either add two numbers or concatenate two arrays.

NUMBER… -> NUMBER | STRING… -> STRING

Sub

NUMBER… -> NUMBER

Mul

NUMBER… -> NUMBER

Div

NUMBER… -> NUMBER

Mod

NUMBER, NUMBER -> NUMBER

Floor

NUMBER -> NUMBER

Ceil

NUMBER -> NUMBER

Round

NUMBER -> NUMBER

Append

DATUM Array Ops Append a single element to the end of an array (like snoc).

ARRAY, DATUM -> ARRAY

Prepend

Prepend a single element to the end of an array (like cons).

ARRAY, DATUM -> ARRAY

Difference

Remove the elements of one array from another array.

ARRAY, ARRAY -> ARRAY

SetInsert

DATUM Set Ops Set ops work on arrays. They don’t use actual sets and thus have performance characteristics you would expect from arrays rather than from sets. All set operations have the post condition that they array they return contains no duplicate values.

ARRAY, DATUM -> ARRAY

SetIntersection

ARRAY, ARRAY -> ARRAY

SetUnion

ARRAY, ARRAY -> ARRAY

SetDifference

ARRAY, ARRAY -> ARRAY

Slice

Sequence, NUMBER, NUMBER -> Sequence

Skip

Sequence, NUMBER -> Sequence

Limit

Sequence, NUMBER -> Sequence

OffsetsOf

Sequence, DATUM -> Sequence | Sequence, Function(1) -> Sequence

Contains

Sequence, (DATUM | Function(1))… -> BOOL

GetField

Stream/Object Ops Get a particular field from an object, or map that over a sequence.

OBJECT, STRING -> DATUM

Keys

| Sequence, STRING -> Sequence Return an array containing the keys of the object.

OBJECT -> ARRAY

Values

Return an array containing the values of the object.

OBJECT -> ARRAY

Object

Creates an object

STRING, DATUM, … -> OBJECT

HasFields

Check whether an object contains all the specified fields, or filters a sequence so that all objects inside of it contain all the specified fields.

OBJECT, Pathspec… -> BOOL

WithFields

x.with_fields(…) <=> x.has_fields(…).pluck(…)

Sequence, Pathspec… -> Sequence

Pluck

Get a subset of an object by selecting some attributes to preserve, or map that over a sequence. (Both pick and pluck, polymorphic.)

Sequence, Pathspec… -> Sequence | OBJECT, Pathspec… -> OBJECT

Without

Get a subset of an object by selecting some attributes to discard, or map that over a sequence. (Both unpick and without, polymorphic.)

Sequence, Pathspec… -> Sequence | OBJECT, Pathspec… -> OBJECT

Merge

Merge objects (right-preferential)

OBJECT… -> OBJECT | Sequence -> Sequence

BetweenDeprecated

Sequence Ops Get all elements of a sequence between two values. Half-open by default, but the openness of either side can be changed by passing ‘closed’ or ’open for right_bound or left_bound.

Deprecated version of between, which allows null to specify unboundedness

Between

With the newer version, clients should use r.minval and r.maxval for unboundedness

StreamSelection, DATUM, DATUM, {index:!STRING, right_bound:STRING, left_bound:STRING} -> StreamSelection

Reduce

Sequence, Function(2) -> DATUM

Map

Sequence, Function(1) -> Sequence

Fold

Sequence, Datum, Function(2), {Function(3), Function(1)

Filter

Filter a sequence with either a function or a shortcut object (see API docs for details). The body of FILTER is wrapped in an implicit .default(false), and you can change the default value by specifying the default optarg. If you make the default r.error, all errors caught by default will be rethrown as if the default did not exist.

Sequence, Function(1), {default:DATUM} -> Sequence |

ConcatMap

Sequence, OBJECT, {default:DATUM} -> Sequence Map a function over a sequence and then concatenate the results together.

Sequence, Function(1) -> Sequence

OrderBy

Order a sequence based on one or more attributes.

Sequence, (!STRING | Ordering)…, {index: (!STRING | Ordering)} -> Sequence

Distinct

Get all distinct elements of a sequence (like uniq).

Sequence -> Sequence

Count

Count the number of elements in a sequence, or only the elements that match a given filter.

Sequence -> NUMBER | Sequence, DATUM -> NUMBER | Sequence, Function(1) -> NUMBER

IsEmpty

Sequence -> BOOL

Union

Take the union of multiple sequences (preserves duplicate elements! (use distinct)).

Sequence… -> Sequence

Nth

Get the Nth element of a sequence.

Sequence, NUMBER -> DATUM

Bracket

do NTH or GET_FIELD depending on target object

Sequence | OBJECT, NUMBER | STRING -> DATUM

InnerJoin

Sequence, Sequence, Function(2) -> Sequence

OuterJoin

Sequence, Sequence, Function(2) -> Sequence

EqJoin

An inner-join that does an equality comparison on two attributes.

Sequence, !STRING, Sequence, {index:!STRING} -> Sequence

Zip

Sequence -> Sequence

Range

-> Sequence [0, +inf)

InsertAt

Array Ops Insert an element in to an array at a given index.

ARRAY, NUMBER, DATUM -> ARRAY

DeleteAt

Remove an element at a given index from an array.

ARRAY, NUMBER -> ARRAY |

ChangeAt

ARRAY, NUMBER, NUMBER -> ARRAY Change the element at a given index of an array.

ARRAY, NUMBER, DATUM -> ARRAY

SpliceAt

Splice one array in to another array.

ARRAY, NUMBER, ARRAY -> ARRAY

CoerceTo
  • Type Ops Coerces a datum to a named type (e.g. “bool”). If you previously used stream_to_array, you should use this instead with the type “array”.

Top, STRING -> Top

TypeOf

Returns the named type of a datum (e.g. TYPE_OF(true) = “BOOL”)

Top -> STRING

Update
  • Write Ops (the OBJECTs contain data about number of errors etc.) Updates all the rows in a selection. Calls its Function with the row to be updated, and then merges the result of that call.

StreamSelection, Function(1), {non_atomic:BOOL, durability:STRING, return_changes:BOOL} -> OBJECT |

Delete

SingleSelection, Function(1), {non_atomic:BOOL, durability:STRING, return_changes:BOOL} -> OBJECT | StreamSelection, OBJECT, {non_atomic:BOOL, durability:STRING, return_changes:BOOL} -> OBJECT | SingleSelection, OBJECT, {non_atomic:BOOL, durability:STRING, return_changes:BOOL} -> OBJECT Deletes all the rows in a selection.

StreamSelection, {durability:STRING, return_changes:BOOL} -> OBJECT | SingleSelection -> OBJECT

Replace

Replaces all the rows in a selection. Calls its Function with the row to be replaced, and then discards it and stores the result of that call.

StreamSelection, Function(1), {non_atomic:BOOL, durability:STRING, return_changes:BOOL} -> OBJECT | SingleSelection, Function(1), {non_atomic:BOOL, durability:STRING, return_changes:BOOL} -> OBJECT

Insert

Inserts into a table. If conflict is replace, overwrites entries with the same primary key. If conflict is update, does an update on the entry. If conflict is error, or is omitted, conflicts will trigger an error.

Table, OBJECT, {conflict:STRING, durability:STRING, return_changes:BOOL} -> OBJECT | Table, Sequence, {conflict:STRING, durability:STRING, return_changes:BOOL} -> OBJECT

DbCreate
  • Administrative OPs Creates a database with a particular name.

STRING -> OBJECT

DbDrop

Drops a database with a particular name.

STRING -> OBJECT

DbList

Lists all the databases by name. (Takes no arguments)

-> ARRAY

TableCreate

Creates a table with a particular name in a particular database. (You may omit the first argument to use the default database.)

Database, STRING, {primary_key:STRING, shards:NUMBER, replicas:NUMBER, primary_replica_tag:STRING} -> OBJECT

TableDrop

Database, STRING, {primary_key:STRING, shards:NUMBER, replicas:OBJECT, primary_replica_tag:STRING} -> OBJECT STRING, {primary_key:STRING, shards:NUMBER, replicas:NUMBER, primary_replica_tag:STRING} -> OBJECT STRING, {primary_key:STRING, shards:NUMBER, replicas:OBJECT, primary_replica_tag:STRING} -> OBJECT Drops a table with a particular name from a particular database. (You may omit the first argument to use the default database.)

Database, STRING -> OBJECT

TableList

STRING -> OBJECT Lists all the tables in a particular database. (You may omit the first argument to use the default database.)

Database -> ARRAY

Config

-> ARRAY Returns the row in the rethinkdb.table_config or rethinkdb.db_config table that corresponds to the given database or table.

Database -> SingleSelection

Status

Table -> SingleSelection Returns the row in the rethinkdb.table_status table that corresponds to the given table.

Table -> SingleSelection

Wait

Called on a table, waits for that table to be ready for read/write operations. Called on a database, waits for all of the tables in the database to be ready. Returns the corresponding row or rows from the rethinkdb.table_status table.

Table -> OBJECT

Reconfigure

Database -> OBJECT Generates a new config for the given table, or all tables in the given database The shards and replicas arguments are required. If emergency_repair is specified, it will enter a completely different mode of repairing a table which has lost half or more of its replicas.

Database|Table, {shards:NUMBER, replicas:NUMBER [,

Rebalance
             dry_run:BOOLEAN]
            } -> OBJECT

Database|Table, {shards:NUMBER, replicas:OBJECT [, primary_replica_tag:STRING, nonvoting_replica_tags:ARRAY, dry_run:BOOLEAN] } -> OBJECT Table, {emergency_repair:STRING, dry_run:BOOLEAN} -> OBJECT Balances the table’s shards but leaves everything else the same. Can also be applied to an entire database at once.

Table -> OBJECT

Sync

Ensures that previously issued soft-durability writes are complete and written to disk.

Table -> OBJECT

Grant

Set global, database, or table-specific permissions

     -> OBJECT
IndexCreate
  • Secondary indexes OPs Creates a new secondary index with a particular name and definition.

Table, STRING, Function(1), {multi:BOOL} -> OBJECT

IndexDrop

Drops a secondary index with a particular name from the specified table.

Table, STRING -> OBJECT

IndexList

Lists all secondary indexes on a particular table.

Table -> ARRAY

IndexStatus

Gets information about whether or not a set of indexes are ready to be accessed. Returns a list of objects that look like this: {index:STRING, ready:BOOL[, progress:NUMBER]}

Table, STRING… -> ARRAY

IndexWait

Blocks until a set of indexes are ready to be accessed. Returns the same values INDEX_STATUS.

Table, STRING… -> ARRAY

IndexRename

Renames the given index to a new name

Table, STRING, STRING, {overwrite:BOOL} -> OBJECT

SetWriteHook
  • Write hook Function OPs Creates a new write hook function with a particular definition

Table, Function(2)

GetWriteHook

Gets an existing write hook function on a table

Table

Funcall
  • Control Operators Calls a function on data

Function(*), DATUM… -> DATUM

Branch

Executes its first argument, and returns its second argument if it got true or its third argument if it got false (like an if statement).

BOOL, Top, Top -> Top

Or

Returns true if any of its arguments returns true (short-circuits).

BOOL… -> BOOL

And

Returns true if all of its arguments return true (short-circuits).

BOOL… -> BOOL

ForEach

Calls its Function with each entry in the sequence and executes the array of terms that Function returns.

Sequence, Function(1) -> OBJECT

Func

An anonymous function. Takes an array of numbers representing variables (see [VAR] above), and a [Term] to execute with those in scope. Returns a function that may be passed an array of arguments, then executes the Term with those bound to the variable names. The user will never construct this directly. We use it internally for things like map which take a function. The “arity” of a [Function] is the number of arguments it takes. For example, here’s what _X_.map{|x| x+2} turns into: Term { type = MAP; args = [X, Term { type = Function; args = [Term { type = DATUM; datum = Datum { type = R_ARRAY; r_array = [Datum { type = R_NUM; r_num = 1; }]; }; }, Term { type = ADD; args = [Term { type = VAR; args = [Term { type = DATUM; datum = Datum { type = R_NUM; r_num = 1}; }]; }, Term { type = DATUM; datum = Datum { type = R_NUM; r_num = 2; }; }]; }]; }];

ARRAY, Top -> ARRAY -> Top

Asc

Indicates to ORDER_BY that this attribute is to be sorted in ascending order.

!STRING -> Ordering

Desc

Indicates to ORDER_BY that this attribute is to be sorted in descending order.

!STRING -> Ordering

Info

Gets info about anything. INFO is most commonly called on tables.

Top -> OBJECT

Match

a.match(b) returns a match object if the string a matches the regular expression b.

STRING, STRING -> DATUM

Upcase

Change the case of a string.

STRING -> STRING

Downcase

STRING -> STRING

Sample

Select a number of elements from sequence with uniform distribution.

Sequence, NUMBER -> Sequence

Default

Evaluates its first argument. If that argument returns NULL or throws an error related to the absence of an expected value (for instance, accessing a non-existent field or adding NULL to an integer), DEFAULT will either return its second argument or execute it if it’s a function. If the second argument is a function, it will be passed either the text of the error or NULL as its argument.

Top, Top -> Top

Json

Parses its first argument as a json string and returns it as a datum.

STRING -> DATUM

Iso8601

Parses its first arguments as an ISO 8601 time and returns it as a datum.

STRING -> PSEUDOTYPE(TIME)

ToIso8601

Prints a time as an ISO 8601 time.

PSEUDOTYPE(TIME) -> STRING

EpochTime

Returns a time given seconds since epoch in UTC.

NUMBER -> PSEUDOTYPE(TIME)

ToEpochTime

Returns seconds since epoch in UTC given a time.

PSEUDOTYPE(TIME) -> NUMBER

Now

The time the query was received by the server.

-> PSEUDOTYPE(TIME)

InTimezone

Puts a time into an ISO 8601 timezone.

PSEUDOTYPE(TIME), STRING -> PSEUDOTYPE(TIME)

During

a.during(b, c) returns whether a is in the range [b, c)

PSEUDOTYPE(TIME), PSEUDOTYPE(TIME), PSEUDOTYPE(TIME) -> BOOL

Date

Retrieves the date portion of a time.

PSEUDOTYPE(TIME) -> PSEUDOTYPE(TIME)

TimeOfDay

x.time_of_day == x.date - x

PSEUDOTYPE(TIME) -> NUMBER

Timezone

Returns the timezone of a time.

PSEUDOTYPE(TIME) -> STRING

Year

These access the various components of a time.

PSEUDOTYPE(TIME) -> NUMBER

Month

PSEUDOTYPE(TIME) -> NUMBER

Day

PSEUDOTYPE(TIME) -> NUMBER

DayOfWeek

PSEUDOTYPE(TIME) -> NUMBER

DayOfYear

PSEUDOTYPE(TIME) -> NUMBER

Hours

PSEUDOTYPE(TIME) -> NUMBER

Minutes

PSEUDOTYPE(TIME) -> NUMBER

Seconds

PSEUDOTYPE(TIME) -> NUMBER

Time

Construct a time from a date and optional timezone or a date+time and optional timezone.

NUMBER, NUMBER, NUMBER, STRING -> PSEUDOTYPE(TIME) |

Monday

Constants for ISO 8601 days of the week.

-> 1

Tuesday

-> 2

Wednesday

-> 3

Thursday

-> 4

Friday

-> 5

Saturday

-> 6

Sunday

-> 7

January

Constants for ISO 8601 months.

-> 1

February

-> 2

March

-> 3

April

-> 4

May

-> 5

June

-> 6

July

-> 7

August

-> 8

September

-> 9

October

-> 10

November

-> 11

December

-> 12

Literal

Indicates to MERGE to replace, or remove in case of an empty literal, the other object rather than merge it.

-> Merging

Group

SEQUENCE, STRING -> GROUPED_SEQUENCE | SEQUENCE, FUNCTION -> GROUPED_SEQUENCE

Sum
Avg
Min
Max
Split

str.split() splits on whitespace str.split(" ") splits on spaces only str.split(" ", 5) splits on spaces with at most 5 results str.split(nil, 5) splits on whitespace with at most 5 results

STRING -> ARRAY | STRING, STRING -> ARRAY | STRING, STRING, NUMBER -> ARRAY | STRING, NULL, NUMBER -> ARRAY

Ungroup

GROUPED_DATA -> ARRAY

Random

Takes a range of numbers and returns a random number within the range

NUMBER, NUMBER {float:BOOL} -> DATUM

Changes

TABLE -> STREAM

Args

ARRAY -> SPECIAL (used to splice arguments)

Binary

BINARY is client-only at the moment, it is not supported on the server

STRING -> PSEUDOTYPE(BINARY)

Geojson

OBJECT -> PSEUDOTYPE(GEOMETRY)

ToGeojson

PSEUDOTYPE(GEOMETRY) -> OBJECT

Point

NUMBER, NUMBER -> PSEUDOTYPE(GEOMETRY)

Line

(ARRAY | PSEUDOTYPE(GEOMETRY))… -> PSEUDOTYPE(GEOMETRY)

Polygon

(ARRAY | PSEUDOTYPE(GEOMETRY))… -> PSEUDOTYPE(GEOMETRY)

Distance

PSEUDOTYPE(GEOMETRY), PSEUDOTYPE(GEOMETRY) {geo_system:STRING, unit:STRING} -> NUMBER

Intersects

PSEUDOTYPE(GEOMETRY), PSEUDOTYPE(GEOMETRY) -> BOOL

Includes

PSEUDOTYPE(GEOMETRY), PSEUDOTYPE(GEOMETRY) -> BOOL

Circle

PSEUDOTYPE(GEOMETRY), NUMBER {num_vertices:NUMBER, geo_system:STRING, unit:STRING, fill:BOOL} -> PSEUDOTYPE(GEOMETRY)

GetIntersecting

TABLE, PSEUDOTYPE(GEOMETRY) {index:!STRING} -> StreamSelection

Fill

PSEUDOTYPE(GEOMETRY) -> PSEUDOTYPE(GEOMETRY)

GetNearest

TABLE, PSEUDOTYPE(GEOMETRY) {index:!STRING, max_results:NUM, max_dist:NUM, geo_system:STRING, unit:STRING} -> ARRAY

PolygonSub

PSEUDOTYPE(GEOMETRY), PSEUDOTYPE(GEOMETRY) -> PSEUDOTYPE(GEOMETRY)

ToJsonString

Returns the datum as a JSON string. N.B.: we would really prefer this be named TO_JSON and that exists as an alias in Python and JavaScript drivers; however it conflicts with the standard to_json method defined by Ruby’s standard json library.

DATUM -> STRING

Minval

Constants for specifying key ranges

Maxval
BitAnd

Bitwise operations

BitOr
BitXor
BitNot
BitSal
BitSar

Implementations

impl TermType[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of TermType.

pub fn from_i32(value: i32) -> Option<TermType>[src]

Converts an i32 to a TermType, or None if value is not a valid variant.

Trait Implementations

impl Clone for TermType[src]

impl Copy for TermType[src]

impl Debug for TermType[src]

impl Default for TermType[src]

impl<'de> Deserialize<'de> for TermType[src]

impl Eq for TermType[src]

impl Hash for TermType[src]

impl Ord for TermType[src]

impl PartialEq<TermType> for TermType[src]

impl PartialOrd<TermType> for TermType[src]

impl Serialize for TermType[src]

impl StructuralEq for TermType[src]

impl StructuralPartialEq for TermType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.