Struct qt_core::QCborValueRef

source ·
#[repr(C)]
pub struct QCborValueRef { /* private fields */ }
Expand description

C++ class: QCborValueRef.

Implementations§

source§

impl QCborValueRef

source

pub unsafe fn compare(&self, other: impl CastInto<Ref<QCborValue>>) -> c_int

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: int QCborValueRef::compare(const QCborValue& other) const.

source

pub unsafe fn copy_from_q_cbor_value( &self, other: impl CastInto<Ref<QCborValue>> ) -> Ref<QCborValueRef>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborValueRef& QCborValueRef::operator=(const QCborValue& other).

source

pub unsafe fn copy_from_q_cbor_value_ref( &self, other: impl CastInto<Ref<QCborValueRef>> ) -> Ref<QCborValueRef>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborValueRef& QCborValueRef::operator=(const QCborValueRef& other).

source

pub unsafe fn index_q_string( &self, key: impl CastInto<Ref<QString>> ) -> CppBox<QCborValue>

Available on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If there's no key matching key in the map or if this QCborValueRef object is not a map, returns the undefined value.

Calls C++ function: QCborValue QCborValueRef::operator[](const QString& key) const.

C++ documentation:

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If there’s no key matching key in the map or if this QCborValueRef object is not a map, returns the undefined value.

This function is equivalent to:

value.toMap().value(key);

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

source

pub unsafe fn index_q_latin1_string( &self, key: impl CastInto<Ref<QLatin1String>> ) -> CppBox<QCborValue>

Available on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This is an overloaded function.

Calls C++ function: QCborValue QCborValueRef::operator[](QLatin1String key) const.

C++ documentation:

This is an overloaded function.

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If there's no key matching key in the map or if this QCborValueRef object is not a map, returns the undefined value.

This function is equivalent to:

value.toMap().value(key);

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

source

pub unsafe fn index_i64(&self, key: i64) -> CppBox<QCborValue>

Available on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This is an overloaded function.

Calls C++ function: QCborValue QCborValueRef::operator[](qint64 key) const.

C++ documentation:

This is an overloaded function.

If this QCborValueRef refers to a QCborMap, searches elements for the value whose key matches key. If this is a QCborArray, returns the element whose index is key. If there's no matching value in the array or map, or if this QCborValueRef object is not an array or map, returns the undefined value.

See also operator[], QCborMap::operator[], QCborMap::value(), QCborMap::find(), QCborArray::operator[], and QCborArray::at().

source

pub unsafe fn index_i64_mut(&self, key: i64) -> CppBox<QCborValueRef>

Available on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This is an overloaded function.

Calls C++ function: QCborValueRef QCborValueRef::operator[](qint64 key).

C++ documentation:

This is an overloaded function.

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map or array, with the given key. When this QCborValue is a QCborMap or, for 0 <= key < 0x10000, a QCborArray, this function is equivalent to the matching operator[] on that map or array.

Before returning the reference: if the QCborValue referenced was an array but the key is out of range, the array is first converted to a map (so that map[i] is array[i] for each index, i, with valid array[i]); otherwise, if it was not a map it will be over-written with an empty map.

See also operator[], QCborMap::operator[], QCborMap::value(), QCborMap::find(), QCborArray::operator[], and QCborArray::at().

source

pub unsafe fn index_q_latin1_string_mut( &self, key: impl CastInto<Ref<QLatin1String>> ) -> CppBox<QCborValueRef>

Available on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

This is an overloaded function.

Calls C++ function: QCborValueRef QCborValueRef::operator[](QLatin1String key).

C++ documentation:

This is an overloaded function.

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map, with the given key. When this QCborValue is a QCborMap, this function is equivalent to the matching operator[] on that map.

Before returning the reference: if the QCborValue referenced was an array, it is first converted to a map (so that map[i] is array[i] for each index, i, with valid array[i]); otherwise, if it was not a map it will be over-written with an empty map.

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

source

pub unsafe fn index_q_string_mut( &self, key: impl CastInto<Ref<QString>> ) -> CppBox<QCborValueRef>

Available on cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map, with the given key. When this QCborValueRef refers to a QCborMap, this function is equivalent to the matching operator[] on that map.

Calls C++ function: QCborValueRef QCborValueRef::operator[](const QString& key).

C++ documentation:

Returns a QCborValueRef that can be used to read or modify the entry in this, as a map, with the given key. When this QCborValueRef refers to a QCborMap, this function is equivalent to the matching operator[] on that map.

