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

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

C++ class: QTimeZone::OffsetData.

C++ documentation:

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:

Implementations§

source§

impl OffsetData

source

pub unsafe fn abbreviation(&self) -> Ref<QString>

Returns a reference to the abbreviation field.

source

pub unsafe fn abbreviation_mut(&self) -> Ref<QString>

Returns a mutable reference to the abbreviation field.

source

pub unsafe fn at_utc(&self) -> Ref<QDateTime>

Returns a reference to the atUtc field.

source

pub unsafe fn at_utc_mut(&self) -> Ref<QDateTime>

Returns a mutable reference to the atUtc field.

source

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

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

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

C++ documentation:

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:

source

pub unsafe fn daylight_time_offset(&self) -> c_int

Returns the value of the daylightTimeOffset field.

source

pub unsafe fn new() -> CppBox<OffsetData>

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

Calls C++ function: [constructor] void QTimeZone::OffsetData::OffsetData().

C++ documentation:

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:

source

pub unsafe fn new_copy( other: impl CastInto<Ref<OffsetData>> ) -> CppBox<OffsetData>

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

Calls C++ function: [constructor] void QTimeZone::OffsetData::OffsetData(const QTimeZone::OffsetData& other).

C++ documentation:

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:

source

pub unsafe fn offset_from_utc(&self) -> c_int

Returns the value of the offsetFromUtc field.

source

pub unsafe fn set_abbreviation(&self, value: impl CastInto<Ref<QString>>)

Sets the value of the abbreviation field.

source

pub unsafe fn set_at_utc(&self, value: impl CastInto<Ref<QDateTime>>)

Sets the value of the atUtc field.

source

pub unsafe fn set_daylight_time_offset(&self, value: c_int)

Sets the value of the daylightTimeOffset field.

source

pub unsafe fn set_offset_from_utc(&self, value: c_int)

Sets the value of the offsetFromUtc field.

source

pub unsafe fn set_standard_time_offset(&self, value: c_int)

Sets the value of the standardTimeOffset field.

source

pub unsafe fn standard_time_offset(&self) -> c_int

Returns the value of the standardTimeOffset field.

Trait Implementations§

source§

impl CppDeletable for OffsetData

source§

unsafe fn delete(&self)

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

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

C++ documentation:

The time zone offset data for a given moment in time, i.e. the time zone offsets and abbreviation to use at that moment in time.

For example, for time zone "Europe/Berlin" the OffsetDate in standard and DST might be:

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.