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

Binding to Qt QUrl.

Invariants

As an invariant of this API and the static analysis of the cxx::bridge macro, in Rust code we can never obtain a QUrl by value. Qt’s QUrl requires a move constructor and may hold internal pointers, which is not compatible with Rust’s move behavior. Instead in Rust code we will only ever look at a QUrl through a reference or smart pointer, as in &QUrl or UniquePtr<QUrl>.

Implementations

Create a new Rust Url from this QUrl. This is a copy operation so any changes will not propagate to the original QUrl.

Trait Implementations

A type-level representation of the type’s C++ namespace and type name. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.