Before returning the reference: if the QCborValue referenced was an array, it is first converted to a map (so that map[i] is array[i] for each index, i, with valid array[i]); otherwise, if it was not a map it will be over-written with an empty map.

See also operator[](qint64), QCborMap::operator[], QCborMap::value(), and QCborMap::find().

source

pub unsafe fn is_array(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isArray() const.

source

pub unsafe fn is_bool(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isBool() const.

source

pub unsafe fn is_byte_array(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isByteArray() const.

source

pub unsafe fn is_container(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isContainer() const.

source

pub unsafe fn is_date_time(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isDateTime() const.

source

pub unsafe fn is_double(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isDouble() const.

source

pub unsafe fn is_false(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isFalse() const.

source

pub unsafe fn is_integer(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isInteger() const.

source

pub unsafe fn is_invalid(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isInvalid() const.

source

pub unsafe fn is_map(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isMap() const.

source

pub unsafe fn is_null(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isNull() const.

source

pub unsafe fn is_regular_expression(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isRegularExpression() const.

source

pub unsafe fn is_simple_type_0a(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isSimpleType() const.

source

pub unsafe fn is_simple_type_1a(&self, st: QCborSimpleType) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isSimpleType(QCborSimpleType st) const.

source

pub unsafe fn is_string(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isString() const.

source

pub unsafe fn is_tag(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isTag() const.

source

pub unsafe fn is_true(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isTrue() const.

source

pub unsafe fn is_undefined(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isUndefined() const.

source

pub unsafe fn is_url(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isUrl() const.

source

pub unsafe fn is_uuid(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::isUuid() const.

source

pub unsafe fn new_copy( arg1: impl CastInto<Ref<QCborValueRef>> ) -> CppBox<QCborValueRef>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: [constructor] void QCborValueRef::QCborValueRef(const QCborValueRef& arg1).

source

pub unsafe fn tag_1a(&self, default_value: QCborTag) -> QCborTag

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborTag QCborValueRef::tag(QCborTag defaultValue = …) const.

source

pub unsafe fn tag_0a(&self) -> QCborTag

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborTag QCborValueRef::tag() const.

source

pub unsafe fn tagged_value_1a( &self, default_value: impl CastInto<Ref<QCborValue>> ) -> CppBox<QCborValue>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborValue QCborValueRef::taggedValue(const QCborValue& defaultValue = …) const.

source

pub unsafe fn tagged_value_0a(&self) -> CppBox<QCborValue>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborValue QCborValueRef::taggedValue() const.

source

pub unsafe fn to_array_0a(&self) -> CppBox<QCborArray>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborArray QCborValueRef::toArray() const.

source

pub unsafe fn to_array_1a( &self, a: impl CastInto<Ref<QCborArray>> ) -> CppBox<QCborArray>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborArray QCborValueRef::toArray(const QCborArray& a) const.

source

pub unsafe fn to_bool_1a(&self, default_value: bool) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::toBool(bool defaultValue = …) const.

source

pub unsafe fn to_bool_0a(&self) -> bool

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: bool QCborValueRef::toBool() const.

source

pub unsafe fn to_byte_array_1a( &self, default_value: impl CastInto<Ref<QByteArray>> ) -> CppBox<QByteArray>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QByteArray QCborValueRef::toByteArray(const QByteArray& defaultValue = …) const.

source

pub unsafe fn to_byte_array_0a(&self) -> CppBox<QByteArray>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QByteArray QCborValueRef::toByteArray() const.

source

pub unsafe fn to_cbor_q_flags_encoding_option( &self, opt: QFlags<EncodingOption> ) -> CppBox<QByteArray>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QByteArray QCborValueRef::toCbor(QFlags<QCborValue::EncodingOption> opt = …).

source

pub unsafe fn to_cbor_q_cbor_stream_writer_q_flags_encoding_option( &self, writer: impl CastInto<Ref<QCborStreamWriter>>, opt: QFlags<EncodingOption> )

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: void QCborValueRef::toCbor(QCborStreamWriter& writer, QFlags<QCborValue::EncodingOption> opt = …).

source

pub unsafe fn to_cbor(&self) -> CppBox<QByteArray>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QByteArray QCborValueRef::toCbor().

source

pub unsafe fn to_cbor_q_cbor_stream_writer( &self, writer: impl CastInto<Ref<QCborStreamWriter>> )

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: void QCborValueRef::toCbor(QCborStreamWriter& writer).

source

pub unsafe fn to_date_time_1a( &self, default_value: impl CastInto<Ref<QDateTime>> ) -> CppBox<QDateTime>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QDateTime QCborValueRef::toDateTime(const QDateTime& defaultValue = …) const.

source

pub unsafe fn to_date_time_0a(&self) -> CppBox<QDateTime>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QDateTime QCborValueRef::toDateTime() const.

source

pub unsafe fn to_diagnostic_notation_1a( &self, opt: QFlags<DiagnosticNotationOption> ) -> CppBox<QString>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QString QCborValueRef::toDiagnosticNotation(QFlags<QCborValue::DiagnosticNotationOption> opt = …).

source

pub unsafe fn to_diagnostic_notation_0a(&self) -> CppBox<QString>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QString QCborValueRef::toDiagnosticNotation().

source

pub unsafe fn to_double_1a(&self, default_value: c_double) -> c_double

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: double QCborValueRef::toDouble(double defaultValue = …) const.

source

pub unsafe fn to_double_0a(&self) -> c_double

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: double QCborValueRef::toDouble() const.

source

pub unsafe fn to_integer_1a(&self, default_value: i64) -> i64

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: qint64 QCborValueRef::toInteger(qint64 defaultValue = …) const.

source

pub unsafe fn to_integer_0a(&self) -> i64

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: qint64 QCborValueRef::toInteger() const.

source

pub unsafe fn to_json_value(&self) -> CppBox<QJsonValue>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QJsonValue QCborValueRef::toJsonValue() const.

source

pub unsafe fn to_map_0a(&self) -> CppBox<QCborMap>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborMap QCborValueRef::toMap() const.

source

pub unsafe fn to_map_1a( &self, m: impl CastInto<Ref<QCborMap>> ) -> CppBox<QCborMap>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborMap QCborValueRef::toMap(const QCborMap& m) const.

source

pub unsafe fn to_q_cbor_value(&self) -> CppBox<QCborValue>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborValue QCborValueRef::operator QCborValue() const.

source

pub unsafe fn to_regular_expression_1a( &self, default_value: impl CastInto<Ref<QRegularExpression>> ) -> CppBox<QRegularExpression>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QRegularExpression QCborValueRef::toRegularExpression(const QRegularExpression& defaultValue = …) const.

source

pub unsafe fn to_regular_expression_0a(&self) -> CppBox<QRegularExpression>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QRegularExpression QCborValueRef::toRegularExpression() const.

source

pub unsafe fn to_string_1a( &self, default_value: impl CastInto<Ref<QString>> ) -> CppBox<QString>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QString QCborValueRef::toString(const QString& defaultValue = …) const.

source

pub unsafe fn to_string_0a(&self) -> CppBox<QString>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QString QCborValueRef::toString() const.

source

pub unsafe fn to_url_1a( &self, default_value: impl CastInto<Ref<QUrl>> ) -> CppBox<QUrl>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QUrl QCborValueRef::toUrl(const QUrl& defaultValue = …) const.

source

pub unsafe fn to_url_0a(&self) -> CppBox<QUrl>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QUrl QCborValueRef::toUrl() const.

source

pub unsafe fn to_uuid_1a( &self, default_value: impl CastInto<Ref<QUuid>> ) -> CppBox<QUuid>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QUuid QCborValueRef::toUuid(const QUuid& defaultValue = …) const.

source

pub unsafe fn to_uuid_0a(&self) -> CppBox<QUuid>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QUuid QCborValueRef::toUuid() const.

source

pub unsafe fn to_variant(&self) -> CppBox<QVariant>

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QVariant QCborValueRef::toVariant() const.

source

pub unsafe fn type_(&self) -> Type

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.

Calls C++ function: QCborValue::Type QCborValueRef::type() const.

Trait Implementations§

source§

impl CppDeletable for QCborValueRef

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QCborValueRef::~QCborValueRef().

source§

impl Lt<Ref<QCborValue>> for QCborValueRef

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

unsafe fn lt(&self, other: &Ref<QCborValue>) -> bool

Calls C++ function: bool QCborValueRef::operator<(const QCborValue& other) const.

source§

impl PartialEq<Ref<QCborValue>> for QCborValueRef

Available on cpp_lib_version="5.12.2" or cpp_lib_version="5.13.0" or cpp_lib_version="5.14.0" only.
source§

fn eq(&self, other: &Ref<QCborValue>) -> bool

Calls C++ function: bool QCborValueRef::operator==(const QCborValue& other) const.

1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
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> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

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

§

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>,

§

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.