[][src]Struct qt_qml::q_qml_abstract_url_interceptor::DataType

#[repr(transparent)]pub struct DataType(_);

Specifies where URL interception is taking place.

C++ enum: QQmlAbstractUrlInterceptor::DataType.

C++ documentation:

Specifies where URL interception is taking place.

Because QML loads qmldir files for locating types, there are two URLs involved in loading a QML type. The URL of the (possibly implicit) qmldir used for locating the type and the URL of the file which defines the type. Intercepting both leads to either complex URL replacement or double URL replacements for the same file.

Methods

impl DataType[src]

pub fn to_int(&self) -> c_int[src]

impl DataType[src]

pub const QmlFile: DataType[src]

The URL being intercepted is for a Qml file. Intercepting this, but not the Qmldir file, leaves the base dir of a QML file untouched and acts like replacing the file with another file. (C++ enum variant: QmlFile = 0)

pub const JavaScriptFile: DataType[src]

The URL being intercepted is an import for a Javascript file. (C++ enum variant: JavaScriptFile = 1)

pub const QmldirFile: DataType[src]

The URL being intercepted is for a Qmldir file. Intercepting this, but not the QmlFile, allows for swapping out entire sub trees. (C++ enum variant: QmldirFile = 2)

pub const UrlString: DataType[src]

The URL being intercepted is a url property in a QML file, and not being used to load a file through the engine. (C++ enum variant: UrlString = 4096)

Trait Implementations

impl Clone for DataType[src]

impl Copy for DataType[src]

impl Debug for DataType[src]

impl Eq for DataType[src]

impl From<DataType> for c_int[src]

impl From<i32> for DataType[src]

impl PartialEq<DataType> for DataType[src]

impl StructuralEq for DataType[src]

impl StructuralPartialEq for DataType[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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

impl<T> StaticUpcast<T> for 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.