diff --git a/git/docs/cairo/enum.Antialias.html b/git/docs/cairo/enum.Antialias.html index 164f1e1c8cb9..ea957aa71ca2 100644 --- a/git/docs/cairo/enum.Antialias.html +++ b/git/docs/cairo/enum.Antialias.html @@ -95,8 +95,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.Content.html b/git/docs/cairo/enum.Content.html index bd026a212463..9da0e9aca2b8 100644 --- a/git/docs/cairo/enum.Content.html +++ b/git/docs/cairo/enum.Content.html @@ -91,8 +91,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.DeviceType.html b/git/docs/cairo/enum.DeviceType.html index e8f2e761e3c4..06ead79c69a9 100644 --- a/git/docs/cairo/enum.DeviceType.html +++ b/git/docs/cairo/enum.DeviceType.html @@ -97,8 +97,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.Extend.html b/git/docs/cairo/enum.Extend.html index efb7c46033b9..1477c6052680 100644 --- a/git/docs/cairo/enum.Extend.html +++ b/git/docs/cairo/enum.Extend.html @@ -92,8 +92,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.FillRule.html b/git/docs/cairo/enum.FillRule.html index 8253e417000a..2898ac2df87f 100644 --- a/git/docs/cairo/enum.FillRule.html +++ b/git/docs/cairo/enum.FillRule.html @@ -90,8 +90,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.Filter.html b/git/docs/cairo/enum.Filter.html index ad4c3d4e0bf8..f4b3264c127c 100644 --- a/git/docs/cairo/enum.Filter.html +++ b/git/docs/cairo/enum.Filter.html @@ -94,8 +94,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.FontSlant.html b/git/docs/cairo/enum.FontSlant.html index 086023d7d8c1..7c1d29330af5 100644 --- a/git/docs/cairo/enum.FontSlant.html +++ b/git/docs/cairo/enum.FontSlant.html @@ -91,8 +91,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.FontType.html b/git/docs/cairo/enum.FontType.html index d411fa38ea9c..2b69ad128e29 100644 --- a/git/docs/cairo/enum.FontType.html +++ b/git/docs/cairo/enum.FontType.html @@ -94,8 +94,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.FontWeight.html b/git/docs/cairo/enum.FontWeight.html index 6fe4d497a20e..01d33888647e 100644 --- a/git/docs/cairo/enum.FontWeight.html +++ b/git/docs/cairo/enum.FontWeight.html @@ -90,8 +90,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.Format.html b/git/docs/cairo/enum.Format.html index e5fa1f24f360..6789618207db 100644 --- a/git/docs/cairo/enum.Format.html +++ b/git/docs/cairo/enum.Format.html @@ -92,8 +92,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.HintMetrics.html b/git/docs/cairo/enum.HintMetrics.html index be6696fc15ce..aac636359a90 100644 --- a/git/docs/cairo/enum.HintMetrics.html +++ b/git/docs/cairo/enum.HintMetrics.html @@ -91,8 +91,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.HintStyle.html b/git/docs/cairo/enum.HintStyle.html index 75a30f88e805..08a9c2396b38 100644 --- a/git/docs/cairo/enum.HintStyle.html +++ b/git/docs/cairo/enum.HintStyle.html @@ -93,8 +93,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.LineCap.html b/git/docs/cairo/enum.LineCap.html index fec339f12efe..a9b92583b080 100644 --- a/git/docs/cairo/enum.LineCap.html +++ b/git/docs/cairo/enum.LineCap.html @@ -91,8 +91,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.LineJoin.html b/git/docs/cairo/enum.LineJoin.html index dab0318a02a3..b03bea8e4873 100644 --- a/git/docs/cairo/enum.LineJoin.html +++ b/git/docs/cairo/enum.LineJoin.html @@ -91,8 +91,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.Operator.html b/git/docs/cairo/enum.Operator.html index 1f0cb9c46aaa..32c9d12fed00 100644 --- a/git/docs/cairo/enum.Operator.html +++ b/git/docs/cairo/enum.Operator.html @@ -117,8 +117,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.PathDataType.html b/git/docs/cairo/enum.PathDataType.html index c44fd8c06a47..a4020b16dce6 100644 --- a/git/docs/cairo/enum.PathDataType.html +++ b/git/docs/cairo/enum.PathDataType.html @@ -92,8 +92,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.PatternType.html b/git/docs/cairo/enum.PatternType.html index 8f6ecd6571bd..e7a1fbd8d12b 100644 --- a/git/docs/cairo/enum.PatternType.html +++ b/git/docs/cairo/enum.PatternType.html @@ -94,8 +94,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.RegionOverlap.html b/git/docs/cairo/enum.RegionOverlap.html index 902824222ce3..764a0fadfde3 100644 --- a/git/docs/cairo/enum.RegionOverlap.html +++ b/git/docs/cairo/enum.RegionOverlap.html @@ -88,8 +88,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.SubpixelOrder.html b/git/docs/cairo/enum.SubpixelOrder.html index f1889be8fbb4..cf1f519e67bc 100644 --- a/git/docs/cairo/enum.SubpixelOrder.html +++ b/git/docs/cairo/enum.SubpixelOrder.html @@ -93,8 +93,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.SurfaceType.html b/git/docs/cairo/enum.SurfaceType.html index 05c08e93cfe0..dbf08ef15e19 100644 --- a/git/docs/cairo/enum.SurfaceType.html +++ b/git/docs/cairo/enum.SurfaceType.html @@ -110,8 +110,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/enum.TextClusterFlags.html b/git/docs/cairo/enum.TextClusterFlags.html index efba246554d3..b1788ee29e74 100644 --- a/git/docs/cairo/enum.TextClusterFlags.html +++ b/git/docs/cairo/enum.TextClusterFlags.html @@ -90,8 +90,8 @@
Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

fn into_closure_return_value(self) -> Option<Value>

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/cairo/struct.FontOptions.html b/git/docs/cairo/struct.FontOptions.html index 5710aa30f530..4cb37efac9a0 100644 --- a/git/docs/cairo/struct.FontOptions.html +++ b/git/docs/cairo/struct.FontOptions.html @@ -115,8 +115,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

type GlibType = <T as GlibPtrDefault>::GlibType

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/cairo/struct.Matrix.html b/git/docs/cairo/struct.Matrix.html index 1308376b2630..ad0eb03e3805 100644 --- a/git/docs/cairo/struct.Matrix.html +++ b/git/docs/cairo/struct.Matrix.html @@ -83,8 +83,8 @@ From<T> for U chooses to do.

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
Source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where diff --git a/git/docs/cairo/struct.Rectangle.html b/git/docs/cairo/struct.Rectangle.html index 212d0a47e3d3..bfd68020a149 100644 --- a/git/docs/cairo/struct.Rectangle.html +++ b/git/docs/cairo/struct.Rectangle.html @@ -83,8 +83,8 @@ From<T> for U chooses to do.

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
Source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where diff --git a/git/docs/cairo/struct.RectangleInt.html b/git/docs/cairo/struct.RectangleInt.html index 60eec632975c..a42a6abdada7 100644 --- a/git/docs/cairo/struct.RectangleInt.html +++ b/git/docs/cairo/struct.RectangleInt.html @@ -83,8 +83,8 @@ From<T> for U chooses to do.

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
Source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where diff --git a/git/docs/gdk_pixbuf/enum.Colorspace.html b/git/docs/gdk_pixbuf/enum.Colorspace.html index e79794c5493f..e5343e712778 100644 --- a/git/docs/gdk_pixbuf/enum.Colorspace.html +++ b/git/docs/gdk_pixbuf/enum.Colorspace.html @@ -101,8 +101,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.

\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/enum.InterpType.html b/git/docs/gdk_pixbuf/enum.InterpType.html index 98a4cc2148e3..5272b6568777 100644 --- a/git/docs/gdk_pixbuf/enum.InterpType.html +++ b/git/docs/gdk_pixbuf/enum.InterpType.html @@ -128,8 +128,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/enum.PixbufAlphaMode.html b/git/docs/gdk_pixbuf/enum.PixbufAlphaMode.html index 6bdcf24ad483..26bf8aa360a9 100644 --- a/git/docs/gdk_pixbuf/enum.PixbufAlphaMode.html +++ b/git/docs/gdk_pixbuf/enum.PixbufAlphaMode.html @@ -117,8 +117,8 @@

HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/enum.PixbufError.html b/git/docs/gdk_pixbuf/enum.PixbufError.html index 7e2f6a72bdc2..4d6c5f19f7fa 100644 --- a/git/docs/gdk_pixbuf/enum.PixbufError.html +++ b/git/docs/gdk_pixbuf/enum.PixbufError.html @@ -114,8 +114,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/enum.PixbufRotation.html b/git/docs/gdk_pixbuf/enum.PixbufRotation.html index ff1210185b6f..8ca056840505 100644 --- a/git/docs/gdk_pixbuf/enum.PixbufRotation.html +++ b/git/docs/gdk_pixbuf/enum.PixbufRotation.html @@ -106,8 +106,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/struct.PixbufFormat.html b/git/docs/gdk_pixbuf/struct.PixbufFormat.html index a791e38acc52..0e41261d1378 100644 --- a/git/docs/gdk_pixbuf/struct.PixbufFormat.html +++ b/git/docs/gdk_pixbuf/struct.PixbufFormat.html @@ -170,8 +170,8 @@
§disabledHasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

type GlibType = <T as GlibPtrDefault>::GlibType

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

fn try_from_closure_return_value(v: Option<Value>) -> Result<T, BoolError>

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gdk_pixbuf/subclass/prelude/trait.DerivedObjectProperties.html b/git/docs/gdk_pixbuf/subclass/prelude/trait.DerivedObjectProperties.html index eeb39b1b5a8b..7d8de93f873d 100644 --- a/git/docs/gdk_pixbuf/subclass/prelude/trait.DerivedObjectProperties.html +++ b/git/docs/gdk_pixbuf/subclass/prelude/trait.DerivedObjectProperties.html @@ -71,7 +71,7 @@ -
gdk_pixbuf::subclass::prelude

Trait DerivedObjectProperties

Source
pub trait DerivedObjectProperties: ObjectSubclass {
+
gdk_pixbuf::subclass::prelude

Trait DerivedObjectProperties

Source
pub trait DerivedObjectProperties: ObjectSubclass {
     // Provided methods
     fn derived_properties() -> &'static [ParamSpec] { ... }
     fn derived_set_property(
@@ -84,9 +84,9 @@
 }
Expand description

Trait containing only the property related functions of ObjectImpl. Implemented by the Properties macro. When implementing ObjectImpl you may want to delegate the function calls to this trait.

-

Provided Methods§

Source

fn derived_properties() -> &'static [ParamSpec]

Properties installed for this type.

-
Source

fn derived_set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)

Similar to ObjectImpl but auto-generated by the Properties macro +

Provided Methods§

Source

fn derived_properties() -> &'static [ParamSpec]

Properties installed for this type.

+
Source

fn derived_set_property(&self, _id: usize, _value: &Value, _pspec: &ParamSpec)

Similar to ObjectImpl but auto-generated by the Properties macro to allow handling more complex use-cases.

-
Source

fn derived_property(&self, _id: usize, _pspec: &ParamSpec) -> Value

Similar to ObjectImpl but auto-generated by the Properties macro +

Source

fn derived_property(&self, _id: usize, _pspec: &ParamSpec) -> Value

Similar to ObjectImpl but auto-generated by the Properties macro to allow handling more complex use-cases.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/subclass/prelude/trait.IsSubclassable.html b/git/docs/gdk_pixbuf/subclass/prelude/trait.IsSubclassable.html index 6d1d6817cb21..9882a78db857 100644 --- a/git/docs/gdk_pixbuf/subclass/prelude/trait.IsSubclassable.html +++ b/git/docs/gdk_pixbuf/subclass/prelude/trait.IsSubclassable.html @@ -90,5 +90,5 @@ T: IOStreamImpl,

Source§

fn class_init(class: &mut Class<IOStream>)

Source§

impl<T> IsSubclassable<T> for OutputStream

Source§

fn class_init(class: &mut Class<OutputStream>)

Source§

impl<T> IsSubclassable<T> for SocketControlMessage

Source§

fn class_init(class: &mut Class<SocketControlMessage>)

Implementors§

Source§

impl<T> IsSubclassable<T> for TypeModule
where - T: TypeModuleImpl,

Source§

impl<T> IsSubclassable<T> for Object
where + T: TypeModuleImpl,

Source§

impl<T> IsSubclassable<T> for Object
where T: ObjectImpl,

Source§

impl<T: PixbufAnimationImpl> IsSubclassable<T> for PixbufAnimation

Source§

impl<T: PixbufAnimationIterImpl> IsSubclassable<T> for PixbufAnimationIter

Source§

impl<T: PixbufLoaderImpl> IsSubclassable<T> for PixbufLoader

\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectClassSubclassExt.html b/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectClassSubclassExt.html index 03247de6b85a..65777eda5f0a 100644 --- a/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectClassSubclassExt.html +++ b/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectClassSubclassExt.html @@ -71,11 +71,11 @@ -
gdk_pixbuf::subclass::prelude

Trait ObjectClassSubclassExt

Source
pub unsafe trait ObjectClassSubclassExt: Sized + 'static {
+
gdk_pixbuf::subclass::prelude

Trait ObjectClassSubclassExt

Source
pub unsafe trait ObjectClassSubclassExt: Sized + 'static {
     // Provided method
     fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
        where F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static { ... }
 }
Expand description

Extension trait for glib::Object’s class struct.

This contains various class methods and allows subclasses to override signal class handlers.

-

Provided Methods§

Source

fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
where - F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file +

Provided Methods§

Source

fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
where + F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImpl.html b/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImpl.html index 556ef27e170e..5e583eef6ea2 100644 --- a/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImpl.html +++ b/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImpl.html @@ -102,9 +102,14 @@

The returned Value must be of the correct type for the given property. the generic getter for all properties of this type. Should be overridden for every type with properties.

-
Source

fn constructed(&self)

Constructed.

+
Source

fn constructed(&self)

Constructed.

This is called once construction of the instance is finished.

Should chain up to the parent class’ implementation. +FILE_AND_ARGV_ZERO –> +the first element of argv is the file to +execute, while the remaining elements are the actual argument vector +to pass to the file. Normally g_spawn_async_with_pipes() uses argv[0] +as the file to execute, and passes all of argv to the child. the constructed function is called by Object::new() as the final step of the object creation process. At the point of the call, all construction properties have been set on the object. The purpose of this @@ -112,7 +117,7 @@ after construction properties have been set. constructed implementors should chain up to the constructed call of their parent class to allow it to complete its initialisation.

-
Source

fn dispose(&self)

Disposes of the object.

+
Source

fn dispose(&self)

Disposes of the object.

When dispose() ends, the object should not hold any reference to any other member object. The object is also expected to be able to answer client method invocations (with possibly an error code but no memory violation) until it is dropped. dispose() can be executed more @@ -122,7 +127,7 @@ invocations still work. It may be run multiple times (due to reference loops). Before returning, dispose should chain up to the dispose method of the parent class.

-
Source

fn notify(&self, pspec: &ParamSpec)

Function to be called when property change is notified for with +

Source

fn notify(&self, pspec: &ParamSpec)

Function to be called when property change is notified for with self.notify("property"). Emits a “notify” signal for the property property_name on self.

When possible, eg. when signaling a property change from within the class @@ -132,7 +137,7 @@ ObjectExt::freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when [ObjectExt::thaw_notify()][crate::prelude::ObjectExt::thaw_notify()] is called.

-
Source

fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

emits property change notification for a bunch +

Source

fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

emits property change notification for a bunch of properties. Overriding dispatch_properties_changed should be rarely needed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImplExt.html b/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImplExt.html index 36b0d00a980f..c78a06e817ba 100644 --- a/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImplExt.html +++ b/git/docs/gdk_pixbuf/subclass/prelude/trait.ObjectImplExt.html @@ -71,7 +71,7 @@ -
gdk_pixbuf::subclass::prelude

Trait ObjectImplExt

Source
pub trait ObjectImplExt: ObjectImpl {
+
gdk_pixbuf::subclass::prelude

Trait ObjectImplExt

Source
pub trait ObjectImplExt: ObjectImpl {
     // Provided methods
     fn parent_constructed(&self) { ... }
     fn parent_notify(&self, pspec: &ParamSpec) { ... }
@@ -81,13 +81,13 @@
         token: &SignalClassHandlerToken,
         values: &[Value],
     ) -> Option<Value> { ... }
-}

Provided Methods§

Source

fn parent_constructed(&self)

Chain up to the parent class’ implementation of glib::Object::constructed().

-
Source

fn parent_notify(&self, pspec: &ParamSpec)

Chain up to the parent class’ implementation of glib::Object::notify().

-
Source

fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])

Chain up to the parent class’ implementation of glib::Object::dispatch_properties_changed().

-
Source

fn signal_chain_from_overridden( +}

Provided Methods§

Source

fn parent_constructed(&self)

Chain up to the parent class’ implementation of glib::Object::constructed().

+
Source

fn parent_notify(&self, pspec: &ParamSpec)

Chain up to the parent class’ implementation of glib::Object::notify().

+
Source

fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])

Chain up to the parent class’ implementation of glib::Object::dispatch_properties_changed().

+
Source

fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>

Chain up to parent class signal handler.

-

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> ObjectImplExt for T
where +

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> ObjectImplExt for T
where T: ObjectImpl,

\ No newline at end of file diff --git a/git/docs/gio/enum.BusType.html b/git/docs/gio/enum.BusType.html index d4b30b246c79..e5e6d3f08f0c 100644 --- a/git/docs/gio/enum.BusType.html +++ b/git/docs/gio/enum.BusType.html @@ -105,8 +105,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.ConverterResult.html b/git/docs/gio/enum.ConverterResult.html index c1228016b9bc..e43e65f1ba49 100644 --- a/git/docs/gio/enum.ConverterResult.html +++ b/git/docs/gio/enum.ConverterResult.html @@ -105,8 +105,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.CredentialsType.html b/git/docs/gio/enum.CredentialsType.html index f37ab1c1c59c..0ddc633bb748 100644 --- a/git/docs/gio/enum.CredentialsType.html +++ b/git/docs/gio/enum.CredentialsType.html @@ -113,8 +113,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.DBusMessageByteOrder.html b/git/docs/gio/enum.DBusMessageByteOrder.html index 6bd3c2726f16..908979745e40 100644 --- a/git/docs/gio/enum.DBusMessageByteOrder.html +++ b/git/docs/gio/enum.DBusMessageByteOrder.html @@ -101,8 +101,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.DBusMessageHeaderField.html b/git/docs/gio/enum.DBusMessageHeaderField.html index acd92249e61e..7d9194636775 100644 --- a/git/docs/gio/enum.DBusMessageHeaderField.html +++ b/git/docs/gio/enum.DBusMessageHeaderField.html @@ -117,8 +117,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.DBusMessageType.html b/git/docs/gio/enum.DBusMessageType.html index ba800c7c4936..7e0502ea7037 100644 --- a/git/docs/gio/enum.DBusMessageType.html +++ b/git/docs/gio/enum.DBusMessageType.html @@ -107,8 +107,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.DataStreamByteOrder.html b/git/docs/gio/enum.DataStreamByteOrder.html index df55f326159d..8e1631aef237 100644 --- a/git/docs/gio/enum.DataStreamByteOrder.html +++ b/git/docs/gio/enum.DataStreamByteOrder.html @@ -104,8 +104,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.DataStreamNewlineType.html b/git/docs/gio/enum.DataStreamNewlineType.html index bbbd1c11fc9b..27829e0f5ccd 100644 --- a/git/docs/gio/enum.DataStreamNewlineType.html +++ b/git/docs/gio/enum.DataStreamNewlineType.html @@ -105,8 +105,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.DriveStartStopType.html b/git/docs/gio/enum.DriveStartStopType.html index 781c75c02fb1..b1c4090cf9ee 100644 --- a/git/docs/gio/enum.DriveStartStopType.html +++ b/git/docs/gio/enum.DriveStartStopType.html @@ -114,8 +114,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.EmblemOrigin.html b/git/docs/gio/enum.EmblemOrigin.html index 3c3445755c5a..def109a83217 100644 --- a/git/docs/gio/enum.EmblemOrigin.html +++ b/git/docs/gio/enum.EmblemOrigin.html @@ -106,8 +106,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.FileAttributeStatus.html b/git/docs/gio/enum.FileAttributeStatus.html index c0488b433505..28e36b8e044d 100644 --- a/git/docs/gio/enum.FileAttributeStatus.html +++ b/git/docs/gio/enum.FileAttributeStatus.html @@ -103,8 +103,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.FileAttributeType.html b/git/docs/gio/enum.FileAttributeType.html index 7d0d9908b7a4..8b18936be619 100644 --- a/git/docs/gio/enum.FileAttributeType.html +++ b/git/docs/gio/enum.FileAttributeType.html @@ -117,8 +117,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.FileMonitorEvent.html b/git/docs/gio/enum.FileMonitorEvent.html index 2167558e5c05..0604f1effbd3 100644 --- a/git/docs/gio/enum.FileMonitorEvent.html +++ b/git/docs/gio/enum.FileMonitorEvent.html @@ -126,8 +126,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.FileType.html b/git/docs/gio/enum.FileType.html index 12bb142cf37f..a0cd7a5c7938 100644 --- a/git/docs/gio/enum.FileType.html +++ b/git/docs/gio/enum.FileType.html @@ -121,8 +121,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.IOErrorEnum.html b/git/docs/gio/enum.IOErrorEnum.html index fc676f0114ae..15e64571bf66 100644 --- a/git/docs/gio/enum.IOErrorEnum.html +++ b/git/docs/gio/enum.IOErrorEnum.html @@ -218,8 +218,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.MemoryMonitorWarningLevel.html b/git/docs/gio/enum.MemoryMonitorWarningLevel.html index 18d6bb42d6d7..0e2effc0cf90 100644 --- a/git/docs/gio/enum.MemoryMonitorWarningLevel.html +++ b/git/docs/gio/enum.MemoryMonitorWarningLevel.html @@ -113,8 +113,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.MountOperationResult.html b/git/docs/gio/enum.MountOperationResult.html index 2297ec09fa12..b70d7708b19a 100644 --- a/git/docs/gio/enum.MountOperationResult.html +++ b/git/docs/gio/enum.MountOperationResult.html @@ -107,8 +107,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.NetworkConnectivity.html b/git/docs/gio/enum.NetworkConnectivity.html index 05b59f96cd11..3e53e7b28b39 100644 --- a/git/docs/gio/enum.NetworkConnectivity.html +++ b/git/docs/gio/enum.NetworkConnectivity.html @@ -111,8 +111,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.NotificationPriority.html b/git/docs/gio/enum.NotificationPriority.html index fc52dacd6797..507f17ef861e 100644 --- a/git/docs/gio/enum.NotificationPriority.html +++ b/git/docs/gio/enum.NotificationPriority.html @@ -113,8 +113,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.PasswordSave.html b/git/docs/gio/enum.PasswordSave.html index 23cf86940a23..942d80f84f56 100644 --- a/git/docs/gio/enum.PasswordSave.html +++ b/git/docs/gio/enum.PasswordSave.html @@ -105,8 +105,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.PollableReturn.html b/git/docs/gio/enum.PollableReturn.html index 9b1f315a39a9..e8d870a267b1 100644 --- a/git/docs/gio/enum.PollableReturn.html +++ b/git/docs/gio/enum.PollableReturn.html @@ -109,8 +109,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.ResolverError.html b/git/docs/gio/enum.ResolverError.html index cf3996ba90fc..ad5f0808f80f 100644 --- a/git/docs/gio/enum.ResolverError.html +++ b/git/docs/gio/enum.ResolverError.html @@ -106,8 +106,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.ResolverRecordType.html b/git/docs/gio/enum.ResolverRecordType.html index 1c0aca340549..82806c244c67 100644 --- a/git/docs/gio/enum.ResolverRecordType.html +++ b/git/docs/gio/enum.ResolverRecordType.html @@ -131,8 +131,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.ResourceError.html b/git/docs/gio/enum.ResourceError.html index e57697fb08eb..e920a0655b06 100644 --- a/git/docs/gio/enum.ResourceError.html +++ b/git/docs/gio/enum.ResourceError.html @@ -102,8 +102,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.SocketClientEvent.html b/git/docs/gio/enum.SocketClientEvent.html index a5dcd83ada7f..2f19d1919aff 100644 --- a/git/docs/gio/enum.SocketClientEvent.html +++ b/git/docs/gio/enum.SocketClientEvent.html @@ -124,8 +124,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.SocketFamily.html b/git/docs/gio/enum.SocketFamily.html index b8784d7ba6d2..6bc0a81cc6d8 100644 --- a/git/docs/gio/enum.SocketFamily.html +++ b/git/docs/gio/enum.SocketFamily.html @@ -107,8 +107,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.SocketListenerEvent.html b/git/docs/gio/enum.SocketListenerEvent.html index 2c1ca925aa37..41aa1a76cb3a 100644 --- a/git/docs/gio/enum.SocketListenerEvent.html +++ b/git/docs/gio/enum.SocketListenerEvent.html @@ -109,8 +109,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.SocketProtocol.html b/git/docs/gio/enum.SocketProtocol.html index a41315e02e7c..66d303e1ee65 100644 --- a/git/docs/gio/enum.SocketProtocol.html +++ b/git/docs/gio/enum.SocketProtocol.html @@ -112,8 +112,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.SocketType.html b/git/docs/gio/enum.SocketType.html index d9fa29a1393b..3baa66c06f24 100644 --- a/git/docs/gio/enum.SocketType.html +++ b/git/docs/gio/enum.SocketType.html @@ -108,8 +108,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsAuthenticationMode.html b/git/docs/gio/enum.TlsAuthenticationMode.html index cb3ca6e69253..966ac3e58a06 100644 --- a/git/docs/gio/enum.TlsAuthenticationMode.html +++ b/git/docs/gio/enum.TlsAuthenticationMode.html @@ -103,8 +103,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsCertificateRequestFlags.html b/git/docs/gio/enum.TlsCertificateRequestFlags.html index 5166ac392688..ed6ddfd945cb 100644 --- a/git/docs/gio/enum.TlsCertificateRequestFlags.html +++ b/git/docs/gio/enum.TlsCertificateRequestFlags.html @@ -101,8 +101,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsChannelBindingType.html b/git/docs/gio/enum.TlsChannelBindingType.html index 8ebcea87162f..0376c8b47c26 100644 --- a/git/docs/gio/enum.TlsChannelBindingType.html +++ b/git/docs/gio/enum.TlsChannelBindingType.html @@ -109,8 +109,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsDatabaseLookupFlags.html b/git/docs/gio/enum.TlsDatabaseLookupFlags.html index 25585ff9aa3d..5c74c28ef2df 100644 --- a/git/docs/gio/enum.TlsDatabaseLookupFlags.html +++ b/git/docs/gio/enum.TlsDatabaseLookupFlags.html @@ -104,8 +104,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsError.html b/git/docs/gio/enum.TlsError.html index bf9c3ab738b3..c7280230008c 100644 --- a/git/docs/gio/enum.TlsError.html +++ b/git/docs/gio/enum.TlsError.html @@ -126,8 +126,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsInteractionResult.html b/git/docs/gio/enum.TlsInteractionResult.html index ccbae89e7ac3..f0ea52f55fd6 100644 --- a/git/docs/gio/enum.TlsInteractionResult.html +++ b/git/docs/gio/enum.TlsInteractionResult.html @@ -107,8 +107,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsProtocolVersion.html b/git/docs/gio/enum.TlsProtocolVersion.html index e604d3cf5097..1e39ad1a4763 100644 --- a/git/docs/gio/enum.TlsProtocolVersion.html +++ b/git/docs/gio/enum.TlsProtocolVersion.html @@ -121,8 +121,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.TlsRehandshakeMode.html b/git/docs/gio/enum.TlsRehandshakeMode.html index 79ad567e311d..1a135fc89a5b 100644 --- a/git/docs/gio/enum.TlsRehandshakeMode.html +++ b/git/docs/gio/enum.TlsRehandshakeMode.html @@ -108,8 +108,8 @@

HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.UnixSocketAddressType.html b/git/docs/gio/enum.UnixSocketAddressType.html index 3cdacbbfee65..a787bb7e0f5d 100644 --- a/git/docs/gio/enum.UnixSocketAddressType.html +++ b/git/docs/gio/enum.UnixSocketAddressType.html @@ -119,8 +119,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/enum.ZlibCompressorFormat.html b/git/docs/gio/enum.ZlibCompressorFormat.html index 93aa3d9bcb41..eafeca15ae53 100644 --- a/git/docs/gio/enum.ZlibCompressorFormat.html +++ b/git/docs/gio/enum.ZlibCompressorFormat.html @@ -104,8 +104,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.AppInfoCreateFlags.html b/git/docs/gio/struct.AppInfoCreateFlags.html index 3c6759f68853..8b3d93e70143 100644 --- a/git/docs/gio/struct.AppInfoCreateFlags.html +++ b/git/docs/gio/struct.AppInfoCreateFlags.html @@ -149,8 +149,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.ApplicationFlags.html b/git/docs/gio/struct.ApplicationFlags.html index 249f535113e7..f3c6f715a3de 100644 --- a/git/docs/gio/struct.ApplicationFlags.html +++ b/git/docs/gio/struct.ApplicationFlags.html @@ -183,8 +183,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.AskPasswordFlags.html b/git/docs/gio/struct.AskPasswordFlags.html index bd8fba4e8fb0..2947f65d148b 100644 --- a/git/docs/gio/struct.AskPasswordFlags.html +++ b/git/docs/gio/struct.AskPasswordFlags.html @@ -153,8 +153,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.BusNameOwnerFlags.html b/git/docs/gio/struct.BusNameOwnerFlags.html index e90aeaaea38e..3514dfc613c6 100644 --- a/git/docs/gio/struct.BusNameOwnerFlags.html +++ b/git/docs/gio/struct.BusNameOwnerFlags.html @@ -151,8 +151,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.BusNameWatcherFlags.html b/git/docs/gio/struct.BusNameWatcherFlags.html index a7f5fbe46bcf..2254e1f8ac5f 100644 --- a/git/docs/gio/struct.BusNameWatcherFlags.html +++ b/git/docs/gio/struct.BusNameWatcherFlags.html @@ -149,8 +149,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.Cancellable.html b/git/docs/gio/struct.Cancellable.html index 21a32b4f72b2..53dc52d67066 100644 --- a/git/docs/gio/struct.Cancellable.html +++ b/git/docs/gio/struct.Cancellable.html @@ -346,8 +346,8 @@
§Returns
T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.ConverterFlags.html b/git/docs/gio/struct.ConverterFlags.html index 6ace495ff060..f2cdd8a0a77b 100644 --- a/git/docs/gio/struct.ConverterFlags.html +++ b/git/docs/gio/struct.ConverterFlags.html @@ -148,8 +148,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusCallFlags.html b/git/docs/gio/struct.DBusCallFlags.html index 044ebda39b92..634bbc4c2307 100644 --- a/git/docs/gio/struct.DBusCallFlags.html +++ b/git/docs/gio/struct.DBusCallFlags.html @@ -151,8 +151,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusCapabilityFlags.html b/git/docs/gio/struct.DBusCapabilityFlags.html index 33782d4f89d0..4d412dae33ea 100644 --- a/git/docs/gio/struct.DBusCapabilityFlags.html +++ b/git/docs/gio/struct.DBusCapabilityFlags.html @@ -148,8 +148,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusConnection.html b/git/docs/gio/struct.DBusConnection.html index d55980401a5e..7788d0177ee3 100644 --- a/git/docs/gio/struct.DBusConnection.html +++ b/git/docs/gio/struct.DBusConnection.html @@ -1367,8 +1367,8 @@
§error
T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.DBusConnectionFlags.html b/git/docs/gio/struct.DBusConnectionFlags.html index a151dc6f41fe..11ef24d418e6 100644 --- a/git/docs/gio/struct.DBusConnectionFlags.html +++ b/git/docs/gio/struct.DBusConnectionFlags.html @@ -163,8 +163,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusInterfaceSkeletonFlags.html b/git/docs/gio/struct.DBusInterfaceSkeletonFlags.html index 56722e9292ea..117e27c37f46 100644 --- a/git/docs/gio/struct.DBusInterfaceSkeletonFlags.html +++ b/git/docs/gio/struct.DBusInterfaceSkeletonFlags.html @@ -150,8 +150,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusMessageFlags.html b/git/docs/gio/struct.DBusMessageFlags.html index 98bd9d02ec35..7416aaea24ce 100644 --- a/git/docs/gio/struct.DBusMessageFlags.html +++ b/git/docs/gio/struct.DBusMessageFlags.html @@ -152,8 +152,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusObjectManagerClientFlags.html b/git/docs/gio/struct.DBusObjectManagerClientFlags.html index e3311c438a41..8f797e190223 100644 --- a/git/docs/gio/struct.DBusObjectManagerClientFlags.html +++ b/git/docs/gio/struct.DBusObjectManagerClientFlags.html @@ -150,8 +150,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusProxy.html b/git/docs/gio/struct.DBusProxy.html index 997736b66b4c..910b6a25c478 100644 --- a/git/docs/gio/struct.DBusProxy.html +++ b/git/docs/gio/struct.DBusProxy.html @@ -641,8 +641,8 @@
§callbac T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.DBusProxyFlags.html b/git/docs/gio/struct.DBusProxyFlags.html index 1282fea2df11..107c68ac1275 100644 --- a/git/docs/gio/struct.DBusProxyFlags.html +++ b/git/docs/gio/struct.DBusProxyFlags.html @@ -159,8 +159,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusSendMessageFlags.html b/git/docs/gio/struct.DBusSendMessageFlags.html index 058bb6147da1..a0ec7c53fa99 100644 --- a/git/docs/gio/struct.DBusSendMessageFlags.html +++ b/git/docs/gio/struct.DBusSendMessageFlags.html @@ -149,8 +149,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusServerFlags.html b/git/docs/gio/struct.DBusServerFlags.html index bf3860c0a732..b25c5ccbe0ab 100644 --- a/git/docs/gio/struct.DBusServerFlags.html +++ b/git/docs/gio/struct.DBusServerFlags.html @@ -153,8 +153,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DBusSignalFlags.html b/git/docs/gio/struct.DBusSignalFlags.html index 1256f283e8e7..4874e713aba6 100644 --- a/git/docs/gio/struct.DBusSignalFlags.html +++ b/git/docs/gio/struct.DBusSignalFlags.html @@ -154,8 +154,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.DriveStartFlags.html b/git/docs/gio/struct.DriveStartFlags.html index 50446abdbd0d..e06ec4842e84 100644 --- a/git/docs/gio/struct.DriveStartFlags.html +++ b/git/docs/gio/struct.DriveStartFlags.html @@ -146,8 +146,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.File.html b/git/docs/gio/struct.File.html index f43402eaddfa..0db464509800 100644 --- a/git/docs/gio/struct.File.html +++ b/git/docs/gio/struct.File.html @@ -1055,8 +1055,8 @@
§Returns
T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.FileAttributeInfoFlags.html b/git/docs/gio/struct.FileAttributeInfoFlags.html index b4736c0869b7..4ee3fd20269f 100644 --- a/git/docs/gio/struct.FileAttributeInfoFlags.html +++ b/git/docs/gio/struct.FileAttributeInfoFlags.html @@ -148,8 +148,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.FileCopyFlags.html b/git/docs/gio/struct.FileCopyFlags.html index f7f0070ae36a..6430188ab6a6 100644 --- a/git/docs/gio/struct.FileCopyFlags.html +++ b/git/docs/gio/struct.FileCopyFlags.html @@ -154,8 +154,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.FileCreateFlags.html b/git/docs/gio/struct.FileCreateFlags.html index abc4671e4430..45c656fbefee 100644 --- a/git/docs/gio/struct.FileCreateFlags.html +++ b/git/docs/gio/struct.FileCreateFlags.html @@ -158,8 +158,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.FileMeasureFlags.html b/git/docs/gio/struct.FileMeasureFlags.html index 5f5a22a88145..66445825304a 100644 --- a/git/docs/gio/struct.FileMeasureFlags.html +++ b/git/docs/gio/struct.FileMeasureFlags.html @@ -158,8 +158,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.FileMonitorFlags.html b/git/docs/gio/struct.FileMonitorFlags.html index abe2b8098fc2..4703c762b486 100644 --- a/git/docs/gio/struct.FileMonitorFlags.html +++ b/git/docs/gio/struct.FileMonitorFlags.html @@ -159,8 +159,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.FileQueryInfoFlags.html b/git/docs/gio/struct.FileQueryInfoFlags.html index d9982868eff4..0fede8419ff3 100644 --- a/git/docs/gio/struct.FileQueryInfoFlags.html +++ b/git/docs/gio/struct.FileQueryInfoFlags.html @@ -147,8 +147,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.IOStreamSpliceFlags.html b/git/docs/gio/struct.IOStreamSpliceFlags.html index 7fe0c2d5809e..0013e7493f64 100644 --- a/git/docs/gio/struct.IOStreamSpliceFlags.html +++ b/git/docs/gio/struct.IOStreamSpliceFlags.html @@ -152,8 +152,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.InetAddress.html b/git/docs/gio/struct.InetAddress.html index 0ade0f4f8042..c0bea194a338 100644 --- a/git/docs/gio/struct.InetAddress.html +++ b/git/docs/gio/struct.InetAddress.html @@ -385,8 +385,8 @@
§Returns
T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> ToString for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where diff --git a/git/docs/gio/struct.InetAddressMask.html b/git/docs/gio/struct.InetAddressMask.html index c658320e58f2..62ffcbadf629 100644 --- a/git/docs/gio/struct.InetAddressMask.html +++ b/git/docs/gio/struct.InetAddressMask.html @@ -306,8 +306,8 @@
§Returns
T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> ToString for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where diff --git a/git/docs/gio/struct.InetSocketAddress.html b/git/docs/gio/struct.InetSocketAddress.html index b2a50cc16c34..a287cbfe450f 100644 --- a/git/docs/gio/struct.InetSocketAddress.html +++ b/git/docs/gio/struct.InetSocketAddress.html @@ -312,8 +312,8 @@
§Returns
suitable for use in user interfaces as it exposes too much information for a user. Read more

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.MountMountFlags.html b/git/docs/gio/struct.MountMountFlags.html index ccdab66bf87c..30cea5b2720b 100644 --- a/git/docs/gio/struct.MountMountFlags.html +++ b/git/docs/gio/struct.MountMountFlags.html @@ -146,8 +146,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.MountUnmountFlags.html b/git/docs/gio/struct.MountUnmountFlags.html index 1ebaad8596a9..71bf6e6b1e70 100644 --- a/git/docs/gio/struct.MountUnmountFlags.html +++ b/git/docs/gio/struct.MountUnmountFlags.html @@ -148,8 +148,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.NetworkAddress.html b/git/docs/gio/struct.NetworkAddress.html index f2fc24bf7761..c34e01375565 100644 --- a/git/docs/gio/struct.NetworkAddress.html +++ b/git/docs/gio/struct.NetworkAddress.html @@ -350,8 +350,8 @@
§Returns
suitable for use in user interfaces as it exposes too much information for a user. Read more
Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.OutputStreamSpliceFlags.html b/git/docs/gio/struct.OutputStreamSpliceFlags.html index d939f918a38b..0925162e8b0d 100644 --- a/git/docs/gio/struct.OutputStreamSpliceFlags.html +++ b/git/docs/gio/struct.OutputStreamSpliceFlags.html @@ -150,8 +150,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.ProxyAddress.html b/git/docs/gio/struct.ProxyAddress.html index 287677b107d0..f6d8c8fa7b7b 100644 --- a/git/docs/gio/struct.ProxyAddress.html +++ b/git/docs/gio/struct.ProxyAddress.html @@ -354,8 +354,8 @@
§Returns
suitable for use in user interfaces as it exposes too much information for a user. Read more
Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.ResolverNameLookupFlags.html b/git/docs/gio/struct.ResolverNameLookupFlags.html index a2db4fab5126..73be69c92bf7 100644 --- a/git/docs/gio/struct.ResolverNameLookupFlags.html +++ b/git/docs/gio/struct.ResolverNameLookupFlags.html @@ -148,8 +148,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.ResourceLookupFlags.html b/git/docs/gio/struct.ResourceLookupFlags.html index 049a56b6d4d2..0ddf1aeb092b 100644 --- a/git/docs/gio/struct.ResourceLookupFlags.html +++ b/git/docs/gio/struct.ResourceLookupFlags.html @@ -146,8 +146,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.SettingsBindFlags.html b/git/docs/gio/struct.SettingsBindFlags.html index d96c9248308c..ee5c5910ccc2 100644 --- a/git/docs/gio/struct.SettingsBindFlags.html +++ b/git/docs/gio/struct.SettingsBindFlags.html @@ -158,8 +158,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.SocketAddress.html b/git/docs/gio/struct.SocketAddress.html index c1ddc4a7ba00..e4417111745e 100644 --- a/git/docs/gio/struct.SocketAddress.html +++ b/git/docs/gio/struct.SocketAddress.html @@ -279,8 +279,8 @@

§ImplementsRead more
Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.SocketMsgFlags.html b/git/docs/gio/struct.SocketMsgFlags.html index d5b18ae7348a..fec3c61a898e 100644 --- a/git/docs/gio/struct.SocketMsgFlags.html +++ b/git/docs/gio/struct.SocketMsgFlags.html @@ -140,8 +140,8 @@ From<T> for U chooses to do.

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.SubprocessFlags.html b/git/docs/gio/struct.SubprocessFlags.html index cf2cf5dc9183..ce96bc7dfaba 100644 --- a/git/docs/gio/struct.SubprocessFlags.html +++ b/git/docs/gio/struct.SubprocessFlags.html @@ -177,8 +177,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.Task.html b/git/docs/gio/struct.Task.html index 680106522741..852ecdbd45c4 100644 --- a/git/docs/gio/struct.Task.html +++ b/git/docs/gio/struct.Task.html @@ -788,8 +788,8 @@

§ImplementsHasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.TlsCertificateFlags.html b/git/docs/gio/struct.TlsCertificateFlags.html index 8064fb20476c..183166497fa7 100644 --- a/git/docs/gio/struct.TlsCertificateFlags.html +++ b/git/docs/gio/struct.TlsCertificateFlags.html @@ -169,8 +169,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.TlsDatabaseVerifyFlags.html b/git/docs/gio/struct.TlsDatabaseVerifyFlags.html index 6dc946fc6a61..3e7dec6e7da0 100644 --- a/git/docs/gio/struct.TlsDatabaseVerifyFlags.html +++ b/git/docs/gio/struct.TlsDatabaseVerifyFlags.html @@ -146,8 +146,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.TlsPasswordFlags.html b/git/docs/gio/struct.TlsPasswordFlags.html index 8e23fd2126d9..9681e32b9bfd 100644 --- a/git/docs/gio/struct.TlsPasswordFlags.html +++ b/git/docs/gio/struct.TlsPasswordFlags.html @@ -157,8 +157,8 @@ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/gio/struct.UnixMountEntry.html b/git/docs/gio/struct.UnixMountEntry.html index e9292c1602c7..5ef60dace65a 100644 --- a/git/docs/gio/struct.UnixMountEntry.html +++ b/git/docs/gio/struct.UnixMountEntry.html @@ -201,8 +201,8 @@
§time_ T: HasParamSpec,
Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.UnixMountPoint.html b/git/docs/gio/struct.UnixMountPoint.html index a55fc3aba0a0..f142bd0151b2 100644 --- a/git/docs/gio/struct.UnixMountPoint.html +++ b/git/docs/gio/struct.UnixMountPoint.html @@ -167,8 +167,8 @@
§time_read T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.UnixSocketAddress.html b/git/docs/gio/struct.UnixSocketAddress.html index c0b6a3cabf15..77b873170742 100644 --- a/git/docs/gio/struct.UnixSocketAddress.html +++ b/git/docs/gio/struct.UnixSocketAddress.html @@ -346,8 +346,8 @@
§Returns
suitable for use in user interfaces as it exposes too much information for a user. Read more

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/gio/struct.Vfs.html b/git/docs/gio/struct.Vfs.html index 56a78b30bf0c..4908d4361914 100644 --- a/git/docs/gio/struct.Vfs.html +++ b/git/docs/gio/struct.Vfs.html @@ -267,8 +267,8 @@
§Returns
T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/glib/closure/struct.Closure.html b/git/docs/glib/closure/struct.Closure.html index 9ae16a7e1edd..245a232e3889 100644 --- a/git/docs/glib/closure/struct.Closure.html +++ b/git/docs/glib/closure/struct.Closure.html @@ -171,8 +171,8 @@
§Safety
T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

impl<T, U> TryInto<U> for T
where diff --git a/git/docs/glib/collections/strv/struct.StrV.html b/git/docs/glib/collections/strv/struct.StrV.html index 27990c42b545..6db62d6c5fd5 100644 --- a/git/docs/glib/collections/strv/struct.StrV.html +++ b/git/docs/glib/collections/strv/struct.StrV.html @@ -1294,8 +1294,8 @@
§ExamplesDeref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/glib/enum.ChecksumType.html b/git/docs/glib/enum.ChecksumType.html index d7303417c182..e6fcfc05be14 100644 --- a/git/docs/glib/enum.ChecksumType.html +++ b/git/docs/glib/enum.ChecksumType.html @@ -1,4 +1,4 @@ -ChecksumType in glib - Rust +ChecksumType in glib - Rust -
glib

Enum ChecksumType

Source
#[non_exhaustive]
pub enum ChecksumType { +
glib

Enum ChecksumType

Source
#[non_exhaustive]
pub enum ChecksumType { Md5, Sha1, Sha256, Sha512, Sha384, -}
Expand description

The hashing algorithm to be used by #GChecksum when performing the -digest of some data.

-

Note that the #GChecksumType enumeration may be extended at a later -date to include new hashing algorithm types.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Md5

Use the MD5 hashing algorithm

-
§

Sha1

Use the SHA-1 hashing algorithm

-
§

Sha256

Use the SHA-256 hashing algorithm

-
§

Sha512

Use the SHA-512 hashing algorithm (Since: 2.36)

-
§

Sha384

Use the SHA-384 hashing algorithm (Since: 2.51)

-

Trait Implementations§

Source§

impl Clone for ChecksumType

Source§

fn clone(&self) -> ChecksumType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChecksumType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ChecksumType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Md5

§

Sha1

§

Sha256

§

Sha512

§

Sha384

Trait Implementations§

Source§

impl Clone for ChecksumType

Source§

fn clone(&self) -> ChecksumType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChecksumType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ChecksumType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ChecksumType

Source§

fn cmp(&self, other: &ChecksumType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ChecksumType

Source§

fn cmp(&self, other: &ChecksumType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ChecksumType

Source§

fn eq(&self, other: &ChecksumType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for ChecksumType

Source§

fn partial_cmp(&self, other: &ChecksumType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ChecksumType

Source§

fn eq(&self, other: &ChecksumType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for ChecksumType

Source§

fn partial_cmp(&self, other: &ChecksumType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for ChecksumType

Source§

impl Eq for ChecksumType

Source§

impl StructuralPartialEq for ChecksumType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for ChecksumType

Source§

impl Eq for ChecksumType

Source§

impl StructuralPartialEq for ChecksumType

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.ControlFlow.html b/git/docs/glib/enum.ControlFlow.html index 4a281d1fb917..7b18b5abb5e6 100644 --- a/git/docs/glib/enum.ControlFlow.html +++ b/git/docs/glib/enum.ControlFlow.html @@ -94,7 +94,7 @@ From<T> for U chooses to do.

Source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/glib/enum.ConvertError.html b/git/docs/glib/enum.ConvertError.html index e59a01a68ada..b632886c97c4 100644 --- a/git/docs/glib/enum.ConvertError.html +++ b/git/docs/glib/enum.ConvertError.html @@ -1,4 +1,4 @@ -ConvertError in glib - Rust +ConvertError in glib - Rust -
glib

Enum ConvertError

Source
#[non_exhaustive]
pub enum ConvertError { +
glib

Enum ConvertError

Source
#[non_exhaustive]
pub enum ConvertError { NoConversion, IllegalSequence, Failed, @@ -80,30 +80,16 @@ NotAbsolutePath, NoMemory, EmbeddedNul, -}
Expand description

Error codes returned by character set conversion routines.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

NoConversion

Conversion between the requested character -sets is not supported.

-
§

IllegalSequence

Invalid byte sequence in conversion input; -or the character sequence could not be represented in the target -character set.

-
§

Failed

Conversion failed for some reason.

-
§

PartialInput

Partial character sequence at end of input.

-
§

BadUri

URI is invalid.

-
§

NotAbsolutePath

Pathname is not an absolute path.

-
§

NoMemory

No memory available. Since: 2.40

-
§

EmbeddedNul

An embedded NUL character is present in -conversion output where a NUL-terminated string is expected. -Since: 2.56

-

Trait Implementations§

Source§

impl Clone for ConvertError

Source§

fn clone(&self) -> ConvertError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConvertError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for ConvertError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for ConvertError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

NoConversion

§

IllegalSequence

§

Failed

§

PartialInput

§

BadUri

§

NotAbsolutePath

§

NoMemory

§

EmbeddedNul

Trait Implementations§

Source§

impl Clone for ConvertError

Source§

fn clone(&self) -> ConvertError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConvertError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for ConvertError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for ConvertError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ConvertError

Source§

fn cmp(&self, other: &ConvertError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ConvertError

Source§

fn cmp(&self, other: &ConvertError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ConvertError

Source§

fn eq(&self, other: &ConvertError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for ConvertError

Source§

fn partial_cmp(&self, other: &ConvertError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ConvertError

Source§

fn eq(&self, other: &ConvertError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for ConvertError

Source§

fn partial_cmp(&self, other: &ConvertError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for ConvertError

Source§

impl Eq for ConvertError

Source§

impl StructuralPartialEq for ConvertError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for ConvertError

Source§

impl Eq for ConvertError

Source§

impl StructuralPartialEq for ConvertError

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.DateMonth.html b/git/docs/glib/enum.DateMonth.html index ae7cef35c9ad..f4a51d6a0782 100644 --- a/git/docs/glib/enum.DateMonth.html +++ b/git/docs/glib/enum.DateMonth.html @@ -1,4 +1,4 @@ -DateMonth in glib - Rust +DateMonth in glib - Rust -
glib

Enum DateMonth

Source
#[non_exhaustive]
pub enum DateMonth { +
glib

Enum DateMonth

Source
#[non_exhaustive]
pub enum DateMonth {
Show 13 variants BadMonth, January, February, @@ -85,31 +85,16 @@ October, November, December, -
}
Expand description

Enumeration representing a month; values are January, -February, etc. BadMonth is the invalid value.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

BadMonth

invalid value

-
§

January

January

-
§

February

February

-
§

March

March

-
§

April

April

-
§

May

May

-
§

June

June

-
§

July

July

-
§

August

August

-
§

September

September

-
§

October

October

-
§

November

November

-
§

December

December

-

Trait Implementations§

Source§

impl Clone for DateMonth

Source§

fn clone(&self) -> DateMonth

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DateMonth

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DateMonth

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

BadMonth

§

January

§

February

§

March

§

April

§

May

§

June

§

July

§

August

§

September

§

October

§

November

§

December

Trait Implementations§

Source§

impl Clone for DateMonth

Source§

fn clone(&self) -> DateMonth

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DateMonth

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DateMonth

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DateMonth

Source§

fn cmp(&self, other: &DateMonth) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DateMonth

Source§

fn cmp(&self, other: &DateMonth) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DateMonth

Source§

fn eq(&self, other: &DateMonth) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for DateMonth

Source§

fn partial_cmp(&self, other: &DateMonth) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DateMonth

Source§

fn eq(&self, other: &DateMonth) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for DateMonth

Source§

fn partial_cmp(&self, other: &DateMonth) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for DateMonth

Source§

impl Eq for DateMonth

Source§

impl StructuralPartialEq for DateMonth

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for DateMonth

Source§

impl Eq for DateMonth

Source§

impl StructuralPartialEq for DateMonth

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.DateWeekday.html b/git/docs/glib/enum.DateWeekday.html index d2614be2001f..1ab73edb034d 100644 --- a/git/docs/glib/enum.DateWeekday.html +++ b/git/docs/glib/enum.DateWeekday.html @@ -1,4 +1,4 @@ -DateWeekday in glib - Rust +DateWeekday in glib - Rust -
glib

Enum DateWeekday

Source
#[non_exhaustive]
pub enum DateWeekday { +
glib

Enum DateWeekday

Source
#[non_exhaustive]
pub enum DateWeekday { BadWeekday, Monday, Tuesday, @@ -80,26 +80,16 @@ Friday, Saturday, Sunday, -}
Expand description

Enumeration representing a day of the week; Monday, -Tuesday, etc. BadWeekday is an invalid weekday.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

BadWeekday

invalid value

-
§

Monday

Monday

-
§

Tuesday

Tuesday

-
§

Wednesday

Wednesday

-
§

Thursday

Thursday

-
§

Friday

Friday

-
§

Saturday

Saturday

-
§

Sunday

Sunday

-

Trait Implementations§

Source§

impl Clone for DateWeekday

Source§

fn clone(&self) -> DateWeekday

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DateWeekday

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DateWeekday

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

BadWeekday

§

Monday

§

Tuesday

§

Wednesday

§

Thursday

§

Friday

§

Saturday

§

Sunday

Trait Implementations§

Source§

impl Clone for DateWeekday

Source§

fn clone(&self) -> DateWeekday

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DateWeekday

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for DateWeekday

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DateWeekday

Source§

fn cmp(&self, other: &DateWeekday) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for DateWeekday

Source§

fn cmp(&self, other: &DateWeekday) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DateWeekday

Source§

fn eq(&self, other: &DateWeekday) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for DateWeekday

Source§

fn partial_cmp(&self, other: &DateWeekday) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for DateWeekday

Source§

fn eq(&self, other: &DateWeekday) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for DateWeekday

Source§

fn partial_cmp(&self, other: &DateWeekday) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for DateWeekday

Source§

impl Eq for DateWeekday

Source§

impl StructuralPartialEq for DateWeekday

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for DateWeekday

Source§

impl Eq for DateWeekday

Source§

impl StructuralPartialEq for DateWeekday

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.FileError.html b/git/docs/glib/enum.FileError.html index c4124f356a72..ccbaf43d03d8 100644 --- a/git/docs/glib/enum.FileError.html +++ b/git/docs/glib/enum.FileError.html @@ -1,4 +1,4 @@ -FileError in glib - Rust +FileError in glib - Rust -
glib

Enum FileError

Source
#[non_exhaustive]
pub enum FileError { +
glib

Enum FileError

Source
#[non_exhaustive]
pub enum FileError {
Show 25 variants Exist, Isdir, Acces, @@ -97,94 +97,16 @@ Perm, Nosys, Failed, -
}
Expand description

Values corresponding to @errno codes returned from file operations -on UNIX. Unlike @errno codes, GFileError values are available on -all systems, even Windows. The exact meaning of each code depends -on what sort of file operation you were performing; the UNIX -documentation gives more details. The following error code descriptions -come from the GNU C Library manual, and are under the copyright -of that manual.

-

It’s not very portable to make detailed assumptions about exactly -which errors will be returned from a given operation. Some errors -don’t occur on some systems, etc., sometimes there are subtle -differences in when a system will report a given error, etc.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Exist

Operation not permitted; only the owner of -the file (or other resource) or processes with special privileges -can perform the operation.

-
§

Isdir

File is a directory; you cannot open a directory -for writing, or create or remove hard links to it.

-
§

Acces

Permission denied; the file permissions do not -allow the attempted operation.

-
§

Nametoolong

Filename too long.

-
§

Noent

No such file or directory. This is a “file -doesn’t exist” error for ordinary files that are referenced in -contexts where they are expected to already exist.

-
§

Notdir

A file that isn’t a directory was specified when -a directory is required.

-
§

Nxio

No such device or address. The system tried to -use the device represented by a file you specified, and it -couldn’t find the device. This can mean that the device file was -installed incorrectly, or that the physical device is missing or -not correctly attached to the computer.

-
§

Nodev

The underlying file system of the specified file -does not support memory mapping.

-
§

Rofs

The directory containing the new link can’t be -modified because it’s on a read-only file system.

-
§

Txtbsy

Text file busy.

-
§

Fault

You passed in a pointer to bad memory. -(GLib won’t reliably return this, don’t pass in pointers to bad -memory.)

-
§

Loop

Too many levels of symbolic links were encountered -in looking up a file name. This often indicates a cycle of symbolic -links.

-
§

Nospc

No space left on device; write operation on a -file failed because the disk is full.

-
§

Nomem

No memory available. The system cannot allocate -more virtual memory because its capacity is full.

-
§

Mfile

The current process has too many files open and -can’t open any more. Duplicate descriptors do count toward this -limit.

-
§

Nfile

There are too many distinct file openings in the -entire system.

-
§

Badf

Bad file descriptor; for example, I/O on a -descriptor that has been closed or reading from a descriptor open -only for writing (or vice versa).

-
§

Inval

Invalid argument. This is used to indicate -various kinds of problems with passing the wrong argument to a -library function.

-
§

Pipe

Broken pipe; there is no process reading from the -other end of a pipe. Every library function that returns this -error code also generates a ‘SIGPIPE’ signal; this signal -terminates the program if not handled or blocked. Thus, your -program will never actually see this code unless it has handled -or blocked ‘SIGPIPE’.

-
§

Again

Resource temporarily unavailable; the call might -work if you try again later.

-
§

Intr

Interrupted function call; an asynchronous signal -occurred and prevented completion of the call. When this -happens, you should try the call again.

-
§

Io

Input/output error; usually used for physical read -or write errors. i.e. the disk or other physical device hardware -is returning errors.

-
§

Perm

Operation not permitted; only the owner of the -file (or other resource) or processes with special privileges can -perform the operation.

-
§

Nosys

Function not implemented; this indicates that -the system is missing some functionality.

-
§

Failed

Does not correspond to a UNIX error code; this -is the standard “failed for unspecified reason” error code present -in all #GError error code enumerations. Returned if no specific -code applies.

-

Trait Implementations§

Source§

impl Clone for FileError

Source§

fn clone(&self) -> FileError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FileError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for FileError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for FileError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Exist

§

Isdir

§

Acces

§

Nametoolong

§

Noent

§

Notdir

§

Nxio

§

Nodev

§

Rofs

§

Txtbsy

§

Fault

§

Loop

§

Nospc

§

Nomem

§

Mfile

§

Nfile

§

Badf

§

Inval

§

Pipe

§

Again

§

Intr

§

Io

§

Perm

§

Nosys

§

Failed

Trait Implementations§

Source§

impl Clone for FileError

Source§

fn clone(&self) -> FileError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FileError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for FileError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for FileError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for FileError

Source§

fn cmp(&self, other: &FileError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for FileError

Source§

fn cmp(&self, other: &FileError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for FileError

Source§

fn eq(&self, other: &FileError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for FileError

Source§

fn partial_cmp(&self, other: &FileError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for FileError

Source§

fn eq(&self, other: &FileError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for FileError

Source§

fn partial_cmp(&self, other: &FileError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for FileError

Source§

impl Eq for FileError

Source§

impl StructuralPartialEq for FileError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for FileError

Source§

impl Eq for FileError

Source§

impl StructuralPartialEq for FileError

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.IConvError.html b/git/docs/glib/enum.IConvError.html index 90ca1dfd6e7d..b678ea73d430 100644 --- a/git/docs/glib/enum.IConvError.html +++ b/git/docs/glib/enum.IConvError.html @@ -71,14 +71,14 @@ -
glib

Enum IConvError

Source
pub enum IConvError {
+
glib

Enum IConvError

Source
pub enum IConvError {
     Error(Error),
     WithOffset {
         source: Error,
         offset: usize,
     },
 }
Expand description

A wrapper for std::io::Error that can hold an offset into an input string.

-

Variants§

§

Error(Error)

§

WithOffset

Fields

§source: Error
§offset: usize

Trait Implementations§

Source§

impl Debug for IConvError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for IConvError

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for IConvError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for IConvError

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Variants§

§

Error(Error)

§

WithOffset

Fields

§source: Error
§offset: usize

Trait Implementations§

Source§

impl Debug for IConvError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for IConvError

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for IConvError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for IConvError

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git/docs/glib/enum.KeyFileError.html b/git/docs/glib/enum.KeyFileError.html index 62e14f2eb2be..716fbbb116f7 100644 --- a/git/docs/glib/enum.KeyFileError.html +++ b/git/docs/glib/enum.KeyFileError.html @@ -1,4 +1,4 @@ -KeyFileError in glib - Rust +KeyFileError in glib - Rust -
glib

Enum KeyFileError

Source
#[non_exhaustive]
pub enum KeyFileError { +
glib

Enum KeyFileError

Source
#[non_exhaustive]
pub enum KeyFileError { UnknownEncoding, Parse, NotFound, KeyNotFound, GroupNotFound, InvalidValue, -}
Expand description

Error codes returned by key file parsing.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UnknownEncoding

the text being parsed was in -an unknown encoding

-
§

Parse

document was ill-formed

-
§

NotFound

the file was not found

-
§

KeyNotFound

a requested key was not found

-
§

GroupNotFound

a requested group was not found

-
§

InvalidValue

a value could not be parsed

-

Trait Implementations§

Source§

impl Clone for KeyFileError

Source§

fn clone(&self) -> KeyFileError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KeyFileError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for KeyFileError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for KeyFileError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UnknownEncoding

§

Parse

§

NotFound

§

KeyNotFound

§

GroupNotFound

§

InvalidValue

Trait Implementations§

Source§

impl Clone for KeyFileError

Source§

fn clone(&self) -> KeyFileError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KeyFileError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for KeyFileError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for KeyFileError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for KeyFileError

Source§

fn cmp(&self, other: &KeyFileError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for KeyFileError

Source§

fn cmp(&self, other: &KeyFileError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for KeyFileError

Source§

fn eq(&self, other: &KeyFileError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for KeyFileError

Source§

fn partial_cmp(&self, other: &KeyFileError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for KeyFileError

Source§

fn eq(&self, other: &KeyFileError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for KeyFileError

Source§

fn partial_cmp(&self, other: &KeyFileError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for KeyFileError

Source§

impl Eq for KeyFileError

Source§

impl StructuralPartialEq for KeyFileError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for KeyFileError

Source§

impl Eq for KeyFileError

Source§

impl StructuralPartialEq for KeyFileError

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.LogWriterOutput.html b/git/docs/glib/enum.LogWriterOutput.html index 898dadeb92ab..2a4394c77a9d 100644 --- a/git/docs/glib/enum.LogWriterOutput.html +++ b/git/docs/glib/enum.LogWriterOutput.html @@ -1,4 +1,4 @@ -LogWriterOutput in glib - Rust +LogWriterOutput in glib - Rust -
glib

Enum LogWriterOutput

Source
#[non_exhaustive]
pub enum LogWriterOutput { +
glib

Enum LogWriterOutput

Source
#[non_exhaustive]
pub enum LogWriterOutput { Handled, Unhandled, -}
Expand description

Return values from #GLogWriterFuncs to indicate whether the given log entry -was successfully handled by the writer, or whether there was an error in -handling it (and hence a fallback writer should be used).

-

If a #GLogWriterFunc ignores a log entry, it should return -Handled.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Handled

Log writer has handled the log entry.

-
§

Unhandled

Log writer could not handle the log entry.

-

Trait Implementations§

Source§

impl Clone for LogWriterOutput

Source§

fn clone(&self) -> LogWriterOutput

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LogWriterOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for LogWriterOutput

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Handled

§

Unhandled

Trait Implementations§

Source§

impl Clone for LogWriterOutput

Source§

fn clone(&self) -> LogWriterOutput

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LogWriterOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for LogWriterOutput

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for LogWriterOutput

Source§

fn cmp(&self, other: &LogWriterOutput) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for LogWriterOutput

Source§

fn cmp(&self, other: &LogWriterOutput) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LogWriterOutput

Source§

fn eq(&self, other: &LogWriterOutput) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for LogWriterOutput

Source§

fn partial_cmp(&self, other: &LogWriterOutput) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LogWriterOutput

Source§

fn eq(&self, other: &LogWriterOutput) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for LogWriterOutput

Source§

fn partial_cmp(&self, other: &LogWriterOutput) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for LogWriterOutput

Source§

impl Eq for LogWriterOutput

Source§

impl StructuralPartialEq for LogWriterOutput

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for LogWriterOutput

Source§

impl Eq for LogWriterOutput

Source§

impl StructuralPartialEq for LogWriterOutput

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.MarkupError.html b/git/docs/glib/enum.MarkupError.html index 9d816aa6931a..1be7af555fb3 100644 --- a/git/docs/glib/enum.MarkupError.html +++ b/git/docs/glib/enum.MarkupError.html @@ -1,4 +1,4 @@ -MarkupError in glib - Rust +MarkupError in glib - Rust -
glib

Enum MarkupError

Source
#[non_exhaustive]
pub enum MarkupError { +
glib

Enum MarkupError

Source
#[non_exhaustive]
pub enum MarkupError { BadUtf8, Empty, Parse, @@ -79,28 +79,16 @@ UnknownAttribute, InvalidContent, MissingAttribute, -}
Expand description

Error codes returned by markup parsing.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

BadUtf8

text being parsed was not valid UTF-8

-
§

Empty

document contained nothing, or only whitespace

-
§

Parse

document was ill-formed

-
§

UnknownElement

error should be set by #GMarkupParser -functions; element wasn’t known

-
§

UnknownAttribute

error should be set by #GMarkupParser -functions; attribute wasn’t known

-
§

InvalidContent

error should be set by #GMarkupParser -functions; content was invalid

-
§

MissingAttribute

error should be set by #GMarkupParser -functions; a required attribute was missing

-

Trait Implementations§

Source§

impl Clone for MarkupError

Source§

fn clone(&self) -> MarkupError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MarkupError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for MarkupError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for MarkupError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

BadUtf8

§

Empty

§

Parse

§

UnknownElement

§

UnknownAttribute

§

InvalidContent

§

MissingAttribute

Trait Implementations§

Source§

impl Clone for MarkupError

Source§

fn clone(&self) -> MarkupError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MarkupError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for MarkupError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for MarkupError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for MarkupError

Source§

fn cmp(&self, other: &MarkupError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for MarkupError

Source§

fn cmp(&self, other: &MarkupError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for MarkupError

Source§

fn eq(&self, other: &MarkupError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for MarkupError

Source§

fn partial_cmp(&self, other: &MarkupError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for MarkupError

Source§

fn eq(&self, other: &MarkupError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for MarkupError

Source§

fn partial_cmp(&self, other: &MarkupError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for MarkupError

Source§

impl Eq for MarkupError

Source§

impl StructuralPartialEq for MarkupError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for MarkupError

Source§

impl Eq for MarkupError

Source§

impl StructuralPartialEq for MarkupError

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.NormalizeMode.html b/git/docs/glib/enum.NormalizeMode.html index bf847ee7bf75..dcb9cb9ce789 100644 --- a/git/docs/glib/enum.NormalizeMode.html +++ b/git/docs/glib/enum.NormalizeMode.html @@ -1,4 +1,4 @@ -NormalizeMode in glib - Rust +NormalizeMode in glib - Rust -
glib

Enum NormalizeMode

Source
#[non_exhaustive]
pub enum NormalizeMode { +
glib

Enum NormalizeMode

Source
#[non_exhaustive]
pub enum NormalizeMode { Default, DefaultCompose, All, AllCompose, -}
Expand description

Defines how a Unicode string is transformed in a canonical -form, standardizing such issues as whether a character with -an accent is represented as a base character and combining -accent or as a single precomposed character. Unicode strings -should generally be normalized before comparing them.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Default

standardize differences that do not affect the -text content, such as the above-mentioned accent representation

-
§

DefaultCompose

like Default, but with -composed forms rather than a maximally decomposed form

-
§

All

beyond Default also standardize the -“compatibility” characters in Unicode, such as SUPERSCRIPT THREE -to the standard forms (in this case DIGIT THREE). Formatting -information may be lost but for most text operations such -characters should be considered the same

-
§

AllCompose

like All, but with composed -forms rather than a maximally decomposed form

-

Trait Implementations§

Source§

impl Clone for NormalizeMode

Source§

fn clone(&self) -> NormalizeMode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NormalizeMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<NormalizeMode> for Value

Source§

fn from(v: NormalizeMode) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for NormalizeMode

Source§

type Checker = GenericValueTypeChecker<NormalizeMode>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for NormalizeMode

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = NormalizeMode

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: NormalizeMode) -> ParamSpecEnumBuilder<'_, NormalizeMode>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for NormalizeMode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Default

§

DefaultCompose

§

All

§

AllCompose

Trait Implementations§

Source§

impl Clone for NormalizeMode

Source§

fn clone(&self) -> NormalizeMode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NormalizeMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<NormalizeMode> for Value

Source§

fn from(v: NormalizeMode) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for NormalizeMode

Source§

type Checker = GenericValueTypeChecker<NormalizeMode>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for NormalizeMode

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = NormalizeMode

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: NormalizeMode) -> ParamSpecEnumBuilder<'_, NormalizeMode>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for NormalizeMode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for NormalizeMode

Source§

fn cmp(&self, other: &NormalizeMode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for NormalizeMode

Source§

fn cmp(&self, other: &NormalizeMode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for NormalizeMode

Source§

fn eq(&self, other: &NormalizeMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for NormalizeMode

Source§

fn partial_cmp(&self, other: &NormalizeMode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for NormalizeMode

Source§

fn eq(&self, other: &NormalizeMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for NormalizeMode

Source§

fn partial_cmp(&self, other: &NormalizeMode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl StaticType for NormalizeMode

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for NormalizeMode

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for NormalizeMode

Source§

type Type = NormalizeMode

Type to get the Type from. Read more
Source§

impl Copy for NormalizeMode

Source§

impl Eq for NormalizeMode

Source§

impl StructuralPartialEq for NormalizeMode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl StaticType for NormalizeMode

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for NormalizeMode

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for NormalizeMode

Source§

type Type = NormalizeMode

Type to get the Type from. Read more
Source§

impl Copy for NormalizeMode

Source§

impl Eq for NormalizeMode

Source§

impl StructuralPartialEq for NormalizeMode

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> CloneToUninit for T
where @@ -116,8 +100,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/glib/enum.OptionArg.html b/git/docs/glib/enum.OptionArg.html index c6afb5d04723..37d88181aa89 100644 --- a/git/docs/glib/enum.OptionArg.html +++ b/git/docs/glib/enum.OptionArg.html @@ -1,4 +1,4 @@ -OptionArg in glib - Rust +OptionArg in glib - Rust -
glib

Enum OptionArg

Source
#[non_exhaustive]
pub enum OptionArg { +
glib

Enum OptionArg

Source
#[non_exhaustive]
pub enum OptionArg { None, String, Int, @@ -81,38 +81,16 @@ FilenameArray, Double, Int64, -}
Expand description

The #GOptionArg enum values determine which type of extra argument the -options expect to find. If an option expects an extra argument, it can -be specified in several ways; with a short option: -x arg, with a long -option: --name arg or combined in a single argument: --name=arg.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

None

No extra argument. This is useful for simple flags or booleans.

-
§

String

The option takes a UTF-8 string argument.

-
§

Int

The option takes an integer argument.

-
§

Callback

The option provides a callback (of type -#GOptionArgFunc) to parse the extra argument.

-
§

Filename

The option takes a filename as argument, which will -be in the GLib filename encoding rather than UTF-8.

-
§

StringArray

The option takes a string argument, multiple -uses of the option are collected into an array of strings.

-
§

FilenameArray

The option takes a filename as argument, -multiple uses of the option are collected into an array of strings.

-
§

Double

The option takes a double argument. The argument -can be formatted either for the user’s locale or for the “C” locale. -Since 2.12

-
§

Int64

The option takes a 64-bit integer. Like -Int but for larger numbers. The number can be in -decimal base, or in hexadecimal (when prefixed with 0x, for -example, 0xffffffff). Since 2.12

-

Trait Implementations§

Source§

impl Clone for OptionArg

Source§

fn clone(&self) -> OptionArg

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OptionArg

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for OptionArg

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

None

§

String

§

Int

§

Callback

§

Filename

§

StringArray

§

FilenameArray

§

Double

§

Int64

Trait Implementations§

Source§

impl Clone for OptionArg

Source§

fn clone(&self) -> OptionArg

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OptionArg

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for OptionArg

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for OptionArg

Source§

fn cmp(&self, other: &OptionArg) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for OptionArg

Source§

fn cmp(&self, other: &OptionArg) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for OptionArg

Source§

fn eq(&self, other: &OptionArg) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for OptionArg

Source§

fn partial_cmp(&self, other: &OptionArg) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for OptionArg

Source§

fn eq(&self, other: &OptionArg) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for OptionArg

Source§

fn partial_cmp(&self, other: &OptionArg) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for OptionArg

Source§

impl Eq for OptionArg

Source§

impl StructuralPartialEq for OptionArg

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for OptionArg

Source§

impl Eq for OptionArg

Source§

impl StructuralPartialEq for OptionArg

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.SeekType.html b/git/docs/glib/enum.SeekType.html index 0aee7e4b625b..35f27289e3fe 100644 --- a/git/docs/glib/enum.SeekType.html +++ b/git/docs/glib/enum.SeekType.html @@ -1,4 +1,4 @@ -SeekType in glib - Rust +SeekType in glib - Rust -
glib

Enum SeekType

Source
#[non_exhaustive]
pub enum SeekType { +
glib

Enum SeekType

Source
#[non_exhaustive]
pub enum SeekType { Cur, Set, End, -}
Expand description

An enumeration specifying the base position for a -g_io_channel_seek_position() operation.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Cur

the current position in the file.

-
§

Set

the start of the file.

-
§

End

the end of the file.

-

Trait Implementations§

Source§

impl Clone for SeekType

Source§

fn clone(&self) -> SeekType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SeekType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for SeekType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Cur

§

Set

§

End

Trait Implementations§

Source§

impl Clone for SeekType

Source§

fn clone(&self) -> SeekType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SeekType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for SeekType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for SeekType

Source§

fn cmp(&self, other: &SeekType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for SeekType

Source§

fn cmp(&self, other: &SeekType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for SeekType

Source§

fn eq(&self, other: &SeekType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for SeekType

Source§

fn partial_cmp(&self, other: &SeekType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for SeekType

Source§

fn eq(&self, other: &SeekType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for SeekType

Source§

fn partial_cmp(&self, other: &SeekType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for SeekType

Source§

impl Eq for SeekType

Source§

impl StructuralPartialEq for SeekType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for SeekType

Source§

impl Eq for SeekType

Source§

impl StructuralPartialEq for SeekType

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.TimeType.html b/git/docs/glib/enum.TimeType.html index 80b2f1b7b6af..7a4bb496c3dc 100644 --- a/git/docs/glib/enum.TimeType.html +++ b/git/docs/glib/enum.TimeType.html @@ -71,7 +71,7 @@ -
glib

Enum TimeType

Source
#[non_exhaustive]
pub enum TimeType { +
glib

Enum TimeType

Source
#[non_exhaustive]
pub enum TimeType { Standard, Daylight, Universal, @@ -80,20 +80,29 @@

Second, if the time is in local time, specifies if it is local standard time or local daylight time. This is important for the case where the same local time occurs twice (during daylight savings time +transitions, for example). +Disambiguates a given time in two ways.

+

First, specifies if the given time is in universal or local time.

+

Second, if the time is in local time, specifies if it is local +standard time or local daylight time. This is important for the case +where the same local time occurs twice (during daylight savings time transitions, for example).

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Standard

the time is in local standard time

-
§

Daylight

the time is in local daylight time

-
§

Universal

the time is in UTC

-

Trait Implementations§

Source§

impl Clone for TimeType

Source§

fn clone(&self) -> TimeType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TimeType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TimeType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Standard

the time is in local standard time +the time is in local standard time

+
§

Daylight

the time is in local daylight time +the time is in local daylight time

+
§

Universal

the time is in UTC +the time is in UTC

+

Trait Implementations§

Source§

impl Clone for TimeType

Source§

fn clone(&self) -> TimeType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TimeType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TimeType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for TimeType

Source§

fn cmp(&self, other: &TimeType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for TimeType

Source§

fn cmp(&self, other: &TimeType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for TimeType

Source§

fn eq(&self, other: &TimeType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for TimeType

Source§

fn partial_cmp(&self, other: &TimeType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for TimeType

Source§

fn eq(&self, other: &TimeType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for TimeType

Source§

fn partial_cmp(&self, other: &TimeType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for TimeType

Source§

impl Eq for TimeType

Source§

impl StructuralPartialEq for TimeType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for TimeType

Source§

impl Eq for TimeType

Source§

impl StructuralPartialEq for TimeType

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.UnicodeBreakType.html b/git/docs/glib/enum.UnicodeBreakType.html index 8ab6e2b269de..c5c838361af1 100644 --- a/git/docs/glib/enum.UnicodeBreakType.html +++ b/git/docs/glib/enum.UnicodeBreakType.html @@ -71,7 +71,7 @@ -
glib

Enum UnicodeBreakType

Source
#[non_exhaustive]
pub enum UnicodeBreakType { +
glib

Enum UnicodeBreakType

Source
#[non_exhaustive]
pub enum UnicodeBreakType {
Show 48 variants Mandatory, CarriageReturn, LineFeed, @@ -123,65 +123,117 @@
}
Expand description

These are the possible line break classifications.

Since new Unicode versions may add new types here, applications should be ready to handle unknown values. They may be regarded as Unknown.

+

See Unicode Line Breaking Algorithm. +These are the possible line break classifications.

+

Since new Unicode versions may add new types here, applications should be ready +to handle unknown values. They may be regarded as Unknown.

See Unicode Line Breaking Algorithm.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Mandatory

Mandatory Break (BK)

-
§

CarriageReturn

Carriage Return (CR)

-
§

LineFeed

Line Feed (LF)

-
§

CombiningMark

Attached Characters and Combining Marks (CM)

-
§

Surrogate

Surrogates (SG)

-
§

ZeroWidthSpace

Zero Width Space (ZW)

-
§

Inseparable

Inseparable (IN)

-
§

NonBreakingGlue

Non-breaking (“Glue”) (GL)

-
§

Contingent

Contingent Break Opportunity (CB)

-
§

Space

Space (SP)

-
§

After

Break Opportunity After (BA)

-
§

Before

Break Opportunity Before (BB)

-
§

BeforeAndAfter

Break Opportunity Before and After (B2)

-
§

Hyphen

Hyphen (HY)

-
§

NonStarter

Nonstarter (NS)

-
§

OpenPunctuation

Opening Punctuation (OP)

-
§

ClosePunctuation

Closing Punctuation (CL)

-
§

Quotation

Ambiguous Quotation (QU)

-
§

Exclamation

Exclamation/Interrogation (EX)

-
§

Ideographic

Ideographic (ID)

-
§

Numeric

Numeric (NU)

-
§

InfixSeparator

Infix Separator (Numeric) (IS)

-
§

Symbol

Symbols Allowing Break After (SY)

-
§

Alphabetic

Ordinary Alphabetic and Symbol Characters (AL)

-
§

Prefix

Prefix (Numeric) (PR)

-
§

Postfix

Postfix (Numeric) (PO)

-
§

ComplexContext

Complex Content Dependent (South East Asian) (SA)

-
§

Ambiguous

Ambiguous (Alphabetic or Ideographic) (AI)

-
§

Unknown

Unknown (XX)

-
§

NextLine

Next Line (NL)

-
§

WordJoiner

Word Joiner (WJ)

-
§

HangulLJamo

Hangul L Jamo (JL)

-
§

HangulVJamo

Hangul V Jamo (JV)

-
§

HangulTJamo

Hangul T Jamo (JT)

-
§

HangulLvSyllable

Hangul LV Syllable (H2)

-
§

HangulLvtSyllable

Hangul LVT Syllable (H3)

-
§

CloseParenthesis

Closing Parenthesis (CP). Since 2.70

-
§

ConditionalJapaneseStarter

Conditional Japanese Starter (CJ). Since: 2.32

-
§

HebrewLetter

Hebrew Letter (HL). Since: 2.32

-
§

RegionalIndicator

Regional Indicator (RI). Since: 2.36

-
§

EmojiBase

Emoji Base (EB). Since: 2.50

-
§

EmojiModifier

Emoji Modifier (EM). Since: 2.50

-
§

ZeroWidthJoiner

Zero Width Joiner (ZWJ). Since: 2.50

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Mandatory

Mandatory Break (BK) +Mandatory Break (BK)

+
§

CarriageReturn

Carriage Return (CR) +Carriage Return (CR)

+
§

LineFeed

Line Feed (LF) +Line Feed (LF)

+
§

CombiningMark

Attached Characters and Combining Marks (CM) +Attached Characters and Combining Marks (CM)

+
§

Surrogate

Surrogates (SG) +Surrogates (SG)

+
§

ZeroWidthSpace

Zero Width Space (ZW) +Zero Width Space (ZW)

+
§

Inseparable

Inseparable (IN) +Inseparable (IN)

+
§

NonBreakingGlue

Non-breaking (“Glue”) (GL) +Non-breaking (“Glue”) (GL)

+
§

Contingent

Contingent Break Opportunity (CB) +Contingent Break Opportunity (CB)

+
§

Space

Space (SP) +Space (SP)

+
§

After

Break Opportunity After (BA) +Break Opportunity After (BA)

+
§

Before

Break Opportunity Before (BB) +Break Opportunity Before (BB)

+
§

BeforeAndAfter

Break Opportunity Before and After (B2) +Break Opportunity Before and After (B2)

+
§

Hyphen

Hyphen (HY) +Hyphen (HY)

+
§

NonStarter

Nonstarter (NS) +Nonstarter (NS)

+
§

OpenPunctuation

Opening Punctuation (OP) +Opening Punctuation (OP)

+
§

ClosePunctuation

Closing Punctuation (CL) +Closing Punctuation (CL)

+
§

Quotation

Ambiguous Quotation (QU) +Ambiguous Quotation (QU)

+
§

Exclamation

Exclamation/Interrogation (EX) +Exclamation/Interrogation (EX)

+
§

Ideographic

Ideographic (ID) +Ideographic (ID)

+
§

Numeric

Numeric (NU) +Numeric (NU)

+
§

InfixSeparator

Infix Separator (Numeric) (IS) +Infix Separator (Numeric) (IS)

+
§

Symbol

Symbols Allowing Break After (SY) +Symbols Allowing Break After (SY)

+
§

Alphabetic

Ordinary Alphabetic and Symbol Characters (AL) +Ordinary Alphabetic and Symbol Characters (AL)

+
§

Prefix

Prefix (Numeric) (PR) +Prefix (Numeric) (PR)

+
§

Postfix

Postfix (Numeric) (PO) +Postfix (Numeric) (PO)

+
§

ComplexContext

Complex Content Dependent (South East Asian) (SA) +Complex Content Dependent (South East Asian) (SA)

+
§

Ambiguous

Ambiguous (Alphabetic or Ideographic) (AI) +Ambiguous (Alphabetic or Ideographic) (AI)

+
§

Unknown

Unknown (XX) +Unknown (XX)

+
§

NextLine

Next Line (NL) +Next Line (NL)

+
§

WordJoiner

Word Joiner (WJ) +Word Joiner (WJ)

+
§

HangulLJamo

Hangul L Jamo (JL) +Hangul L Jamo (JL)

+
§

HangulVJamo

Hangul V Jamo (JV) +Hangul V Jamo (JV)

+
§

HangulTJamo

Hangul T Jamo (JT) +Hangul T Jamo (JT)

+
§

HangulLvSyllable

Hangul LV Syllable (H2) +Hangul LV Syllable (H2)

+
§

HangulLvtSyllable

Hangul LVT Syllable (H3) +Hangul LVT Syllable (H3)

+
§

CloseParenthesis

Closing Parenthesis (CP). Since 2.70 +Closing Parenthesis (CP). Since 2.70

+
§

ConditionalJapaneseStarter

Conditional Japanese Starter (CJ). Since: 2.32 +Conditional Japanese Starter (CJ). Since: 2.32

+
§

HebrewLetter

Hebrew Letter (HL). Since: 2.32 +Hebrew Letter (HL). Since: 2.32

+
§

RegionalIndicator

Regional Indicator (RI). Since: 2.36 +Regional Indicator (RI). Since: 2.36

+
§

EmojiBase

Emoji Base (EB). Since: 2.50 +Emoji Base (EB). Since: 2.50

+
§

EmojiModifier

Emoji Modifier (EM). Since: 2.50 +Emoji Modifier (EM). Since: 2.50

+
§

ZeroWidthJoiner

Zero Width Joiner (ZWJ). Since: 2.50 +Zero Width Joiner (ZWJ). Since: 2.50

§

Aksara

Available on crate feature v2_80 only.

Aksara (AK). Since: 2.80 @G_UNICODE_BREAK_AKSARA_PRE_BASE (AP). Since: 2.80 @G_UNICODE_BREAK_AKSARA_START (AS). Since: 2.80 @G_UNICODE_BREAK_VIRAMA_FINAL (VF). Since: 2.80 +@G_UNICODE_BREAK_VIRAMA (VI). Since: 2.80 +Aksara (AK). Since: 2.80 +@G_UNICODE_BREAK_AKSARA_PRE_BASE (AP). Since: 2.80 +@G_UNICODE_BREAK_AKSARA_START (AS). Since: 2.80 +@G_UNICODE_BREAK_VIRAMA_FINAL (VF). Since: 2.80 @G_UNICODE_BREAK_VIRAMA (VI). Since: 2.80

-
§

AksaraPreBase

Available on crate feature v2_80 only.
§

AksaraStart

Available on crate feature v2_80 only.
§

ViramaFinal

Available on crate feature v2_80 only.
§

Virama

Available on crate feature v2_80 only.

Trait Implementations§

Source§

impl Clone for UnicodeBreakType

Source§

fn clone(&self) -> UnicodeBreakType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnicodeBreakType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<UnicodeBreakType> for Value

Source§

fn from(v: UnicodeBreakType) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for UnicodeBreakType

Source§

type Checker = GenericValueTypeChecker<UnicodeBreakType>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for UnicodeBreakType

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = UnicodeBreakType

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: UnicodeBreakType) -> ParamSpecEnumBuilder<'_, UnicodeBreakType>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for UnicodeBreakType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +
§

AksaraPreBase

Available on crate feature v2_80 only.
§

AksaraStart

Available on crate feature v2_80 only.
§

ViramaFinal

Available on crate feature v2_80 only.
§

Virama

Available on crate feature v2_80 only.

Trait Implementations§

Source§

impl Clone for UnicodeBreakType

Source§

fn clone(&self) -> UnicodeBreakType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnicodeBreakType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<UnicodeBreakType> for Value

Source§

fn from(v: UnicodeBreakType) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for UnicodeBreakType

Source§

type Checker = GenericValueTypeChecker<UnicodeBreakType>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for UnicodeBreakType

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = UnicodeBreakType

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: UnicodeBreakType) -> ParamSpecEnumBuilder<'_, UnicodeBreakType>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for UnicodeBreakType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UnicodeBreakType

Source§

fn cmp(&self, other: &UnicodeBreakType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UnicodeBreakType

Source§

fn cmp(&self, other: &UnicodeBreakType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UnicodeBreakType

Source§

fn eq(&self, other: &UnicodeBreakType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for UnicodeBreakType

Source§

fn partial_cmp(&self, other: &UnicodeBreakType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UnicodeBreakType

Source§

fn eq(&self, other: &UnicodeBreakType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for UnicodeBreakType

Source§

fn partial_cmp(&self, other: &UnicodeBreakType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl StaticType for UnicodeBreakType

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for UnicodeBreakType

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for UnicodeBreakType

Source§

type Type = UnicodeBreakType

Type to get the Type from. Read more
Source§

impl Copy for UnicodeBreakType

Source§

impl Eq for UnicodeBreakType

Source§

impl StructuralPartialEq for UnicodeBreakType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl StaticType for UnicodeBreakType

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for UnicodeBreakType

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for UnicodeBreakType

Source§

type Type = UnicodeBreakType

Type to get the Type from. Read more
Source§

impl Copy for UnicodeBreakType

Source§

impl Eq for UnicodeBreakType

Source§

impl StructuralPartialEq for UnicodeBreakType

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> CloneToUninit for T
where @@ -196,8 +248,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/glib/enum.UnicodeScript.html b/git/docs/glib/enum.UnicodeScript.html index 6410db5cd409..b04a8339eae9 100644 --- a/git/docs/glib/enum.UnicodeScript.html +++ b/git/docs/glib/enum.UnicodeScript.html @@ -71,7 +71,7 @@ -
glib

Enum UnicodeScript

Source
#[non_exhaustive]
pub enum UnicodeScript { +
glib

Enum UnicodeScript

Source
#[non_exhaustive]
pub enum UnicodeScript {
Show 173 variants InvalidCode, Common, Inherited, @@ -251,191 +251,372 @@ and is interchangeable with #PangoScript.

Note that new types may be added in the future. Applications should be ready to handle unknown values. +See Unicode Standard Annex #24: Script names. +The #GUnicodeScript enumeration identifies different writing +systems. The values correspond to the names as defined in the +Unicode standard. The enumeration has been added in GLib 2.14, +and is interchangeable with #PangoScript.

+

Note that new types may be added in the future. Applications +should be ready to handle unknown values. See Unicode Standard Annex #24: Script names.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

InvalidCode

a value never returned from g_unichar_get_script()

-
§

Common

a character used by multiple different scripts

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

InvalidCode

a value never returned from g_unichar_get_script() +a value never returned from g_unichar_get_script()

+
§

Common

a character used by multiple different scripts +a character used by multiple different scripts

§

Inherited

a mark glyph that takes its script from the +base glyph to which it is attached +a mark glyph that takes its script from the base glyph to which it is attached

-
§

Arabic

Arabic

-
§

Armenian

Armenian

-
§

Bengali

Bengali

-
§

Bopomofo

Bopomofo

-
§

Cherokee

Cherokee

-
§

Coptic

Coptic

-
§

Cyrillic

Cyrillic

-
§

Deseret

Deseret

-
§

Devanagari

Devanagari

-
§

Ethiopic

Ethiopic

-
§

Georgian

Georgian

-
§

Gothic

Gothic

-
§

Greek

Greek

-
§

Gujarati

Gujarati

-
§

Gurmukhi

Gurmukhi

-
§

Han

Han

-
§

Hangul

Hangul

-
§

Hebrew

Hebrew

-
§

Hiragana

Hiragana

-
§

Kannada

Kannada

-
§

Katakana

Katakana

-
§

Khmer

Khmer

-
§

Lao

Lao

-
§

Latin

Latin

-
§

Malayalam

Malayalam

-
§

Mongolian

Mongolian

-
§

Myanmar

Myanmar

-
§

Ogham

Ogham

-
§

OldItalic

Old Italic

-
§

Oriya

Oriya

-
§

Runic

Runic

-
§

Sinhala

Sinhala

-
§

Syriac

Syriac

-
§

Tamil

Tamil

-
§

Telugu

Telugu

-
§

Thaana

Thaana

-
§

Thai

Thai

-
§

Tibetan

Tibetan

-
§

CanadianAboriginal

Canadian Aboriginal

-
§

Yi

Yi

-
§

Tagalog

Tagalog

-
§

Hanunoo

Hanunoo

-
§

Buhid

Buhid

-
§

Tagbanwa

Tagbanwa

-
§

Braille

Braille

-
§

Cypriot

Cypriot

-
§

Limbu

Limbu

-
§

Osmanya

Osmanya

-
§

Shavian

Shavian

-
§

LinearB

Linear B

-
§

TaiLe

Tai Le

-
§

Ugaritic

Ugaritic

-
§

NewTaiLue

New Tai Lue

-
§

Buginese

Buginese

-
§

Glagolitic

Glagolitic

-
§

Tifinagh

Tifinagh

-
§

SylotiNagri

Syloti Nagri

-
§

OldPersian

Old Persian

-
§

Kharoshthi

Kharoshthi

-
§

Unknown

an unassigned code point

-
§

Balinese

Balinese

-
§

Cuneiform

Cuneiform

-
§

Phoenician

Phoenician

-
§

PhagsPa

Phags-pa

-
§

Nko

N’Ko

-
§

KayahLi

Kayah Li. Since 2.16.3

-
§

Lepcha

Lepcha. Since 2.16.3

-
§

Rejang

Rejang. Since 2.16.3

-
§

Sundanese

Sundanese. Since 2.16.3

-
§

Saurashtra

Saurashtra. Since 2.16.3

-
§

Cham

Cham. Since 2.16.3

-
§

OlChiki

Ol Chiki. Since 2.16.3

-
§

Vai

Vai. Since 2.16.3

-
§

Carian

Carian. Since 2.16.3

-
§

Lycian

Lycian. Since 2.16.3

-
§

Lydian

Lydian. Since 2.16.3

-
§

Avestan

Avestan. Since 2.26

-
§

Bamum

Bamum. Since 2.26

-
§

EgyptianHieroglyphs

Egyptian Hieroglpyhs. Since 2.26

-
§

ImperialAramaic

Imperial Aramaic. Since 2.26

-
§

InscriptionalPahlavi

Inscriptional Pahlavi. Since 2.26

-
§

InscriptionalParthian

Inscriptional Parthian. Since 2.26

-
§

Javanese

Javanese. Since 2.26

-
§

Kaithi

Kaithi. Since 2.26

-
§

Lisu

Lisu. Since 2.26

-
§

MeeteiMayek

Meetei Mayek. Since 2.26

-
§

OldSouthArabian

Old South Arabian. Since 2.26

-
§

OldTurkic

Old Turkic. Since 2.28

-
§

Samaritan

Samaritan. Since 2.26

-
§

TaiTham

Tai Tham. Since 2.26

-
§

TaiViet

Tai Viet. Since 2.26

-
§

Batak

Batak. Since 2.28

-
§

Brahmi

Brahmi. Since 2.28

-
§

Mandaic

Mandaic. Since 2.28

-
§

Chakma

Chakma. Since: 2.32

-
§

MeroiticCursive

Meroitic Cursive. Since: 2.32

-
§

MeroiticHieroglyphs

Meroitic Hieroglyphs. Since: 2.32

-
§

Miao

Miao. Since: 2.32

-
§

Sharada

Sharada. Since: 2.32

-
§

SoraSompeng

Sora Sompeng. Since: 2.32

-
§

Takri

Takri. Since: 2.32

-
§

BassaVah

Bassa. Since: 2.42

-
§

CaucasianAlbanian

Caucasian Albanian. Since: 2.42

-
§

Duployan

Duployan. Since: 2.42

-
§

Elbasan

Elbasan. Since: 2.42

-
§

Grantha

Grantha. Since: 2.42

-
§

Khojki

Kjohki. Since: 2.42

-
§

Khudawadi

Khudawadi, Sindhi. Since: 2.42

-
§

LinearA

Linear A. Since: 2.42

-
§

Mahajani

Mahajani. Since: 2.42

-
§

Manichaean

Manichaean. Since: 2.42

-
§

MendeKikakui

Mende Kikakui. Since: 2.42

-
§

Modi

Modi. Since: 2.42

-
§

Mro

Mro. Since: 2.42

-
§

Nabataean

Nabataean. Since: 2.42

-
§

OldNorthArabian

Old North Arabian. Since: 2.42

-
§

OldPermic

Old Permic. Since: 2.42

-
§

PahawhHmong

Pahawh Hmong. Since: 2.42

-
§

Palmyrene

Palmyrene. Since: 2.42

-
§

PauCinHau

Pau Cin Hau. Since: 2.42

-
§

PsalterPahlavi

Psalter Pahlavi. Since: 2.42

-
§

Siddham

Siddham. Since: 2.42

-
§

Tirhuta

Tirhuta. Since: 2.42

-
§

WarangCiti

Warang Citi. Since: 2.42

-
§

Ahom

Ahom. Since: 2.48

-
§

AnatolianHieroglyphs

Anatolian Hieroglyphs. Since: 2.48

-
§

Hatran

Hatran. Since: 2.48

-
§

Multani

Multani. Since: 2.48

-
§

OldHungarian

Old Hungarian. Since: 2.48

-
§

Signwriting

Signwriting. Since: 2.48

-
§

Adlam

Adlam. Since: 2.50

-
§

Bhaiksuki

Bhaiksuki. Since: 2.50

-
§

Marchen

Marchen. Since: 2.50

-
§

Newa

Newa. Since: 2.50

-
§

Osage

Osage. Since: 2.50

-
§

Tangut

Tangut. Since: 2.50

-
§

MasaramGondi

Masaram Gondi. Since: 2.54

-
§

Nushu

Nushu. Since: 2.54

-
§

Soyombo

Soyombo. Since: 2.54

-
§

ZanabazarSquare

Zanabazar Square. Since: 2.54

-
§

Dogra

Dogra. Since: 2.58

-
§

GunjalaGondi

Gunjala Gondi. Since: 2.58

-
§

HanifiRohingya

Hanifi Rohingya. Since: 2.58

-
§

Makasar

Makasar. Since: 2.58

-
§

Medefaidrin

Medefaidrin. Since: 2.58

-
§

OldSogdian

Old Sogdian. Since: 2.58

-
§

Sogdian

Sogdian. Since: 2.58

-
§

Elymaic

Elym. Since: 2.62

-
§

Nandinagari

Nand. Since: 2.62

-
§

NyiakengPuachueHmong

Rohg. Since: 2.62

-
§

Wancho

Wcho. Since: 2.62

-
§

Chorasmian

Chorasmian. Since: 2.66

-
§

DivesAkuru

Dives Akuru. Since: 2.66

-
§

KhitanSmallScript

Khitan small script. Since: 2.66

-
§

Yezidi

Yezidi. Since: 2.66

-
§

CyproMinoan

Available on crate feature v2_72 only.

Cypro-Minoan. Since: 2.72

-
§

OldUyghur

Available on crate feature v2_72 only.

Old Uyghur. Since: 2.72

-
§

Tangsa

Available on crate feature v2_72 only.

Tangsa. Since: 2.72

-
§

Toto

Available on crate feature v2_72 only.

Toto. Since: 2.72

-
§

Vithkuqi

Available on crate feature v2_72 only.

Vithkuqi. Since: 2.72

-
§

Math

Available on crate feature v2_72 only.

Mathematical notation. Since: 2.72

-
§

Kawi

Available on crate feature v2_74 only.

Kawi. Since 2.74

-
§

NagMundari

Available on crate feature v2_74 only.

Nag Mundari. Since 2.74

-
§

Todhri

Available on crate feature v2_84 only.

Todhri. Since: 2.84

-
§

Garay

Available on crate feature v2_84 only.

Garay. Since: 2.84

-
§

TuluTigalari

Available on crate feature v2_84 only.

Tulu-Tigalari. Since: 2.84

-
§

Sunuwar

Available on crate feature v2_84 only.

Sunuwar. Since: 2.84

-
§

GurungKhema

Available on crate feature v2_84 only.

Gurung Khema. Since: 2.84

-
§

KiratRai

Available on crate feature v2_84 only.

Kirat Rai. Since: 2.84

-
§

OlOnal

Available on crate feature v2_84 only.

Ol Onal. Since: 2.84

-

Implementations§

Trait Implementations§

Source§

impl Clone for UnicodeScript

Source§

fn clone(&self) -> UnicodeScript

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnicodeScript

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<UnicodeScript> for Value

Source§

fn from(v: UnicodeScript) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for UnicodeScript

Source§

type Checker = GenericValueTypeChecker<UnicodeScript>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for UnicodeScript

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = UnicodeScript

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: UnicodeScript) -> ParamSpecEnumBuilder<'_, UnicodeScript>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for UnicodeScript

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +
§

Arabic

Arabic +Arabic

+
§

Armenian

Armenian +Armenian

+
§

Bengali

Bengali +Bengali

+
§

Bopomofo

Bopomofo +Bopomofo

+
§

Cherokee

Cherokee +Cherokee

+
§

Coptic

Coptic +Coptic

+
§

Cyrillic

Cyrillic +Cyrillic

+
§

Deseret

Deseret +Deseret

+
§

Devanagari

Devanagari +Devanagari

+
§

Ethiopic

Ethiopic +Ethiopic

+
§

Georgian

Georgian +Georgian

+
§

Gothic

Gothic +Gothic

+
§

Greek

Greek +Greek

+
§

Gujarati

Gujarati +Gujarati

+
§

Gurmukhi

Gurmukhi +Gurmukhi

+
§

Han

Han +Han

+
§

Hangul

Hangul +Hangul

+
§

Hebrew

Hebrew +Hebrew

+
§

Hiragana

Hiragana +Hiragana

+
§

Kannada

Kannada +Kannada

+
§

Katakana

Katakana +Katakana

+
§

Khmer

Khmer +Khmer

+
§

Lao

Lao +Lao

+
§

Latin

Latin +Latin

+
§

Malayalam

Malayalam +Malayalam

+
§

Mongolian

Mongolian +Mongolian

+
§

Myanmar

Myanmar +Myanmar

+
§

Ogham

Ogham +Ogham

+
§

OldItalic

Old Italic +Old Italic

+
§

Oriya

Oriya +Oriya

+
§

Runic

Runic +Runic

+
§

Sinhala

Sinhala +Sinhala

+
§

Syriac

Syriac +Syriac

+
§

Tamil

Tamil +Tamil

+
§

Telugu

Telugu +Telugu

+
§

Thaana

Thaana +Thaana

+
§

Thai

Thai +Thai

+
§

Tibetan

Tibetan +Tibetan

+
§

CanadianAboriginal

Canadian Aboriginal +Canadian Aboriginal

+
§

Yi

Yi +Yi

+
§

Tagalog

Tagalog +Tagalog

+
§

Hanunoo

Hanunoo +Hanunoo

+
§

Buhid

Buhid +Buhid

+
§

Tagbanwa

Tagbanwa +Tagbanwa

+
§

Braille

Braille +Braille

+
§

Cypriot

Cypriot +Cypriot

+
§

Limbu

Limbu +Limbu

+
§

Osmanya

Osmanya +Osmanya

+
§

Shavian

Shavian +Shavian

+
§

LinearB

Linear B +Linear B

+
§

TaiLe

Tai Le +Tai Le

+
§

Ugaritic

Ugaritic +Ugaritic

+
§

NewTaiLue

New Tai Lue +New Tai Lue

+
§

Buginese

Buginese +Buginese

+
§

Glagolitic

Glagolitic +Glagolitic

+
§

Tifinagh

Tifinagh +Tifinagh

+
§

SylotiNagri

Syloti Nagri +Syloti Nagri

+
§

OldPersian

Old Persian +Old Persian

+
§

Kharoshthi

Kharoshthi +Kharoshthi

+
§

Unknown

an unassigned code point +an unassigned code point

+
§

Balinese

Balinese +Balinese

+
§

Cuneiform

Cuneiform +Cuneiform

+
§

Phoenician

Phoenician +Phoenician

+
§

PhagsPa

Phags-pa +Phags-pa

+
§

Nko

N’Ko +N’Ko

+
§

KayahLi

Kayah Li. Since 2.16.3 +Kayah Li. Since 2.16.3

+
§

Lepcha

Lepcha. Since 2.16.3 +Lepcha. Since 2.16.3

+
§

Rejang

Rejang. Since 2.16.3 +Rejang. Since 2.16.3

+
§

Sundanese

Sundanese. Since 2.16.3 +Sundanese. Since 2.16.3

+
§

Saurashtra

Saurashtra. Since 2.16.3 +Saurashtra. Since 2.16.3

+
§

Cham

Cham. Since 2.16.3 +Cham. Since 2.16.3

+
§

OlChiki

Ol Chiki. Since 2.16.3 +Ol Chiki. Since 2.16.3

+
§

Vai

Vai. Since 2.16.3 +Vai. Since 2.16.3

+
§

Carian

Carian. Since 2.16.3 +Carian. Since 2.16.3

+
§

Lycian

Lycian. Since 2.16.3 +Lycian. Since 2.16.3

+
§

Lydian

Lydian. Since 2.16.3 +Lydian. Since 2.16.3

+
§

Avestan

Avestan. Since 2.26 +Avestan. Since 2.26

+
§

Bamum

Bamum. Since 2.26 +Bamum. Since 2.26

+
§

EgyptianHieroglyphs

Egyptian Hieroglpyhs. Since 2.26 +Egyptian Hieroglpyhs. Since 2.26

+
§

ImperialAramaic

Imperial Aramaic. Since 2.26 +Imperial Aramaic. Since 2.26

+
§

InscriptionalPahlavi

Inscriptional Pahlavi. Since 2.26 +Inscriptional Pahlavi. Since 2.26

+
§

InscriptionalParthian

Inscriptional Parthian. Since 2.26 +Inscriptional Parthian. Since 2.26

+
§

Javanese

Javanese. Since 2.26 +Javanese. Since 2.26

+
§

Kaithi

Kaithi. Since 2.26 +Kaithi. Since 2.26

+
§

Lisu

Lisu. Since 2.26 +Lisu. Since 2.26

+
§

MeeteiMayek

Meetei Mayek. Since 2.26 +Meetei Mayek. Since 2.26

+
§

OldSouthArabian

Old South Arabian. Since 2.26 +Old South Arabian. Since 2.26

+
§

OldTurkic

Old Turkic. Since 2.28 +Old Turkic. Since 2.28

+
§

Samaritan

Samaritan. Since 2.26 +Samaritan. Since 2.26

+
§

TaiTham

Tai Tham. Since 2.26 +Tai Tham. Since 2.26

+
§

TaiViet

Tai Viet. Since 2.26 +Tai Viet. Since 2.26

+
§

Batak

Batak. Since 2.28 +Batak. Since 2.28

+
§

Brahmi

Brahmi. Since 2.28 +Brahmi. Since 2.28

+
§

Mandaic

Mandaic. Since 2.28 +Mandaic. Since 2.28

+
§

Chakma

Chakma. Since: 2.32 +Chakma. Since: 2.32

+
§

MeroiticCursive

Meroitic Cursive. Since: 2.32 +Meroitic Cursive. Since: 2.32

+
§

MeroiticHieroglyphs

Meroitic Hieroglyphs. Since: 2.32 +Meroitic Hieroglyphs. Since: 2.32

+
§

Miao

Miao. Since: 2.32 +Miao. Since: 2.32

+
§

Sharada

Sharada. Since: 2.32 +Sharada. Since: 2.32

+
§

SoraSompeng

Sora Sompeng. Since: 2.32 +Sora Sompeng. Since: 2.32

+
§

Takri

Takri. Since: 2.32 +Takri. Since: 2.32

+
§

BassaVah

Bassa. Since: 2.42 +Bassa. Since: 2.42

+
§

CaucasianAlbanian

Caucasian Albanian. Since: 2.42 +Caucasian Albanian. Since: 2.42

+
§

Duployan

Duployan. Since: 2.42 +Duployan. Since: 2.42

+
§

Elbasan

Elbasan. Since: 2.42 +Elbasan. Since: 2.42

+
§

Grantha

Grantha. Since: 2.42 +Grantha. Since: 2.42

+
§

Khojki

Kjohki. Since: 2.42 +Kjohki. Since: 2.42

+
§

Khudawadi

Khudawadi, Sindhi. Since: 2.42 +Khudawadi, Sindhi. Since: 2.42

+
§

LinearA

Linear A. Since: 2.42 +Linear A. Since: 2.42

+
§

Mahajani

Mahajani. Since: 2.42 +Mahajani. Since: 2.42

+
§

Manichaean

Manichaean. Since: 2.42 +Manichaean. Since: 2.42

+
§

MendeKikakui

Mende Kikakui. Since: 2.42 +Mende Kikakui. Since: 2.42

+
§

Modi

Modi. Since: 2.42 +Modi. Since: 2.42

+
§

Mro

Mro. Since: 2.42 +Mro. Since: 2.42

+
§

Nabataean

Nabataean. Since: 2.42 +Nabataean. Since: 2.42

+
§

OldNorthArabian

Old North Arabian. Since: 2.42 +Old North Arabian. Since: 2.42

+
§

OldPermic

Old Permic. Since: 2.42 +Old Permic. Since: 2.42

+
§

PahawhHmong

Pahawh Hmong. Since: 2.42 +Pahawh Hmong. Since: 2.42

+
§

Palmyrene

Palmyrene. Since: 2.42 +Palmyrene. Since: 2.42

+
§

PauCinHau

Pau Cin Hau. Since: 2.42 +Pau Cin Hau. Since: 2.42

+
§

PsalterPahlavi

Psalter Pahlavi. Since: 2.42 +Psalter Pahlavi. Since: 2.42

+
§

Siddham

Siddham. Since: 2.42 +Siddham. Since: 2.42

+
§

Tirhuta

Tirhuta. Since: 2.42 +Tirhuta. Since: 2.42

+
§

WarangCiti

Warang Citi. Since: 2.42 +Warang Citi. Since: 2.42

+
§

Ahom

Ahom. Since: 2.48 +Ahom. Since: 2.48

+
§

AnatolianHieroglyphs

Anatolian Hieroglyphs. Since: 2.48 +Anatolian Hieroglyphs. Since: 2.48

+
§

Hatran

Hatran. Since: 2.48 +Hatran. Since: 2.48

+
§

Multani

Multani. Since: 2.48 +Multani. Since: 2.48

+
§

OldHungarian

Old Hungarian. Since: 2.48 +Old Hungarian. Since: 2.48

+
§

Signwriting

Signwriting. Since: 2.48 +Signwriting. Since: 2.48

+
§

Adlam

Adlam. Since: 2.50 +Adlam. Since: 2.50

+
§

Bhaiksuki

Bhaiksuki. Since: 2.50 +Bhaiksuki. Since: 2.50

+
§

Marchen

Marchen. Since: 2.50 +Marchen. Since: 2.50

+
§

Newa

Newa. Since: 2.50 +Newa. Since: 2.50

+
§

Osage

Osage. Since: 2.50 +Osage. Since: 2.50

+
§

Tangut

Tangut. Since: 2.50 +Tangut. Since: 2.50

+
§

MasaramGondi

Masaram Gondi. Since: 2.54 +Masaram Gondi. Since: 2.54

+
§

Nushu

Nushu. Since: 2.54 +Nushu. Since: 2.54

+
§

Soyombo

Soyombo. Since: 2.54 +Soyombo. Since: 2.54

+
§

ZanabazarSquare

Zanabazar Square. Since: 2.54 +Zanabazar Square. Since: 2.54

+
§

Dogra

Dogra. Since: 2.58 +Dogra. Since: 2.58

+
§

GunjalaGondi

Gunjala Gondi. Since: 2.58 +Gunjala Gondi. Since: 2.58

+
§

HanifiRohingya

Hanifi Rohingya. Since: 2.58 +Hanifi Rohingya. Since: 2.58

+
§

Makasar

Makasar. Since: 2.58 +Makasar. Since: 2.58

+
§

Medefaidrin

Medefaidrin. Since: 2.58 +Medefaidrin. Since: 2.58

+
§

OldSogdian

Old Sogdian. Since: 2.58 +Old Sogdian. Since: 2.58

+
§

Sogdian

Sogdian. Since: 2.58 +Sogdian. Since: 2.58

+
§

Elymaic

Elym. Since: 2.62 +Elym. Since: 2.62

+
§

Nandinagari

Nand. Since: 2.62 +Nand. Since: 2.62

+
§

NyiakengPuachueHmong

Rohg. Since: 2.62 +Rohg. Since: 2.62

+
§

Wancho

Wcho. Since: 2.62 +Wcho. Since: 2.62

+
§

Chorasmian

Chorasmian. Since: 2.66 +Chorasmian. Since: 2.66

+
§

DivesAkuru

Dives Akuru. Since: 2.66 +Dives Akuru. Since: 2.66

+
§

KhitanSmallScript

Khitan small script. Since: 2.66 +Khitan small script. Since: 2.66

+
§

Yezidi

Yezidi. Since: 2.66 +Yezidi. Since: 2.66

+
§

CyproMinoan

Available on crate feature v2_72 only.

Cypro-Minoan. Since: 2.72 +Cypro-Minoan. Since: 2.72

+
§

OldUyghur

Available on crate feature v2_72 only.

Old Uyghur. Since: 2.72 +Old Uyghur. Since: 2.72

+
§

Tangsa

Available on crate feature v2_72 only.

Tangsa. Since: 2.72 +Tangsa. Since: 2.72

+
§

Toto

Available on crate feature v2_72 only.

Toto. Since: 2.72 +Toto. Since: 2.72

+
§

Vithkuqi

Available on crate feature v2_72 only.

Vithkuqi. Since: 2.72 +Vithkuqi. Since: 2.72

+
§

Math

Available on crate feature v2_72 only.

Mathematical notation. Since: 2.72 +Mathematical notation. Since: 2.72

+
§

Kawi

Available on crate feature v2_74 only.

Kawi. Since 2.74 +Kawi. Since 2.74

+
§

NagMundari

Available on crate feature v2_74 only.

Nag Mundari. Since 2.74 +Nag Mundari. Since 2.74

+
§

Todhri

Available on crate feature v2_84 only.

Todhri. Since: 2.84 +Todhri. Since: 2.84

+
§

Garay

Available on crate feature v2_84 only.

Garay. Since: 2.84 +Garay. Since: 2.84

+
§

TuluTigalari

Available on crate feature v2_84 only.

Tulu-Tigalari. Since: 2.84 +Tulu-Tigalari. Since: 2.84

+
§

Sunuwar

Available on crate feature v2_84 only.

Sunuwar. Since: 2.84 +Sunuwar. Since: 2.84

+
§

GurungKhema

Available on crate feature v2_84 only.

Gurung Khema. Since: 2.84 +Gurung Khema. Since: 2.84

+
§

KiratRai

Available on crate feature v2_84 only.

Kirat Rai. Since: 2.84 +Kirat Rai. Since: 2.84

+
§

OlOnal

Available on crate feature v2_84 only.

Ol Onal. Since: 2.84 +Ol Onal. Since: 2.84

+

Implementations§

Trait Implementations§

Source§

impl Clone for UnicodeScript

Source§

fn clone(&self) -> UnicodeScript

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnicodeScript

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<UnicodeScript> for Value

Source§

fn from(v: UnicodeScript) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for UnicodeScript

Source§

type Checker = GenericValueTypeChecker<UnicodeScript>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for UnicodeScript

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = UnicodeScript

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: UnicodeScript) -> ParamSpecEnumBuilder<'_, UnicodeScript>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for UnicodeScript

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UnicodeScript

Source§

fn cmp(&self, other: &UnicodeScript) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UnicodeScript

Source§

fn cmp(&self, other: &UnicodeScript) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UnicodeScript

Source§

fn eq(&self, other: &UnicodeScript) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for UnicodeScript

Source§

fn partial_cmp(&self, other: &UnicodeScript) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UnicodeScript

Source§

fn eq(&self, other: &UnicodeScript) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for UnicodeScript

Source§

fn partial_cmp(&self, other: &UnicodeScript) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl StaticType for UnicodeScript

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for UnicodeScript

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for UnicodeScript

Source§

type Type = UnicodeScript

Type to get the Type from. Read more
Source§

impl Copy for UnicodeScript

Source§

impl Eq for UnicodeScript

Source§

impl StructuralPartialEq for UnicodeScript

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl StaticType for UnicodeScript

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for UnicodeScript

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for UnicodeScript

Source§

type Type = UnicodeScript

Type to get the Type from. Read more
Source§

impl Copy for UnicodeScript

Source§

impl Eq for UnicodeScript

Source§

impl StructuralPartialEq for UnicodeScript

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> CloneToUninit for T
where @@ -450,8 +631,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/glib/enum.UnicodeType.html b/git/docs/glib/enum.UnicodeType.html index f28780794802..d63bc0191d23 100644 --- a/git/docs/glib/enum.UnicodeType.html +++ b/git/docs/glib/enum.UnicodeType.html @@ -1,4 +1,4 @@ -UnicodeType in glib - Rust +UnicodeType in glib - Rust -
glib

Enum UnicodeType

Source
#[non_exhaustive]
pub enum UnicodeType { +
glib

Enum UnicodeType

Source
#[non_exhaustive]
pub enum UnicodeType {
Show 30 variants Control, Format, Unassigned, @@ -104,47 +104,80 @@ SpaceSeparator,
}
Expand description

These are the possible character classifications from the Unicode specification. +See Unicode Character Database. +These are the possible character classifications from the +Unicode specification. See Unicode Character Database.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Control

General category “Other, Control” (Cc)

-
§

Format

General category “Other, Format” (Cf)

-
§

Unassigned

General category “Other, Not Assigned” (Cn)

-
§

PrivateUse

General category “Other, Private Use” (Co)

-
§

Surrogate

General category “Other, Surrogate” (Cs)

-
§

LowercaseLetter

General category “Letter, Lowercase” (Ll)

-
§

ModifierLetter

General category “Letter, Modifier” (Lm)

-
§

OtherLetter

General category “Letter, Other” (Lo)

-
§

TitlecaseLetter

General category “Letter, Titlecase” (Lt)

-
§

UppercaseLetter

General category “Letter, Uppercase” (Lu)

-
§

SpacingMark

General category “Mark, Spacing” (Mc)

-
§

EnclosingMark

General category “Mark, Enclosing” (Me)

-
§

NonSpacingMark

General category “Mark, Nonspacing” (Mn)

-
§

DecimalNumber

General category “Number, Decimal Digit” (Nd)

-
§

LetterNumber

General category “Number, Letter” (Nl)

-
§

OtherNumber

General category “Number, Other” (No)

-
§

ConnectPunctuation

General category “Punctuation, Connector” (Pc)

-
§

DashPunctuation

General category “Punctuation, Dash” (Pd)

-
§

ClosePunctuation

General category “Punctuation, Close” (Pe)

-
§

FinalPunctuation

General category “Punctuation, Final quote” (Pf)

-
§

InitialPunctuation

General category “Punctuation, Initial quote” (Pi)

-
§

OtherPunctuation

General category “Punctuation, Other” (Po)

-
§

OpenPunctuation

General category “Punctuation, Open” (Ps)

-
§

CurrencySymbol

General category “Symbol, Currency” (Sc)

-
§

ModifierSymbol

General category “Symbol, Modifier” (Sk)

-
§

MathSymbol

General category “Symbol, Math” (Sm)

-
§

OtherSymbol

General category “Symbol, Other” (So)

-
§

LineSeparator

General category “Separator, Line” (Zl)

-
§

ParagraphSeparator

General category “Separator, Paragraph” (Zp)

-
§

SpaceSeparator

General category “Separator, Space” (Zs)

-

Trait Implementations§

Source§

impl Clone for UnicodeType

Source§

fn clone(&self) -> UnicodeType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnicodeType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<UnicodeType> for Value

Source§

fn from(v: UnicodeType) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for UnicodeType

Source§

type Checker = GenericValueTypeChecker<UnicodeType>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for UnicodeType

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = UnicodeType

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: UnicodeType) -> ParamSpecEnumBuilder<'_, UnicodeType>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for UnicodeType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Control

General category “Other, Control” (Cc) +General category “Other, Control” (Cc)

+
§

Format

General category “Other, Format” (Cf) +General category “Other, Format” (Cf)

+
§

Unassigned

General category “Other, Not Assigned” (Cn) +General category “Other, Not Assigned” (Cn)

+
§

PrivateUse

General category “Other, Private Use” (Co) +General category “Other, Private Use” (Co)

+
§

Surrogate

General category “Other, Surrogate” (Cs) +General category “Other, Surrogate” (Cs)

+
§

LowercaseLetter

General category “Letter, Lowercase” (Ll) +General category “Letter, Lowercase” (Ll)

+
§

ModifierLetter

General category “Letter, Modifier” (Lm) +General category “Letter, Modifier” (Lm)

+
§

OtherLetter

General category “Letter, Other” (Lo) +General category “Letter, Other” (Lo)

+
§

TitlecaseLetter

General category “Letter, Titlecase” (Lt) +General category “Letter, Titlecase” (Lt)

+
§

UppercaseLetter

General category “Letter, Uppercase” (Lu) +General category “Letter, Uppercase” (Lu)

+
§

SpacingMark

General category “Mark, Spacing” (Mc) +General category “Mark, Spacing” (Mc)

+
§

EnclosingMark

General category “Mark, Enclosing” (Me) +General category “Mark, Enclosing” (Me)

+
§

NonSpacingMark

General category “Mark, Nonspacing” (Mn) +General category “Mark, Nonspacing” (Mn)

+
§

DecimalNumber

General category “Number, Decimal Digit” (Nd) +General category “Number, Decimal Digit” (Nd)

+
§

LetterNumber

General category “Number, Letter” (Nl) +General category “Number, Letter” (Nl)

+
§

OtherNumber

General category “Number, Other” (No) +General category “Number, Other” (No)

+
§

ConnectPunctuation

General category “Punctuation, Connector” (Pc) +General category “Punctuation, Connector” (Pc)

+
§

DashPunctuation

General category “Punctuation, Dash” (Pd) +General category “Punctuation, Dash” (Pd)

+
§

ClosePunctuation

General category “Punctuation, Close” (Pe) +General category “Punctuation, Close” (Pe)

+
§

FinalPunctuation

General category “Punctuation, Final quote” (Pf) +General category “Punctuation, Final quote” (Pf)

+
§

InitialPunctuation

General category “Punctuation, Initial quote” (Pi) +General category “Punctuation, Initial quote” (Pi)

+
§

OtherPunctuation

General category “Punctuation, Other” (Po) +General category “Punctuation, Other” (Po)

+
§

OpenPunctuation

General category “Punctuation, Open” (Ps) +General category “Punctuation, Open” (Ps)

+
§

CurrencySymbol

General category “Symbol, Currency” (Sc) +General category “Symbol, Currency” (Sc)

+
§

ModifierSymbol

General category “Symbol, Modifier” (Sk) +General category “Symbol, Modifier” (Sk)

+
§

MathSymbol

General category “Symbol, Math” (Sm) +General category “Symbol, Math” (Sm)

+
§

OtherSymbol

General category “Symbol, Other” (So) +General category “Symbol, Other” (So)

+
§

LineSeparator

General category “Separator, Line” (Zl) +General category “Separator, Line” (Zl)

+
§

ParagraphSeparator

General category “Separator, Paragraph” (Zp) +General category “Separator, Paragraph” (Zp)

+
§

SpaceSeparator

General category “Separator, Space” (Zs) +General category “Separator, Space” (Zs)

+

Trait Implementations§

Source§

impl Clone for UnicodeType

Source§

fn clone(&self) -> UnicodeType

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnicodeType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<UnicodeType> for Value

Source§

fn from(v: UnicodeType) -> Self

Converts to this type from the input type.
Source§

impl<'a> FromValue<'a> for UnicodeType

Source§

type Checker = GenericValueTypeChecker<UnicodeType>

Value type checker.
Source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
Source§

impl HasParamSpec for UnicodeType

Source§

type ParamSpec = ParamSpecEnum

Source§

type SetValue = UnicodeType

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str, _: UnicodeType) -> ParamSpecEnumBuilder<'_, UnicodeType>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for UnicodeType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UnicodeType

Source§

fn cmp(&self, other: &UnicodeType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UnicodeType

Source§

fn cmp(&self, other: &UnicodeType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UnicodeType

Source§

fn eq(&self, other: &UnicodeType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for UnicodeType

Source§

fn partial_cmp(&self, other: &UnicodeType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UnicodeType

Source§

fn eq(&self, other: &UnicodeType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for UnicodeType

Source§

fn partial_cmp(&self, other: &UnicodeType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl StaticType for UnicodeType

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for UnicodeType

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for UnicodeType

Source§

type Type = UnicodeType

Type to get the Type from. Read more
Source§

impl Copy for UnicodeType

Source§

impl Eq for UnicodeType

Source§

impl StructuralPartialEq for UnicodeType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl StaticType for UnicodeType

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl ToValue for UnicodeType

Source§

fn to_value(&self) -> Value

Convert a value to a Value.
Source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
Source§

impl ValueType for UnicodeType

Source§

type Type = UnicodeType

Type to get the Type from. Read more
Source§

impl Copy for UnicodeType

Source§

impl Eq for UnicodeType

Source§

impl StructuralPartialEq for UnicodeType

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> CloneToUninit for T
where @@ -159,8 +192,8 @@ T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T, U> TryFrom<U> for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

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

Source§

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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

Source§

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

Source§

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.
\ No newline at end of file diff --git a/git/docs/glib/enum.UriError.html b/git/docs/glib/enum.UriError.html index e9ffda1fc109..6cb860be3f8d 100644 --- a/git/docs/glib/enum.UriError.html +++ b/git/docs/glib/enum.UriError.html @@ -1,4 +1,4 @@ -UriError in glib - Rust +UriError in glib - Rust -
glib

Enum UriError

Source
#[non_exhaustive]
pub enum UriError { +
glib

Enum UriError

Source
#[non_exhaustive]
pub enum UriError { Failed, BadScheme, BadUser, @@ -82,28 +82,40 @@ BadPath, BadQuery, BadFragment, -}
Available on crate feature v2_66 only.
Expand description

Error codes returned by #GUri methods.

+}
Available on crate feature v2_66 only.
Expand description

Error codes returned by #GUri methods. +Error codes returned by #GUri methods.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Failed

Generic error if no more specific error is available. +See the error message for details. +Generic error if no more specific error is available. See the error message for details.

-
§

BadScheme

The scheme of a URI could not be parsed.

-
§

BadUser

The user/userinfo of a URI could not be parsed.

-
§

BadPassword

The password of a URI could not be parsed.

-
§

BadAuthParams

The authentication parameters of a URI could not be parsed.

-
§

BadHost

The host of a URI could not be parsed.

-
§

BadPort

The port of a URI could not be parsed.

-
§

BadPath

The path of a URI could not be parsed.

-
§

BadQuery

The query of a URI could not be parsed.

-
§

BadFragment

The fragment of a URI could not be parsed.

-

Trait Implementations§

Source§

impl Clone for UriError

Source§

fn clone(&self) -> UriError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UriError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for UriError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for UriError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +
§

BadScheme

The scheme of a URI could not be parsed. +The scheme of a URI could not be parsed.

+
§

BadUser

The user/userinfo of a URI could not be parsed. +The user/userinfo of a URI could not be parsed.

+
§

BadPassword

The password of a URI could not be parsed. +The password of a URI could not be parsed.

+
§

BadAuthParams

The authentication parameters of a URI could not be parsed. +The authentication parameters of a URI could not be parsed.

+
§

BadHost

The host of a URI could not be parsed. +The host of a URI could not be parsed.

+
§

BadPort

The port of a URI could not be parsed. +The port of a URI could not be parsed.

+
§

BadPath

The path of a URI could not be parsed. +The path of a URI could not be parsed.

+
§

BadQuery

The query of a URI could not be parsed. +The query of a URI could not be parsed.

+
§

BadFragment

The fragment of a URI could not be parsed. +The fragment of a URI could not be parsed.

+

Trait Implementations§

Source§

impl Clone for UriError

Source§

fn clone(&self) -> UriError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UriError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ErrorDomain for UriError

Source§

fn domain() -> Quark

Returns the quark identifying the error domain. Read more
Source§

fn code(self) -> i32

Gets the integer representation of the variant.
Source§

fn from(code: i32) -> Option<Self>

Tries to convert an integer code to an enum variant. Read more
Source§

impl Hash for UriError

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UriError

Source§

fn cmp(&self, other: &UriError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for UriError

Source§

fn cmp(&self, other: &UriError) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UriError

Source§

fn eq(&self, other: &UriError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for UriError

Source§

fn partial_cmp(&self, other: &UriError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for UriError

Source§

fn eq(&self, other: &UriError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for UriError

Source§

fn partial_cmp(&self, other: &UriError) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for UriError

Source§

impl Eq for UriError

Source§

impl StructuralPartialEq for UriError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for UriError

Source§

impl Eq for UriError

Source§

impl StructuralPartialEq for UriError

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> CloneToUninit for T
where diff --git a/git/docs/glib/enum.VariantClass.html b/git/docs/glib/enum.VariantClass.html index 47345d600f65..3cbdcd7abba8 100644 --- a/git/docs/glib/enum.VariantClass.html +++ b/git/docs/glib/enum.VariantClass.html @@ -1,4 +1,4 @@ -VariantClass in glib - Rust +VariantClass in glib - Rust -
glib

Enum VariantClass

Source
#[non_exhaustive]
pub enum VariantClass { +
glib

Enum VariantClass

Source
#[non_exhaustive]
pub enum VariantClass {
Show 18 variants Boolean, Byte, Int16, @@ -90,37 +90,58 @@ Array, Tuple, DictEntry, -
}
Expand description

The range of possible top-level types of #GVariant instances.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Boolean

The #GVariant is a boolean.

-
§

Byte

The #GVariant is a byte.

-
§

Int16

The #GVariant is a signed 16 bit integer.

-
§

Uint16

The #GVariant is an unsigned 16 bit integer.

-
§

Int32

The #GVariant is a signed 32 bit integer.

-
§

Uint32

The #GVariant is an unsigned 32 bit integer.

-
§

Int64

The #GVariant is a signed 64 bit integer.

-
§

Uint64

The #GVariant is an unsigned 64 bit integer.

-
§

Handle

The #GVariant is a file handle index.

+

}
Expand description

The range of possible top-level types of #GVariant instances. +The range of possible top-level types of #GVariant instances.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Boolean

The #GVariant is a boolean. +The #GVariant is a boolean.

+
§

Byte

The #GVariant is a byte. +The #GVariant is a byte.

+
§

Int16

The #GVariant is a signed 16 bit integer. +The #GVariant is a signed 16 bit integer.

+
§

Uint16

The #GVariant is an unsigned 16 bit integer. +The #GVariant is an unsigned 16 bit integer.

+
§

Int32

The #GVariant is a signed 32 bit integer. +The #GVariant is a signed 32 bit integer.

+
§

Uint32

The #GVariant is an unsigned 32 bit integer. +The #GVariant is an unsigned 32 bit integer.

+
§

Int64

The #GVariant is a signed 64 bit integer. +The #GVariant is a signed 64 bit integer.

+
§

Uint64

The #GVariant is an unsigned 64 bit integer. +The #GVariant is an unsigned 64 bit integer.

+
§

Handle

The #GVariant is a file handle index. +The #GVariant is a file handle index.

§

Double

The #GVariant is a double precision floating +point value. +The #GVariant is a double precision floating point value.

-
§

String

The #GVariant is a normal string.

+
§

String

The #GVariant is a normal string. +The #GVariant is a normal string.

§

ObjectPath

The #GVariant is a D-Bus object path +string. +The #GVariant is a D-Bus object path string.

-
§

Signature

The #GVariant is a D-Bus signature string.

-
§

Variant

The #GVariant is a variant.

-
§

Maybe

The #GVariant is a maybe-typed value.

-
§

Array

The #GVariant is an array.

-
§

Tuple

The #GVariant is a tuple.

-
§

DictEntry

The #GVariant is a dictionary entry.

-

Trait Implementations§

Source§

impl Clone for VariantClass

Source§

fn clone(&self) -> VariantClass

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VariantClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for VariantClass

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +
§

Signature

The #GVariant is a D-Bus signature string. +The #GVariant is a D-Bus signature string.

+
§

Variant

The #GVariant is a variant. +The #GVariant is a variant.

+
§

Maybe

The #GVariant is a maybe-typed value. +The #GVariant is a maybe-typed value.

+
§

Array

The #GVariant is an array. +The #GVariant is an array.

+
§

Tuple

The #GVariant is a tuple. +The #GVariant is a tuple.

+
§

DictEntry

The #GVariant is a dictionary entry. +The #GVariant is a dictionary entry.

+

Trait Implementations§

Source§

impl Clone for VariantClass

Source§

fn clone(&self) -> VariantClass

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VariantClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for VariantClass

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for VariantClass

Source§

fn cmp(&self, other: &VariantClass) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for VariantClass

Source§

fn cmp(&self, other: &VariantClass) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for VariantClass

Source§

fn eq(&self, other: &VariantClass) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for VariantClass

Source§

fn partial_cmp(&self, other: &VariantClass) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,
Restrict a value to a certain interval. Read more
Source§

impl PartialEq for VariantClass

Source§

fn eq(&self, other: &VariantClass) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for VariantClass

Source§

fn partial_cmp(&self, other: &VariantClass) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl Copy for VariantClass

Source§

impl Eq for VariantClass

Source§

impl StructuralPartialEq for VariantClass

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl Copy for VariantClass

Source§

impl Eq for VariantClass

Source§

impl StructuralPartialEq for VariantClass

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> CloneToUninit for T
where diff --git a/git/docs/glib/enums/enum.UserDirectory.html b/git/docs/glib/enums/enum.UserDirectory.html index d53ab21cd65a..8d21ae0a18e6 100644 --- a/git/docs/glib/enums/enum.UserDirectory.html +++ b/git/docs/glib/enums/enum.UserDirectory.html @@ -71,7 +71,7 @@ -
glib::enums

Enum UserDirectory

Source
pub enum UserDirectory {
+
glib::enums

Enum UserDirectory

Source
pub enum UserDirectory {
     Desktop,
     Documents,
     Downloads,
@@ -85,11 +85,17 @@
 to retrieve the full path associated to the logical id.

The #GUserDirectory enumeration can be extended at later date. Not every platform has a directory for every logical id in this +enumeration. +These are logical ids for special directories which are defined +depending on the platform used. You should use g_get_user_special_dir() +to retrieve the full path associated to the logical id.

+

The #GUserDirectory enumeration can be extended at later date. Not +every platform has a directory for every logical id in this enumeration.

-

Variants§

§

Desktop

§

Documents

§

Downloads

§

Music

§

Pictures

§

PublicShare

§

Templates

§

Videos

Trait Implementations§

Source§

impl Clone for UserDirectory

Source§

fn clone(&self) -> UserDirectory

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UserDirectory

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for UserDirectory

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Variants§

§

Desktop

§

Documents

§

Downloads

§

Music

§

Pictures

§

PublicShare

§

Templates

§

Videos

Trait Implementations§

Source§

impl Clone for UserDirectory

Source§

fn clone(&self) -> UserDirectory

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UserDirectory

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for UserDirectory

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for UserDirectory

Source§

fn eq(&self, other: &UserDirectory) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Copy for UserDirectory

Source§

impl Eq for UserDirectory

Source§

impl StructuralPartialEq for UserDirectory

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for UserDirectory

Source§

fn eq(&self, other: &UserDirectory) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Copy for UserDirectory

Source§

impl Eq for UserDirectory

Source§

impl StructuralPartialEq for UserDirectory

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> CloneToUninit for T
where diff --git a/git/docs/glib/enums/index.html b/git/docs/glib/enums/index.html index 47d35ef2114b..be69fadf9dc7 100644 --- a/git/docs/glib/enums/index.html +++ b/git/docs/glib/enums/index.html @@ -71,9 +71,11 @@ -
glib

Module enums

Source

Structs§

Source§

impl UnsafeFrom<GEnumValue> for EnumValue

Source§

unsafe fn unsafe_from(g_value: GEnumValue) -> Self

Safety Read more
Source§

impl Copy for EnumValue

Source§

impl Eq for EnumValue

Source§

impl Send for EnumValue

Source§

impl Sync for EnumValue

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> CloneToUninit for T
where diff --git a/git/docs/glib/enums/struct.EnumerationValues.html b/git/docs/glib/enums/struct.EnumerationValues.html index 10b4db99779b..9f25c47c7ed2 100644 --- a/git/docs/glib/enums/struct.EnumerationValues.html +++ b/git/docs/glib/enums/struct.EnumerationValues.html @@ -71,7 +71,7 @@ -
glib::enums

Struct EnumerationValues

Source
#[repr(C)]
pub struct EnumerationValues<E: EnumerationValue<E>>(/* private fields */);
Expand description

Representation of enumeration values wrapped by EnumerationValuesStorage. +

glib::enums

Struct EnumerationValues

Source
#[repr(C)]
pub struct EnumerationValues<E: EnumerationValue<E>>(/* private fields */);
Expand description

Representation of enumeration values wrapped by EnumerationValuesStorage. Easier to use because don’t have a size parameter to be specify. Should be used only to register an enum or flags as a dynamic type. see TypePluginRegisterImpl::register_dynamic_enum(), TypePluginRegisterImpl::register_dynamic_flags() @@ -1219,8 +1219,8 @@

§ExamplesASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

To lowercase the value in-place, use make_ascii_lowercase.

-

Trait Implementations§

Source§

impl<E: EnumerationValue<E>, const S: usize> AsRef<EnumerationValues<E>> for EnumerationValuesStorage<E, S>

Source§

fn as_ref(&self) -> &EnumerationValues<E>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<E: EnumerationValue<E>> Deref for EnumerationValues<E>

Source§

fn deref(&self) -> &Self::Target

Dereferences the enumeration values as a slice, but excluding the last value which is zero.

-
Source§

type Target = [E]

The resulting type after dereferencing.

Auto Trait Implementations§

§

impl<E> Freeze for EnumerationValues<E>
where +

Trait Implementations§

Source§

impl<E: EnumerationValue<E>, const S: usize> AsRef<EnumerationValues<E>> for EnumerationValuesStorage<E, S>

Source§

fn as_ref(&self) -> &EnumerationValues<E>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<E: EnumerationValue<E>> Deref for EnumerationValues<E>

Source§

fn deref(&self) -> &Self::Target

Dereferences the enumeration values as a slice, but excluding the last value which is zero.

+
Source§

type Target = [E]

The resulting type after dereferencing.

Auto Trait Implementations§

§

impl<E> Freeze for EnumerationValues<E>
where E: Freeze,

§

impl<E> RefUnwindSafe for EnumerationValues<E>
where E: RefUnwindSafe,

§

impl<E> Send for EnumerationValues<E>
where E: Send,

§

impl<E> !Sized for EnumerationValues<E>

§

impl<E> Sync for EnumerationValues<E>
where diff --git a/git/docs/glib/enums/struct.EnumerationValuesStorage.html b/git/docs/glib/enums/struct.EnumerationValuesStorage.html index f4e7a05e7f1b..e8789d5f8df3 100644 --- a/git/docs/glib/enums/struct.EnumerationValuesStorage.html +++ b/git/docs/glib/enums/struct.EnumerationValuesStorage.html @@ -71,7 +71,7 @@ -
glib::enums

Struct EnumerationValuesStorage

Source
#[repr(C)]
pub struct EnumerationValuesStorage<E: EnumerationValue<E>, const S: usize>(/* private fields */);
Expand description

Storage of enumeration values terminated by a zero value. Should be used +

glib::enums

Struct EnumerationValuesStorage

Source
#[repr(C)]
pub struct EnumerationValuesStorage<E: EnumerationValue<E>, const S: usize>(/* private fields */);
Expand description

Storage of enumeration values terminated by a zero value. Should be used only as a storage location for EnumValue or FlagsValue when registering an enum or flags as a dynamic type. see TypePluginRegisterImpl::register_dynamic_enum(), TypePluginRegisterImpl::register_dynamic_flags() @@ -80,8 +80,8 @@ enum (or flags) values by this way. Use EnumClass::values() or EnumClass::value() to get the enum values. Use FlagsClass::values() or FlagsClass::value() to get the flags values.

-

Implementations§

Source§

impl<E: EnumerationValue<E>, const S: usize> EnumerationValuesStorage<E, S>

Source

pub const fn new<const N: usize>(values: [E; N]) -> Self

creates a new EnumerationValuesStorage with the given values and a final zero value.

-

Trait Implementations§

Source§

impl<E: EnumerationValue<E>, const S: usize> AsRef<EnumerationValues<E>> for EnumerationValuesStorage<E, S>

Source§

fn as_ref(&self) -> &EnumerationValues<E>

Converts this type into a shared reference of the (usually inferred) input type.

Auto Trait Implementations§

§

impl<E, const S: usize> Freeze for EnumerationValuesStorage<E, S>
where +

Implementations§

Source§

impl<E: EnumerationValue<E>, const S: usize> EnumerationValuesStorage<E, S>

Source

pub const fn new<const N: usize>(values: [E; N]) -> Self

creates a new EnumerationValuesStorage with the given values and a final zero value.

+

Trait Implementations§

Source§

impl<E: EnumerationValue<E>, const S: usize> AsRef<EnumerationValues<E>> for EnumerationValuesStorage<E, S>

Source§

fn as_ref(&self) -> &EnumerationValues<E>

Converts this type into a shared reference of the (usually inferred) input type.

Auto Trait Implementations§

§

impl<E, const S: usize> Freeze for EnumerationValuesStorage<E, S>
where E: Freeze,

§

impl<E, const S: usize> RefUnwindSafe for EnumerationValuesStorage<E, S>
where E: RefUnwindSafe,

§

impl<E, const S: usize> Send for EnumerationValuesStorage<E, S>
where E: Send,

§

impl<E, const S: usize> Sync for EnumerationValuesStorage<E, S>
where diff --git a/git/docs/glib/enums/struct.FlagsBuilder.html b/git/docs/glib/enums/struct.FlagsBuilder.html index 13306618e92f..8c24e2444b3b 100644 --- a/git/docs/glib/enums/struct.FlagsBuilder.html +++ b/git/docs/glib/enums/struct.FlagsBuilder.html @@ -71,7 +71,7 @@ -
glib::enums

Struct FlagsBuilder

Source
pub struct FlagsBuilder<'a>(/* private fields */);
Expand description

Builder for conveniently setting/unsetting flags and returning a Value.

+
glib::enums

Struct FlagsBuilder

Source
pub struct FlagsBuilder<'a>(/* private fields */);
Expand description

Builder for conveniently setting/unsetting flags and returning a Value.

Example for getting a flags property, unsetting some flags and setting the updated flags on the object again:

@@ -84,13 +84,13 @@ .unwrap(); obj.set_property("flags", &flags).unwrap();

If setting/unsetting any value fails, build() returns None.

-

Implementations§

Source§

impl FlagsBuilder<'_>

Source

pub fn set(self, f: u32) -> Self

Set flags corresponding to integer value f.

-
Source

pub fn set_by_name(self, name: &str) -> Self

Set flags corresponding to string name name.

-
Source

pub fn set_by_nick(self, nick: &str) -> Self

Set flags corresponding to string nick nick.

-
Source

pub fn unset(self, f: u32) -> Self

Unsets flags corresponding to integer value f.

-
Source

pub fn unset_by_name(self, name: &str) -> Self

Unset flags corresponding to string name name.

-
Source

pub fn unset_by_nick(self, nick: &str) -> Self

Unset flags corresponding to string nick nick.

-
Source

pub fn build(self) -> Option<Value>

Converts to the final Value, unless any previous setting/unsetting of flags failed.

+

Implementations§

Source§

impl FlagsBuilder<'_>

Source

pub fn set(self, f: u32) -> Self

Set flags corresponding to integer value f.

+
Source

pub fn set_by_name(self, name: &str) -> Self

Set flags corresponding to string name name.

+
Source

pub fn set_by_nick(self, nick: &str) -> Self

Set flags corresponding to string nick nick.

+
Source

pub fn unset(self, f: u32) -> Self

Unsets flags corresponding to integer value f.

+
Source

pub fn unset_by_name(self, name: &str) -> Self

Unset flags corresponding to string name name.

+
Source

pub fn unset_by_nick(self, nick: &str) -> Self

Unset flags corresponding to string nick nick.

+
Source

pub fn build(self) -> Option<Value>

Converts to the final Value, unless any previous setting/unsetting of flags failed.

Auto Trait Implementations§

§

impl<'a> Freeze for FlagsBuilder<'a>

§

impl<'a> RefUnwindSafe for FlagsBuilder<'a>

§

impl<'a> !Send for FlagsBuilder<'a>

§

impl<'a> !Sync for FlagsBuilder<'a>

§

impl<'a> Unpin for FlagsBuilder<'a>

§

impl<'a> UnwindSafe for FlagsBuilder<'a>

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 diff --git a/git/docs/glib/enums/struct.FlagsClass.html b/git/docs/glib/enums/struct.FlagsClass.html index 84ce866a30c4..6b75773312e3 100644 --- a/git/docs/glib/enums/struct.FlagsClass.html +++ b/git/docs/glib/enums/struct.FlagsClass.html @@ -71,60 +71,60 @@ -
glib::enums

Struct FlagsClass

Source
pub struct FlagsClass(/* private fields */);
Expand description

Representation of a flags for dynamically, at runtime, querying the values of the enum and +

glib::enums

Struct FlagsClass

Source
pub struct FlagsClass(/* private fields */);
Expand description

Representation of a flags for dynamically, at runtime, querying the values of the enum and using them

-

Implementations§

Source§

impl FlagsClass

Source

pub fn new<T: StaticType + HasParamSpec<ParamSpec = ParamSpecFlags>>() -> Self

Create a new FlagsClass from a static type T.

+

Implementations§

Source§

impl FlagsClass

Source

pub fn new<T: StaticType + HasParamSpec<ParamSpec = ParamSpecFlags>>() -> Self

Create a new FlagsClass from a static type T.

Panics if T is not representing an flags type.

-
Source

pub fn with_type(type_: Type) -> Option<Self>

Create a new FlagsClass from a Type

+
Source

pub fn with_type(type_: Type) -> Option<Self>

Create a new FlagsClass from a Type

Returns None if type_ is not representing a flags type.

-
Source

pub fn type_(&self) -> Type

Type of the flags.

-
Source

pub fn value(&self, value: u32) -> Option<&FlagsValue>

Gets FlagsValue by integer value, if existing.

+
Source

pub fn type_(&self) -> Type

Type of the flags.

+
Source

pub fn value(&self, value: u32) -> Option<&FlagsValue>

Gets FlagsValue by integer value, if existing.

Returns None if the flags do not contain any value with value.

-
Source

pub fn value_by_name(&self, name: &str) -> Option<&FlagsValue>

Gets FlagsValue by string name name, if existing.

+
Source

pub fn value_by_name(&self, name: &str) -> Option<&FlagsValue>

Gets FlagsValue by string name name, if existing.

Returns None if the flags do not contain any value with name name.

-
Source

pub fn value_by_nick(&self, nick: &str) -> Option<&FlagsValue>

Gets FlagsValue by string nick nick, if existing.

+
Source

pub fn value_by_nick(&self, nick: &str) -> Option<&FlagsValue>

Gets FlagsValue by string nick nick, if existing.

Returns None if the flags do not contain any value with nick nick.

-
Source

pub fn values(&self) -> &[FlagsValue]

Gets all FlagsValue of this FlagsClass.

-
Source

pub fn to_value(&self, value: u32) -> Option<Value>

Converts integer value to a Value, if part of the flags.

-
Source

pub fn to_value_by_name(&self, name: &str) -> Option<Value>

Converts string name name to a Value, if part of the flags.

-
Source

pub fn to_value_by_nick(&self, nick: &str) -> Option<Value>

Converts string nick nick to a Value, if part of the flags.

-
Source

pub fn is_set(&self, value: &Value, f: u32) -> bool

Checks if the flags corresponding to integer f is set in value.

-
Source

pub fn is_set_by_name(&self, value: &Value, name: &str) -> bool

Checks if the flags corresponding to string name name is set in value.

-
Source

pub fn is_set_by_nick(&self, value: &Value, nick: &str) -> bool

Checks if the flags corresponding to string nick nick is set in value.

-
Source

pub fn set(&self, value: Value, f: u32) -> Result<Value, Value>

Set flags value corresponding to integer f in value, if part of that flags. If the +

Source

pub fn values(&self) -> &[FlagsValue]

Gets all FlagsValue of this FlagsClass.

+
Source

pub fn to_value(&self, value: u32) -> Option<Value>

Converts integer value to a Value, if part of the flags.

+
Source

pub fn to_value_by_name(&self, name: &str) -> Option<Value>

Converts string name name to a Value, if part of the flags.

+
Source

pub fn to_value_by_nick(&self, nick: &str) -> Option<Value>

Converts string nick nick to a Value, if part of the flags.

+
Source

pub fn is_set(&self, value: &Value, f: u32) -> bool

Checks if the flags corresponding to integer f is set in value.

+
Source

pub fn is_set_by_name(&self, value: &Value, name: &str) -> bool

Checks if the flags corresponding to string name name is set in value.

+
Source

pub fn is_set_by_nick(&self, value: &Value, nick: &str) -> bool

Checks if the flags corresponding to string nick nick is set in value.

+
Source

pub fn set(&self, value: Value, f: u32) -> Result<Value, Value>

Set flags value corresponding to integer f in value, if part of that flags. If the flag is already set, it will succeed without doing any changes.

Returns Ok(value) with the flag set if successful, or Err(value) with the original value otherwise.

-
Source

pub fn set_by_name(&self, value: Value, name: &str) -> Result<Value, Value>

Set flags value corresponding to string name name in value, if part of that flags. +

Source

pub fn set_by_name(&self, value: Value, name: &str) -> Result<Value, Value>

Set flags value corresponding to string name name in value, if part of that flags. If the flag is already set, it will succeed without doing any changes.

Returns Ok(value) with the flag set if successful, or Err(value) with the original value otherwise.

-
Source

pub fn set_by_nick(&self, value: Value, nick: &str) -> Result<Value, Value>

Set flags value corresponding to string nick nick in value, if part of that flags. +

Source

pub fn set_by_nick(&self, value: Value, nick: &str) -> Result<Value, Value>

Set flags value corresponding to string nick nick in value, if part of that flags. If the flag is already set, it will succeed without doing any changes.

Returns Ok(value) with the flag set if successful, or Err(value) with the original value otherwise.

-
Source

pub fn unset(&self, value: Value, f: u32) -> Result<Value, Value>

Unset flags value corresponding to integer f in value, if part of that flags. +

Source

pub fn unset(&self, value: Value, f: u32) -> Result<Value, Value>

Unset flags value corresponding to integer f in value, if part of that flags. If the flag is already unset, it will succeed without doing any changes.

Returns Ok(value) with the flag unset if successful, or Err(value) with the original value otherwise.

-
Source

pub fn unset_by_name(&self, value: Value, name: &str) -> Result<Value, Value>

Unset flags value corresponding to string name name in value, if part of that flags. +

Source

pub fn unset_by_name(&self, value: Value, name: &str) -> Result<Value, Value>

Unset flags value corresponding to string name name in value, if part of that flags. If the flag is already unset, it will succeed without doing any changes.

Returns Ok(value) with the flag unset if successful, or Err(value) with the original value otherwise.

-
Source

pub fn unset_by_nick(&self, value: Value, nick: &str) -> Result<Value, Value>

Unset flags value corresponding to string nick nick in value, if part of that flags. +

Source

pub fn unset_by_nick(&self, value: Value, nick: &str) -> Result<Value, Value>

Unset flags value corresponding to string nick nick in value, if part of that flags. If the flag is already unset, it will succeed without doing any changes.

Returns Ok(value) with the flag unset if successful, or Err(value) with the original value otherwise.

-
Source

pub fn to_nick_string(&self, value: u32) -> String

Converts an integer value to a string of nicks separated by |.

-
Source

pub fn from_nick_string(&self, s: &str) -> Result<u32, ParseFlagsError>

Converts a string of nicks s separated by | to an integer value.

-
Source

pub fn builder(&self) -> FlagsBuilder<'_>

Returns a new FlagsBuilder for conveniently setting/unsetting flags +

Source

pub fn to_nick_string(&self, value: u32) -> String

Converts an integer value to a string of nicks separated by |.

+
Source

pub fn from_nick_string(&self, s: &str) -> Result<u32, ParseFlagsError>

Converts a string of nicks s separated by | to an integer value.

+
Source

pub fn builder(&self) -> FlagsBuilder<'_>

Returns a new FlagsBuilder for conveniently setting/unsetting flags and building a Value.

-
Source

pub fn builder_with_value(&self, value: Value) -> Option<FlagsBuilder<'_>>

Returns a new FlagsBuilder for conveniently setting/unsetting flags +

Source

pub fn builder_with_value(&self, value: Value) -> Option<FlagsBuilder<'_>>

Returns a new FlagsBuilder for conveniently setting/unsetting flags and building a Value. The Value is initialized with value.

-
Source

pub fn complete_type_info( +

Source

pub fn complete_type_info( type_: Type, const_static_values: &'static FlagsValues, ) -> Option<TypeInfo>

Complete TypeInfo for the flags with values. @@ -135,7 +135,7 @@ const_static_values is a reference on a wrapper of a slice of FlagsValue. It must be static to ensure flags values are never dropped, and ensures that slice is terminated by an FlagsValue with all members being 0, as expected by GLib.

-

Trait Implementations§

Source§

impl Clone for FlagsClass

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FlagsClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for FlagsClass

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for FlagsClass

Source§

impl Sync for FlagsClass

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for FlagsClass

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FlagsClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for FlagsClass

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Send for FlagsClass

Source§

impl Sync for FlagsClass

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> CloneToUninit for T
where diff --git a/git/docs/glib/enums/struct.FlagsTypeChecker.html b/git/docs/glib/enums/struct.FlagsTypeChecker.html index 46b8c62ee603..b8a75cec8850 100644 --- a/git/docs/glib/enums/struct.FlagsTypeChecker.html +++ b/git/docs/glib/enums/struct.FlagsTypeChecker.html @@ -71,7 +71,7 @@ -
glib::enums

Struct FlagsTypeChecker

Source
pub struct FlagsTypeChecker();

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +
glib::enums

Struct FlagsTypeChecker

Source
pub struct FlagsTypeChecker();

Trait Implementations§

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git/docs/glib/enums/struct.FlagsValue.html b/git/docs/glib/enums/struct.FlagsValue.html index e19bb510b04e..3305f3748b45 100644 --- a/git/docs/glib/enums/struct.FlagsValue.html +++ b/git/docs/glib/enums/struct.FlagsValue.html @@ -1,4 +1,4 @@ -FlagsValue in glib::enums - Rust +FlagsValue in glib::enums - Rust -
glib::enums

Struct FlagsValue

Source
pub struct FlagsValue(/* private fields */);
Expand description

Representation of a single flags value of a FlagsClass. +

glib::enums

Struct FlagsValue

Source
pub struct FlagsValue(/* private fields */);
Expand description

Representation of a single flags value of a FlagsClass. +A structure which contains a single flags value, its name, and its +nickname. A structure which contains a single flags value, its name, and its nickname.

-

Implementations§

Source§

impl FlagsValue

Source

pub const unsafe fn unsafe_from(g_value: GFlagsValue) -> Self

§Safety
+

Implementations§

Source§

impl FlagsValue

Source

pub const unsafe fn unsafe_from(g_value: GFlagsValue) -> Self

§Safety

It is the responsibility of the caller to ensure GFlagsValue is valid.

-
Source

pub fn value(&self) -> u32

Get integer value corresponding to the value.

-
Source

pub fn name(&self) -> &str

Get name corresponding to the value.

-
Source

pub fn nick(&self) -> &str

Get nick corresponding to the value.

-
Source

pub fn to_value(&self, flags: &FlagsClass) -> Value

Convert flags value to a Value.

-
Source

pub fn from_value(value: &Value) -> Option<(FlagsClass, Vec<&FlagsValue>)>

Convert flags values from a Value. This returns all flags that are set.

-

Trait Implementations§

Source§

impl Clone for FlagsValue

Source§

fn clone(&self) -> FlagsValue

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FlagsValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EnumerationValue<FlagsValue> for FlagsValue

Define the zero value and the associated GLib type.

-
Source§

impl PartialEq for FlagsValue

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl UnsafeFrom<GFlagsValue> for FlagsValue

Source§

unsafe fn unsafe_from(g_value: GFlagsValue) -> Self

Safety Read more
Source§

impl Copy for FlagsValue

Source§

impl Eq for FlagsValue

Source§

impl Send for FlagsValue

Source§

impl Sync for FlagsValue

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Source

pub fn value(&self) -> u32

Get integer value corresponding to the value.

+
Source

pub fn name(&self) -> &str

Get name corresponding to the value.

+
Source

pub fn nick(&self) -> &str

Get nick corresponding to the value.

+
Source

pub fn to_value(&self, flags: &FlagsClass) -> Value

Convert flags value to a Value.

+
Source

pub fn from_value(value: &Value) -> Option<(FlagsClass, Vec<&FlagsValue>)>

Convert flags values from a Value. This returns all flags that are set.

+

Trait Implementations§

Source§

impl Clone for FlagsValue

Source§

fn clone(&self) -> FlagsValue

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FlagsValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl EnumerationValue<FlagsValue> for FlagsValue

Define the zero value and the associated GLib type.

+
Source§

impl PartialEq for FlagsValue

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl UnsafeFrom<GFlagsValue> for FlagsValue

Source§

unsafe fn unsafe_from(g_value: GFlagsValue) -> Self

Safety Read more
Source§

impl Copy for FlagsValue

Source§

impl Eq for FlagsValue

Source§

impl Send for FlagsValue

Source§

impl Sync for FlagsValue

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> CloneToUninit for T
where diff --git a/git/docs/glib/enums/struct.InvalidEnumError.html b/git/docs/glib/enums/struct.InvalidEnumError.html index c7765468fbec..cbf457f7ec18 100644 --- a/git/docs/glib/enums/struct.InvalidEnumError.html +++ b/git/docs/glib/enums/struct.InvalidEnumError.html @@ -71,10 +71,10 @@ -
glib::enums

Struct InvalidEnumError

Source
pub struct InvalidEnumError;
Expand description

An error returned from the get function +

glib::enums

Struct InvalidEnumError

Source
pub struct InvalidEnumError;
Expand description

An error returned from the get function on a Value for enum types.

-

Trait Implementations§

Source§

impl Clone for InvalidEnumError

Source§

fn clone(&self) -> InvalidEnumError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InvalidEnumError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InvalidEnumError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InvalidEnumError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for InvalidEnumError

Source§

fn eq(&self, other: &InvalidEnumError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for InvalidEnumError

Source§

impl StructuralPartialEq for InvalidEnumError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for InvalidEnumError

Source§

fn clone(&self) -> InvalidEnumError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InvalidEnumError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InvalidEnumError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InvalidEnumError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for InvalidEnumError

Source§

fn eq(&self, other: &InvalidEnumError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Eq for InvalidEnumError

Source§

impl StructuralPartialEq for InvalidEnumError

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> CloneToUninit for T
where diff --git a/git/docs/glib/enums/struct.InvalidFlagsError.html b/git/docs/glib/enums/struct.InvalidFlagsError.html index 8e66c03636f1..9a2b44d67865 100644 --- a/git/docs/glib/enums/struct.InvalidFlagsError.html +++ b/git/docs/glib/enums/struct.InvalidFlagsError.html @@ -71,10 +71,10 @@ -
glib::enums

Struct InvalidFlagsError

Source
pub struct InvalidFlagsError;
Expand description

An error returned from the get function +

glib::enums

Struct InvalidFlagsError

Source
pub struct InvalidFlagsError;
Expand description

An error returned from the get function on a Value for flags types.

-

Trait Implementations§

Source§

impl Clone for InvalidFlagsError

Source§

fn clone(&self) -> InvalidFlagsError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InvalidFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InvalidFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InvalidFlagsError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for InvalidFlagsError

Source§

fn eq(&self, other: &InvalidFlagsError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl Eq for InvalidFlagsError

Source§

impl StructuralPartialEq for InvalidFlagsError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Clone for InvalidFlagsError

Source§

fn clone(&self) -> InvalidFlagsError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InvalidFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InvalidFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InvalidFlagsError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for InvalidFlagsError

Source§

fn eq(&self, other: &InvalidFlagsError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl Eq for InvalidFlagsError

Source§

impl StructuralPartialEq for InvalidFlagsError

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> CloneToUninit for T
where diff --git a/git/docs/glib/enums/struct.ParseFlagsError.html b/git/docs/glib/enums/struct.ParseFlagsError.html index de3dd67b0226..fa6486e76451 100644 --- a/git/docs/glib/enums/struct.ParseFlagsError.html +++ b/git/docs/glib/enums/struct.ParseFlagsError.html @@ -71,7 +71,7 @@ -
glib::enums

Struct ParseFlagsError

Source
pub struct ParseFlagsError(/* private fields */);

Implementations§

Source§

impl ParseFlagsError

Source

pub fn flag(&self) -> &str

Trait Implementations§

Source§

impl Debug for ParseFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ParseFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ParseFlagsError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +
glib::enums

Struct ParseFlagsError

Source
pub struct ParseFlagsError(/* private fields */);

Implementations§

Source§

impl ParseFlagsError

Source

pub fn flag(&self) -> &str

Trait Implementations§

Source§

impl Debug for ParseFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ParseFlagsError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ParseFlagsError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git/docs/glib/enums/trait.EnumerationValue.html b/git/docs/glib/enums/trait.EnumerationValue.html index fbf5bd4a198f..b68e9de33521 100644 --- a/git/docs/glib/enums/trait.EnumerationValue.html +++ b/git/docs/glib/enums/trait.EnumerationValue.html @@ -71,11 +71,11 @@ -
glib::enums

Trait EnumerationValue

Source
pub trait EnumerationValue<E>: Copy {
+
glib::enums

Trait EnumerationValue

Source
pub trait EnumerationValue<E>: Copy {
     type GlibType;
 
     const ZERO: E;
 }
Expand description

helper trait to define the zero value and the associated GLib type.

-

Required Associated Constants§

Source

const ZERO: E

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EnumerationValue<EnumValue> for EnumValue

Define the zero value and the associated GLib type.

-
Source§

impl EnumerationValue<FlagsValue> for FlagsValue

Define the zero value and the associated GLib type.

-
\ No newline at end of file +

Required Associated Constants§

Source

const ZERO: E

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EnumerationValue<EnumValue> for EnumValue

Define the zero value and the associated GLib type.

+
Source§

impl EnumerationValue<FlagsValue> for FlagsValue

Define the zero value and the associated GLib type.

+
\ No newline at end of file diff --git a/git/docs/glib/enums/type.EnumValues.html b/git/docs/glib/enums/type.EnumValues.html index ef17b0c9c921..c2e2f8eaa30a 100644 --- a/git/docs/glib/enums/type.EnumValues.html +++ b/git/docs/glib/enums/type.EnumValues.html @@ -71,5 +71,5 @@ -
glib::enums

Type Alias EnumValues

Source
pub type EnumValues = EnumerationValues<EnumValue>;
Expand description

Representation of enum values wrapped by EnumValuesStorage

+
glib::enums

Type Alias EnumValues

Source
pub type EnumValues = EnumerationValues<EnumValue>;
Expand description

Representation of enum values wrapped by EnumValuesStorage

Aliased Type§

struct EnumValues(/* private fields */);
\ No newline at end of file diff --git a/git/docs/glib/enums/type.EnumValuesStorage.html b/git/docs/glib/enums/type.EnumValuesStorage.html index 331d36513922..beb382a21a7f 100644 --- a/git/docs/glib/enums/type.EnumValuesStorage.html +++ b/git/docs/glib/enums/type.EnumValuesStorage.html @@ -71,5 +71,5 @@ -
glib::enums

Type Alias EnumValuesStorage

Source
pub type EnumValuesStorage<const N: usize> = EnumerationValuesStorage<EnumValue, N>;
Expand description

Storage of enum values.

+
glib::enums

Type Alias EnumValuesStorage

Source
pub type EnumValuesStorage<const N: usize> = EnumerationValuesStorage<EnumValue, N>;
Expand description

Storage of enum values.

Aliased Type§

struct EnumValuesStorage<const N: usize>(/* private fields */);
\ No newline at end of file diff --git a/git/docs/glib/enums/type.FlagsValues.html b/git/docs/glib/enums/type.FlagsValues.html index abe89b5abd0a..01493e1419ad 100644 --- a/git/docs/glib/enums/type.FlagsValues.html +++ b/git/docs/glib/enums/type.FlagsValues.html @@ -71,5 +71,5 @@ -
glib::enums

Type Alias FlagsValues

Source
pub type FlagsValues = EnumerationValues<FlagsValue>;
Expand description

Representation of flags values wrapped by FlagsValuesStorage

+
glib::enums

Type Alias FlagsValues

Source
pub type FlagsValues = EnumerationValues<FlagsValue>;
Expand description

Representation of flags values wrapped by FlagsValuesStorage

Aliased Type§

struct FlagsValues(/* private fields */);
\ No newline at end of file diff --git a/git/docs/glib/enums/type.FlagsValuesStorage.html b/git/docs/glib/enums/type.FlagsValuesStorage.html index 4c56b7230824..bfcb81424591 100644 --- a/git/docs/glib/enums/type.FlagsValuesStorage.html +++ b/git/docs/glib/enums/type.FlagsValuesStorage.html @@ -71,5 +71,5 @@ -
glib::enums

Type Alias FlagsValuesStorage

Source
pub type FlagsValuesStorage<const N: usize> = EnumerationValuesStorage<FlagsValue, N>;
Expand description

Storage of flags values.

+
glib::enums

Type Alias FlagsValuesStorage

Source
pub type FlagsValuesStorage<const N: usize> = EnumerationValuesStorage<FlagsValue, N>;
Expand description

Storage of flags values.

Aliased Type§

struct FlagsValuesStorage<const N: usize>(/* private fields */);
\ No newline at end of file diff --git a/git/docs/glib/error/index.html b/git/docs/glib/error/index.html index a0886e6bdd43..cc0474baa631 100644 --- a/git/docs/glib/error/index.html +++ b/git/docs/glib/error/index.html @@ -71,7 +71,5 @@ -
glib

Module error

Source
Expand description

Error binding and helper trait.

-

Structs§

  • A generic error capable of representing various error domains (types). -The GError structure contains information about -an error that has occurred.

Traits§

\ No newline at end of file +
glib

Module error

Source
Expand description

Error binding and helper trait.

+

Structs§

  • A generic error capable of representing various error domains (types).

Traits§

\ No newline at end of file diff --git a/git/docs/glib/error/struct.BoolError.html b/git/docs/glib/error/struct.BoolError.html index 0aa8c1f006da..877ea4a9bed8 100644 --- a/git/docs/glib/error/struct.BoolError.html +++ b/git/docs/glib/error/struct.BoolError.html @@ -71,21 +71,21 @@ -
glib::error

Struct BoolError

Source
pub struct BoolError {
+
glib::error

Struct BoolError

Source
pub struct BoolError {
     pub message: Cow<'static, str>,
     /* private fields */
-}

Fields§

§message: Cow<'static, str>

Implementations§

Fields§

§message: Cow<'static, str>

Implementations§

Source§

impl BoolError

Source

pub fn new( message: impl Into<Cow<'static, str>>, filename: &'static str, function: &'static str, line: u32, -) -> Self

Source

pub fn from_glib( +) -> Self

Source

pub fn from_glib( b: gboolean, message: impl Into<Cow<'static, str>>, filename: &'static str, function: &'static str, line: u32, -) -> Result<(), Self>

Trait Implementations§

Source§

impl Clone for BoolError

Source§

fn clone(&self) -> BoolError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BoolError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for BoolError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for BoolError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +) -> Result<(), Self>

Trait Implementations§

Source§

impl Clone for BoolError

Source§

fn clone(&self) -> BoolError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BoolError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for BoolError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for BoolError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

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> CloneToUninit for T
where diff --git a/git/docs/glib/error/struct.Error.html b/git/docs/glib/error/struct.Error.html index 6e3585461aab..034d3e3906b1 100644 --- a/git/docs/glib/error/struct.Error.html +++ b/git/docs/glib/error/struct.Error.html @@ -1,4 +1,4 @@ -Error in glib::error - Rust +Error in glib::error - Rust -
glib::error

Struct Error

Source
pub struct Error { /* private fields */ }
Expand description

A generic error capable of representing various error domains (types). -The GError structure contains information about -an error that has occurred.

+
glib::error

Struct Error

Source
pub struct Error { /* private fields */ }
Expand description

A generic error capable of representing various error domains (types).

GLib type: Boxed type with copy-on-clone semantics.

-

Implementations§

Source§

impl Error

Source

pub fn as_ptr(&self) -> *mut GError

Return the inner pointer to the underlying C value.

-
Source

pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GError) -> &Self

Borrows the underlying C value.

-
Source

pub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GError) -> &mut Self

Borrows the underlying C value mutably.

-
Source§

impl Error

Source

pub fn new<T: ErrorDomain>(error: T, message: &str) -> Error

Creates an error with supplied error enum variant and message. -Creates a new #GError with the given @domain and @code, -and a message formatted with @format.

-
§domain
-

error domain

-
§code
-

error code

-
§format
-

printf()-style format for error message

-
§Returns
-

a new #GError

-
Source

pub fn is<T: ErrorDomain>(&self) -> bool

Checks if the error domain matches T.

-
Source

pub fn domain(&self) -> Quark

Returns the error domain quark

-
Source

pub fn matches<T: ErrorDomain>(&self, err: T) -> bool

Checks if the error matches the specified domain and error code. -Returns true if @self matches @domain and @code, false -otherwise. In particular, when @self is None, false will -be returned.

-

If @domain contains a FAILED (or otherwise generic) error code, -you should generally not check for it explicitly, but should -instead treat any not-explicitly-recognized error code as being -equivalent to the FAILED code. This way, if the domain is -extended in the future to provide a more specific error code for -a certain case, your code will still work.

-
§domain
-

an error domain

-
§code
-

an error code

-
§Returns
-

whether @self has @domain and @code

-
Source

pub fn kind<T: ErrorDomain>(&self) -> Option<T>

Tries to convert to a specific error enum.

+

Implementations§

Source§

impl Error

Source

pub fn as_ptr(&self) -> *mut GError

Return the inner pointer to the underlying C value.

+
Source

pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GError) -> &Self

Borrows the underlying C value.

+
Source

pub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GError) -> &mut Self

Borrows the underlying C value mutably.

+
Source§

impl Error

Source

pub fn new<T: ErrorDomain>(error: T, message: &str) -> Error

Creates an error with supplied error enum variant and message.

+
Source

pub fn is<T: ErrorDomain>(&self) -> bool

Checks if the error domain matches T.

+
Source

pub fn domain(&self) -> Quark

Returns the error domain quark

+
Source

pub fn matches<T: ErrorDomain>(&self, err: T) -> bool

Checks if the error matches the specified domain and error code.

+
Source

pub fn kind<T: ErrorDomain>(&self) -> Option<T>

Tries to convert to a specific error enum.

Returns Some if the error belongs to the enum’s error domain and None otherwise.

§Examples
@@ -118,20 +91,20 @@
§Examples
... } }
-
Source

pub fn message(&self) -> &str

Returns the error message

+
Source

pub fn message(&self) -> &str

Returns the error message

Most of the time you can simply print the error since it implements the Display trait, but you can use this method if you need to have the message as a &str.

-

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Self

Copies the boxed type with the type-specific copy function.

-
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for CvtError

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Value

Source§

fn from(o: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Infallible> for Error

Source§

fn from(e: Infallible) -> Self

Converts to this type from the input type.
Source§

impl HasParamSpec for Error

Source§

type ParamSpec = ParamSpecBoxed

Source§

type SetValue = Error

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Error>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for Error

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where +

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Self

Copies the boxed type with the type-specific copy function.

+
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for CvtError

Source§

fn from(err: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Value

Source§

fn from(o: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Infallible> for Error

Source§

fn from(e: Infallible) -> Self

Converts to this type from the input type.
Source§

impl HasParamSpec for Error

Source§

type ParamSpec = ParamSpecBoxed

Source§

type SetValue = Error

Preferred value to be used as setter for the associated ParamSpec.
Source§

type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Error>

Source§

fn param_spec_builder() -> Self::BuilderFn

Source§

impl Hash for Error

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Error

Source§

fn cmp(&self, other: &Error) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Error

Source§

fn cmp(&self, other: &Error) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
Source§

impl PartialOrd for Error

Source§

fn partial_cmp(&self, other: &Error) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
Source§

impl PartialOrd for Error

Source§

fn partial_cmp(&self, other: &Error) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
Source§

impl StaticType for Error

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl Eq for Error

Source§

impl Send for Error

Source§

impl StructuralPartialEq for Error

Source§

impl Sync for Error

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +the >= operator. Read more

Source§

impl StaticType for Error

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl Eq for Error

Source§

impl Send for Error

Source§

impl StructuralPartialEq for Error

Source§

impl Sync for Error

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> CloneToUninit for T
where @@ -164,8 +137,8 @@
§Examples
T: HasParamSpec,

Source§

type Value = T

Source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

Source§

impl<T> StaticTypeExt for T
where T: StaticType,

Source§

fn ensure_type()

Ensures that the type has been registered with the type system.
Source§

impl<T> ToOwned for T
where - T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where - T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> ToString for T
where + T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToSendValue for T
where + T: Send + ToValue + ?Sized,

Source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TransparentType for T

Source§

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

Source§

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> TryFromClosureReturnValue for T
where diff --git a/git/docs/glib/error/trait.ErrorDomain.html b/git/docs/glib/error/trait.ErrorDomain.html index 8aa21c27ee07..2c12eb81ca8d 100644 --- a/git/docs/glib/error/trait.ErrorDomain.html +++ b/git/docs/glib/error/trait.ErrorDomain.html @@ -71,7 +71,7 @@ -
glib::error

Trait ErrorDomain

Source
pub trait ErrorDomain: Copy {
+
glib::error

Trait ErrorDomain

Source
pub trait ErrorDomain: Copy {
     // Required methods
     fn domain() -> Quark;
     fn code(self) -> i32;
@@ -79,11 +79,11 @@
        where Self: Sized;
 }
Expand description

GLib error domain.

This trait is implemented by error enums that represent error domains (types).

-

Required Methods§

Source

fn domain() -> Quark

Returns the quark identifying the error domain.

+

Required Methods§

Source

fn domain() -> Quark

Returns the quark identifying the error domain.

As returned from g_some_error_quark.

-
Source

fn code(self) -> i32

Gets the integer representation of the variant.

-
Source

fn from(code: i32) -> Option<Self>
where +

Source

fn code(self) -> i32

Gets the integer representation of the variant.

+
Source

fn from(code: i32) -> Option<Self>
where Self: Sized,

Tries to convert an integer code to an enum variant.

By convention, the Failed variant, if present, is a catch-all, i.e. any unrecognized codes map to it.

-

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file +

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/git/docs/glib/fn.access.html b/git/docs/glib/fn.access.html index 6ccb8d6d073f..35712bcf3923 100644 --- a/git/docs/glib/fn.access.html +++ b/git/docs/glib/fn.access.html @@ -1,4 +1,4 @@ -access in glib - Rust +access in glib - Rust -
glib

Function access

Source
pub fn access(filename: impl AsRef<Path>, mode: i32) -> i32
Expand description

A wrapper for the POSIX access() function. This function is used to -test a pathname for one or several of read, write or execute -permissions, or just existence.

-

On Windows, the file protection mechanism is not at all POSIX-like, -and the underlying function in the C library only checks the -FAT-style READONLY attribute, and does not look at the ACL of a -file at all. This function is this in practise almost useless on -Windows. Software that needs to handle file permissions on Windows -more exactly should use the Win32 API.

-

See your C library manual for more details about access().

-

§filename

-

a pathname in the GLib file name encoding -(UTF-8 on Windows)

-

§mode

-

as in access()

-

§Returns

-

zero if the pathname refers to an existing file system -object that has all the tested permissions, or -1 otherwise -or on error.

-
\ No newline at end of file +
glib

Function access

Source
pub fn access(filename: impl AsRef<Path>, mode: i32) -> i32
\ No newline at end of file diff --git a/git/docs/glib/fn.application_name.html b/git/docs/glib/fn.application_name.html index e57ed87bfa28..d1d7311cba6f 100644 --- a/git/docs/glib/fn.application_name.html +++ b/git/docs/glib/fn.application_name.html @@ -1,4 +1,4 @@ -application_name in glib - Rust +application_name in glib - Rust -
glib

Function application_name

Source
pub fn application_name() -> Option<GString>
Expand description

Gets a human-readable name for the application, as set by -g_set_application_name(). This name should be localized if -possible, and is intended for display to the user. Contrast with -g_get_prgname(), which gets a non-localized name. If -g_set_application_name() has not been called, returns the result of -g_get_prgname() (which may be None if g_set_prgname() has also not -been called).

-

§Returns

-

human-readable application -name. May return None

-
\ No newline at end of file +
glib

Function application_name

Source
pub fn application_name() -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.base64_decode.html b/git/docs/glib/fn.base64_decode.html index f006a7736076..437af1023d7b 100644 --- a/git/docs/glib/fn.base64_decode.html +++ b/git/docs/glib/fn.base64_decode.html @@ -1,4 +1,4 @@ -base64_decode in glib - Rust +base64_decode in glib - Rust -
glib

Function base64_decode

Source
pub fn base64_decode(text: &str) -> Vec<u8>
Expand description

Decode a sequence of Base-64 encoded text into binary data. Note -that the returned binary data is not necessarily zero-terminated, -so it should not be used as a character string.

-

§text

-

zero-terminated string with base64 text to decode

-

§Returns

-
          newly allocated buffer containing the binary data
-          that @text represents. The returned buffer must
-          be freed with g_free().
-
\ No newline at end of file +
glib

Function base64_decode

Source
pub fn base64_decode(text: &str) -> Vec<u8>
\ No newline at end of file diff --git a/git/docs/glib/fn.base64_encode.html b/git/docs/glib/fn.base64_encode.html index d4b871b4a066..499016ba5012 100644 --- a/git/docs/glib/fn.base64_encode.html +++ b/git/docs/glib/fn.base64_encode.html @@ -1,4 +1,4 @@ -base64_encode in glib - Rust +base64_encode in glib - Rust -
glib

Function base64_encode

Source
pub fn base64_encode(data: &[u8]) -> GString
Expand description

Encode a sequence of binary data into its Base-64 stringified -representation.

-

§data

-

the binary data to encode

-

§Returns

-

a newly allocated, zero-terminated Base-64 -encoded string representing @data. The returned string must -be freed with g_free().

-
\ No newline at end of file +
glib

Function base64_encode

Source
pub fn base64_encode(data: &[u8]) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.casefold.html b/git/docs/glib/fn.casefold.html index c6878218bdb0..1e3df04b5d51 100644 --- a/git/docs/glib/fn.casefold.html +++ b/git/docs/glib/fn.casefold.html @@ -71,4 +71,4 @@ -
glib

Function casefold

Source
pub fn casefold(str: impl AsRef<str>) -> GString
\ No newline at end of file +
glib

Function casefold

Source
pub fn casefold(str: impl AsRef<str>) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.check_version.html b/git/docs/glib/fn.check_version.html index cd5736d4d198..3d5ac3ab994e 100644 --- a/git/docs/glib/fn.check_version.html +++ b/git/docs/glib/fn.check_version.html @@ -1,4 +1,4 @@ -check_version in glib - Rust +check_version in glib - Rust -
glib

Function check_version

Source
pub fn check_version(
+
glib

Function check_version

Source
pub fn check_version(
     required_major: u32,
     required_minor: u32,
     required_micro: u32,
-) -> Option<GString>
Expand description

Checks that the GLib library in use is compatible with the -given version.

-

Generally you would pass in the constants GLIB_MAJOR_VERSION, -GLIB_MINOR_VERSION, GLIB_MICRO_VERSION as the three arguments -to this function; that produces a check that the library in use -is compatible with the version of GLib the application or module -was compiled against.

-

Compatibility is defined by two things: first the version -of the running library is newer than the version -@required_major.required_minor.@required_micro. Second -the running library must be binary compatible with the -version @required_major.@required_minor.@required_micro -(same major version.)

-

§required_major

-

the required major version

-

§required_minor

-

the required minor version

-

§required_micro

-

the required micro version

-

§Returns

-

None if the GLib library is -compatible with the given version, or a string describing the -version mismatch. The returned string is owned by GLib and must -not be modified or freed.

-
\ No newline at end of file +) -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.codeset.html b/git/docs/glib/fn.codeset.html index 99cf759cc2f9..7233c1b4151f 100644 --- a/git/docs/glib/fn.codeset.html +++ b/git/docs/glib/fn.codeset.html @@ -1,4 +1,4 @@ -codeset in glib - Rust +codeset in glib - Rust -
glib

Function codeset

Source
pub fn codeset() -> GString
Expand description

Gets the character set for the current locale.

-

§Returns

-

a newly allocated string containing the name -of the character set. This string must be freed with g_free().

-
\ No newline at end of file +
glib

Function codeset

Source
pub fn codeset() -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.compute_checksum_for_bytes.html b/git/docs/glib/fn.compute_checksum_for_bytes.html index bd0dfecb9ae4..7879062236a0 100644 --- a/git/docs/glib/fn.compute_checksum_for_bytes.html +++ b/git/docs/glib/fn.compute_checksum_for_bytes.html @@ -1,4 +1,4 @@ -compute_checksum_for_bytes in glib - Rust +compute_checksum_for_bytes in glib - Rust -
glib

Function compute_checksum_for_bytes

Source
pub fn compute_checksum_for_bytes(
+
glib

Function compute_checksum_for_bytes

Source
pub fn compute_checksum_for_bytes(
     checksum_type: ChecksumType,
     data: &Bytes,
-) -> Option<GString>
Expand description

Computes the checksum for a binary @data. This is a -convenience wrapper for g_checksum_new(), g_checksum_get_string() -and g_checksum_free().

-

The hexadecimal string returned will be in lower case.

-

§checksum_type

-

a #GChecksumType

-

§data

-

binary blob to compute the digest of

-

§Returns

-

the digest of the binary data as a -string in hexadecimal, or None if g_checksum_new() fails for -@checksum_type. The returned string should be freed with g_free() when -done using it.

-
\ No newline at end of file +) -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.compute_checksum_for_data.html b/git/docs/glib/fn.compute_checksum_for_data.html index e8a37fd67ab1..fd2cd2a78dcf 100644 --- a/git/docs/glib/fn.compute_checksum_for_data.html +++ b/git/docs/glib/fn.compute_checksum_for_data.html @@ -1,4 +1,4 @@ -compute_checksum_for_data in glib - Rust +compute_checksum_for_data in glib - Rust -
glib

Function compute_checksum_for_data

Source
pub fn compute_checksum_for_data(
+
glib

Function compute_checksum_for_data

Source
pub fn compute_checksum_for_data(
     checksum_type: ChecksumType,
     data: &[u8],
-) -> Option<GString>
Expand description

Computes the checksum for a binary @data of @length. This is a -convenience wrapper for g_checksum_new(), g_checksum_get_string() -and g_checksum_free().

-

The hexadecimal string returned will be in lower case.

-

§checksum_type

-

a #GChecksumType

-

§data

-

binary blob to compute the digest of

-

§Returns

-

the digest of the binary data as a -string in hexadecimal, or None if g_checksum_new() fails for -@checksum_type. The returned string should be freed with g_free() when -done using it.

-
\ No newline at end of file +) -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.compute_hmac_for_bytes.html b/git/docs/glib/fn.compute_hmac_for_bytes.html index cee97f8b3b71..9b6c2d926742 100644 --- a/git/docs/glib/fn.compute_hmac_for_bytes.html +++ b/git/docs/glib/fn.compute_hmac_for_bytes.html @@ -1,4 +1,4 @@ -compute_hmac_for_bytes in glib - Rust +compute_hmac_for_bytes in glib - Rust -
glib

Function compute_hmac_for_bytes

Source
pub fn compute_hmac_for_bytes(
+
glib

Function compute_hmac_for_bytes

Source
pub fn compute_hmac_for_bytes(
     digest_type: ChecksumType,
     key: &Bytes,
     data: &Bytes,
-) -> GString
Expand description

Computes the HMAC for a binary @data. This is a -convenience wrapper for g_hmac_new(), g_hmac_get_string() -and g_hmac_unref().

-

The hexadecimal string returned will be in lower case.

-

§digest_type

-

a #GChecksumType to use for the HMAC

-

§key

-

the key to use in the HMAC

-

§data

-

binary blob to compute the HMAC of

-

§Returns

-

the HMAC of the binary data as a string in hexadecimal. -The returned string should be freed with g_free() when done using it.

-
\ No newline at end of file +) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.compute_hmac_for_data.html b/git/docs/glib/fn.compute_hmac_for_data.html index 967c6a72de31..d9a015bc2145 100644 --- a/git/docs/glib/fn.compute_hmac_for_data.html +++ b/git/docs/glib/fn.compute_hmac_for_data.html @@ -1,4 +1,4 @@ -compute_hmac_for_data in glib - Rust +compute_hmac_for_data in glib - Rust -
glib

Function compute_hmac_for_data

Source
pub fn compute_hmac_for_data(
+
glib

Function compute_hmac_for_data

Source
pub fn compute_hmac_for_data(
     digest_type: ChecksumType,
     key: &[u8],
     data: &[u8],
-) -> GString
Expand description

Computes the HMAC for a binary @data of @length. This is a -convenience wrapper for g_hmac_new(), g_hmac_get_string() -and g_hmac_unref().

-

The hexadecimal string returned will be in lower case.

-

§digest_type

-

a #GChecksumType to use for the HMAC

-

§key

-

the key to use in the HMAC

-

§data

-

binary blob to compute the HMAC of

-

§Returns

-

the HMAC of the binary data as a string in hexadecimal. -The returned string should be freed with g_free() when done using it.

-
\ No newline at end of file +) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.console_charset.html b/git/docs/glib/fn.console_charset.html index 7d9d8e5442d3..d35f0a88a4ac 100644 --- a/git/docs/glib/fn.console_charset.html +++ b/git/docs/glib/fn.console_charset.html @@ -1,4 +1,4 @@ -console_charset in glib - Rust +console_charset in glib - Rust -
glib

Function console_charset

Source
pub fn console_charset() -> Option<GString>
Available on crate feature v2_62 only.
Expand description

Obtains the character set used by the console attached to the process, -which is suitable for printing output to the terminal.

-

Usually this matches the result returned by g_get_charset(), but in -environments where the locale’s character set does not match the encoding -of the console this function tries to guess a more suitable value instead.

-

On Windows the character set returned by this function is the -output code page used by the console associated with the calling process. -If the codepage can’t be determined (for example because there is no -console attached) UTF-8 is assumed.

-

The return value is true if the locale’s encoding is UTF-8, in that -case you can perhaps avoid calling g_convert().

-

The string returned in @charset is not allocated, and should not be -freed.

-

§Returns

-

true if the returned charset is UTF-8

-

§charset

-

return location for character set -name, or None.

-
\ No newline at end of file +
glib

Function console_charset

Source
pub fn console_charset() -> Option<GString>
Available on crate feature v2_62 only.
\ No newline at end of file diff --git a/git/docs/glib/fn.convert.html b/git/docs/glib/fn.convert.html index 3d890413ddfc..28d09a222ebd 100644 --- a/git/docs/glib/fn.convert.html +++ b/git/docs/glib/fn.convert.html @@ -1,4 +1,4 @@ -convert in glib - Rust +convert in glib - Rust -
glib

Function convert

Source
pub fn convert(
+
glib

Function convert

Source
pub fn convert(
     str_: &[u8],
     to_codeset: impl IntoGStr,
     from_codeset: impl IntoGStr,
-) -> Result<(Slice<u8>, usize), CvtError>
Expand description

Converts a string from one character set to another.

-

Note that you should use g_iconv() for streaming conversions. -Despite the fact that @bytes_read can return information about partial -characters, the g_convert_… functions are not generally suitable -for streaming. If the underlying converter maintains internal state, -then this won’t be preserved across successive calls to g_convert(), -g_convert_with_iconv() or g_convert_with_fallback(). (An example of -this is the GNU C converter for CP1255 which does not emit a base -character until it knows that the next character is not a mark that -could combine with the base character.)

-

Using extensions such as “//TRANSLIT” may not work (or may not work -well) on many platforms. Consider using g_str_to_ascii() instead.

-

§str

-
            the string to convert.
-

§to_codeset

-

name of character set into which to convert @str

-

§from_codeset

-

character set of @str.

-

§Returns

-
     If the conversion was successful, a newly allocated buffer
-     containing the converted string, which must be freed with g_free().
-     Otherwise [`None`] and @error will be set.
-

§bytes_read

-

location to store the number of bytes in -the input string that were successfully converted, or None. -Even if the conversion was successful, this may be -less than @len if there were partial characters -at the end of the input. If the error -ConvertError::IllegalSequence occurs, the value -stored will be the byte offset after the last valid -input sequence.

-
\ No newline at end of file +) -> Result<(Slice<u8>, usize), CvtError>
\ No newline at end of file diff --git a/git/docs/glib/fn.convert_with_fallback.html b/git/docs/glib/fn.convert_with_fallback.html index 42ea32ce8c0e..77b735a00de0 100644 --- a/git/docs/glib/fn.convert_with_fallback.html +++ b/git/docs/glib/fn.convert_with_fallback.html @@ -1,4 +1,4 @@ -convert_with_fallback in glib - Rust +convert_with_fallback in glib - Rust -
glib

Function convert_with_fallback

Source
pub fn convert_with_fallback(
+
glib

Function convert_with_fallback

Source
pub fn convert_with_fallback(
     str_: &[u8],
     to_codeset: impl IntoGStr,
     from_codeset: impl IntoGStr,
     fallback: Option<impl IntoGStr>,
-) -> Result<(Slice<u8>, usize), CvtError>
Expand description

Converts a string from one character set to another, possibly -including fallback sequences for characters not representable -in the output. Note that it is not guaranteed that the specification -for the fallback sequences in @fallback will be honored. Some -systems may do an approximate conversion from @from_codeset -to @to_codeset in their iconv() functions, -in which case GLib will simply return that approximate conversion.

-

Note that you should use g_iconv() for streaming conversions. -Despite the fact that @bytes_read can return information about partial -characters, the g_convert_… functions are not generally suitable -for streaming. If the underlying converter maintains internal state, -then this won’t be preserved across successive calls to g_convert(), -g_convert_with_iconv() or g_convert_with_fallback(). (An example of -this is the GNU C converter for CP1255 which does not emit a base -character until it knows that the next character is not a mark that -could combine with the base character.)

-

§str

-
           the string to convert.
-

§to_codeset

-

name of character set into which to convert @str

-

§from_codeset

-

character set of @str.

-

§fallback

-

UTF-8 string to use in place of characters not -present in the target encoding. (The string must be -representable in the target encoding). -If None, characters not in the target encoding will -be represented as Unicode escapes \uxxxx or \Uxxxxyyyy.

-

§Returns

-
     If the conversion was successful, a newly allocated buffer
-     containing the converted string, which must be freed with g_free().
-     Otherwise [`None`] and @error will be set.
-

§bytes_read

-

location to store the number of bytes in -the input string that were successfully converted, or None. -Even if the conversion was successful, this may be -less than @len if there were partial characters -at the end of the input.

-
\ No newline at end of file +) -> Result<(Slice<u8>, usize), CvtError>
\ No newline at end of file diff --git a/git/docs/glib/fn.current_dir.html b/git/docs/glib/fn.current_dir.html index 72dd5e8ba3c6..27859f235d18 100644 --- a/git/docs/glib/fn.current_dir.html +++ b/git/docs/glib/fn.current_dir.html @@ -1,4 +1,4 @@ -current_dir in glib - Rust +current_dir in glib - Rust -
glib

Function current_dir

Source
pub fn current_dir() -> PathBuf
Expand description

Gets the current directory.

-

The returned string should be freed when no longer needed. -The encoding of the returned string is system defined. -On Windows, it is always UTF-8.

-

Since GLib 2.40, this function will return the value of the “PWD” -environment variable if it is set and it happens to be the same as -the current directory. This can make a difference in the case that -the current directory is the target of a symbolic link.

-

§Returns

-

the current directory

-
\ No newline at end of file +
glib

Function current_dir

Source
pub fn current_dir() -> PathBuf
\ No newline at end of file diff --git a/git/docs/glib/fn.dcgettext.html b/git/docs/glib/fn.dcgettext.html index 536b131bd9ad..a074d6616a62 100644 --- a/git/docs/glib/fn.dcgettext.html +++ b/git/docs/glib/fn.dcgettext.html @@ -1,4 +1,4 @@ -dcgettext in glib - Rust +dcgettext in glib - Rust -
glib

Function dcgettext

Source
pub fn dcgettext(domain: Option<&str>, msgid: &str, category: i32) -> GString
Expand description

This is a variant of g_dgettext() that allows specifying a locale -category instead of always using LC_MESSAGES. See g_dgettext() for -more information about how this functions differs from calling -dcgettext() directly.

-

§domain

-

the translation domain to use, or None to use -the domain set with textdomain()

-

§msgid

-

message to translate

-

§category

-

a locale category

-

§Returns

-

the translated string for the given locale category

-
\ No newline at end of file +
glib

Function dcgettext

Source
pub fn dcgettext(domain: Option<&str>, msgid: &str, category: i32) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.dgettext.html b/git/docs/glib/fn.dgettext.html index 3c2eeb41e6b2..9c9c44f6b761 100644 --- a/git/docs/glib/fn.dgettext.html +++ b/git/docs/glib/fn.dgettext.html @@ -1,4 +1,4 @@ -dgettext in glib - Rust +dgettext in glib - Rust -
glib

Function dgettext

Source
pub fn dgettext(domain: Option<&str>, msgid: &str) -> GString
Expand description

This function is a wrapper of dgettext() which does not translate -the message if the default domain as set with textdomain() has no -translations for the current locale.

-

The advantage of using this function over dgettext() proper is that -libraries using this function (like GTK) will not use translations -if the application using the library does not have translations for -the current locale. This results in a consistent English-only -interface instead of one having partial translations. For this -feature to work, the call to textdomain() and setlocale() should -precede any g_dgettext() invocations. For GTK, it means calling -textdomain() before gtk_init or its variants.

-

This function disables translations if and only if upon its first -call all the following conditions hold:

-
    -
  • -

    @domain is not None

    -
  • -
  • -

    textdomain() has been called to set a default text domain

    -
  • -
  • -

    there is no translations available for the default text domain -and the current locale

    -
  • -
  • -

    current locale is not “C” or any English locales (those -starting with “en_”)

    -
  • -
-

Note that this behavior may not be desired for example if an application -has its untranslated messages in a language other than English. In those -cases the application should call textdomain() after initializing GTK.

-

Applications should normally not use this function directly, -but use the _() macro for translations.

-

§domain

-

the translation domain to use, or None to use -the domain set with textdomain()

-

§msgid

-

message to translate

-

§Returns

-

The translated string

-
\ No newline at end of file +
glib

Function dgettext

Source
pub fn dgettext(domain: Option<&str>, msgid: &str) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.dngettext.html b/git/docs/glib/fn.dngettext.html index 4504e477180f..9b6021655b24 100644 --- a/git/docs/glib/fn.dngettext.html +++ b/git/docs/glib/fn.dngettext.html @@ -1,4 +1,4 @@ -dngettext in glib - Rust +dngettext in glib - Rust -
glib

Function dngettext

Source
pub fn dngettext(
+
glib

Function dngettext

Source
pub fn dngettext(
     domain: Option<&str>,
     msgid: &str,
     msgid_plural: &str,
     n: c_ulong,
-) -> GString
Expand description

This function is a wrapper of dngettext() which does not translate -the message if the default domain as set with textdomain() has no -translations for the current locale.

-

See g_dgettext() for details of how this differs from dngettext() -proper.

-

§domain

-

the translation domain to use, or None to use -the domain set with textdomain()

-

§msgid

-

message to translate

-

§msgid_plural

-

plural form of the message

-

§n

-

the quantity for which translation is needed

-

§Returns

-

The translated string

-
\ No newline at end of file +) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.dpgettext.html b/git/docs/glib/fn.dpgettext.html index 0e2a3c1cde2a..2bb4ee4ead7a 100644 --- a/git/docs/glib/fn.dpgettext.html +++ b/git/docs/glib/fn.dpgettext.html @@ -1,4 +1,4 @@ -dpgettext in glib - Rust +dpgettext in glib - Rust -
glib

Function dpgettext

Source
pub fn dpgettext(
+
glib

Function dpgettext

Source
pub fn dpgettext(
     domain: Option<&str>,
     msgctxtid: &str,
     msgidoffset: usize,
-) -> GString
Expand description

This function is a variant of g_dgettext() which supports -a disambiguating message context. GNU gettext uses the -‘\004’ character to separate the message context and -message id in @msgctxtid. -If 0 is passed as @msgidoffset, this function will fall back to -trying to use the deprecated convention of using “|” as a separation -character.

-

This uses g_dgettext() internally. See that functions for differences -with dgettext() proper.

-

Applications should normally not use this function directly, -but use the C_() macro for translations with context.

-

§domain

-

the translation domain to use, or None to use -the domain set with textdomain()

-

§msgctxtid

-

a combined message context and message id, separated -by a \004 character

-

§msgidoffset

-

the offset of the message id in @msgctxid

-

§Returns

-

The translated string

-
\ No newline at end of file +) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.dpgettext2.html b/git/docs/glib/fn.dpgettext2.html index 87168d481ac2..29ab7b89e23c 100644 --- a/git/docs/glib/fn.dpgettext2.html +++ b/git/docs/glib/fn.dpgettext2.html @@ -1,4 +1,4 @@ -dpgettext2 in glib - Rust +dpgettext2 in glib - Rust -
glib

Function dpgettext2

Source
pub fn dpgettext2(domain: Option<&str>, context: &str, msgid: &str) -> GString
Expand description

This function is a variant of g_dgettext() which supports -a disambiguating message context. GNU gettext uses the -‘\004’ character to separate the message context and -message id in @msgctxtid.

-

This uses g_dgettext() internally. See that functions for differences -with dgettext() proper.

-

This function differs from C_() in that it is not a macro and -thus you may use non-string-literals as context and msgid arguments.

-

§domain

-

the translation domain to use, or None to use -the domain set with textdomain()

-

§context

-

the message context

-

§msgid

-

the message

-

§Returns

-

The translated string

-
\ No newline at end of file +
glib

Function dpgettext2

Source
pub fn dpgettext2(domain: Option<&str>, context: &str, msgid: &str) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.environ.html b/git/docs/glib/fn.environ.html index 76b018c9592a..f95ea6f06852 100644 --- a/git/docs/glib/fn.environ.html +++ b/git/docs/glib/fn.environ.html @@ -1,4 +1,4 @@ -environ in glib - Rust +environ in glib - Rust -
glib

Function environ

Source
pub fn environ() -> Vec<OsString>
Expand description

Gets the list of environment variables for the current process.

-

The list is None terminated and each item in the list is of the -form ‘NAME=VALUE’.

-

This is equivalent to direct access to the ‘environ’ global variable, -except portable.

-

The return value is freshly allocated and it should be freed with -g_strfreev() when it is no longer needed.

-

§Returns

-
the list of environment variables
-
\ No newline at end of file +
glib

Function environ

Source
pub fn environ() -> Vec<OsString>
\ No newline at end of file diff --git a/git/docs/glib/fn.file_get_contents.html b/git/docs/glib/fn.file_get_contents.html index 2101276df626..49a820845c1b 100644 --- a/git/docs/glib/fn.file_get_contents.html +++ b/git/docs/glib/fn.file_get_contents.html @@ -1,4 +1,4 @@ -file_get_contents in glib - Rust +file_get_contents in glib - Rust -
glib

Function file_get_contents

Source
pub fn file_get_contents(filename: impl AsRef<Path>) -> Result<Slice<u8>, Error>
Expand description

Reads an entire file into allocated memory, with good error -checking.

-

If the call was successful, it returns true and sets @contents to the file -contents and @length to the length of the file contents in bytes. The string -stored in @contents will be nul-terminated, so for text files you can pass -None for the @length argument. If the call was not successful, it returns -false and sets @error. The error domain is G_FILE_ERROR. Possible error -codes are those in the #GFileError enumeration. In the error case, -@contents is set to None and @length is set to zero.

-

§filename

-

name of a file to read contents from, in the GLib file name encoding

-

§Returns

-

true on success, false if an error occurred

-

§contents

-

location to store an allocated string, use g_free() to free -the returned string

-
\ No newline at end of file +
glib

Function file_get_contents

Source
pub fn file_get_contents(filename: impl AsRef<Path>) -> Result<Slice<u8>, Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.file_open_tmp.html b/git/docs/glib/fn.file_open_tmp.html index c790514958b2..d71e0c83e072 100644 --- a/git/docs/glib/fn.file_open_tmp.html +++ b/git/docs/glib/fn.file_open_tmp.html @@ -1,4 +1,4 @@ -file_open_tmp in glib - Rust +file_open_tmp in glib - Rust -
glib

Function file_open_tmp

Source
pub fn file_open_tmp(
+
glib

Function file_open_tmp

Source
pub fn file_open_tmp(
     tmpl: Option<impl AsRef<Path>>,
-) -> Result<(RawFd, PathBuf), Error>
Expand description

Opens a file for writing in the preferred directory for temporary -files (as returned by g_get_tmp_dir()).

-

@tmpl should be a string in the GLib file name encoding containing -a sequence of six ‘X’ characters, as the parameter to g_mkstemp(). -However, unlike these functions, the template should only be a -basename, no directory components are allowed. If template is -None, a default template is used.

-

Note that in contrast to g_mkstemp() (and mkstemp()) @tmpl is not -modified, and might thus be a read-only literal string.

-

Upon success, and if @name_used is non-None, the actual name used -is returned in @name_used. This string should be freed with g_free() -when not needed any longer. The returned name is in the GLib file -name encoding.

-

§tmpl

-

Template for file name, as in -g_mkstemp(), basename only, or None for a default template

-

§Returns

-

A file handle (as from open()) to the file opened for -reading and writing. The file is opened in binary mode on platforms -where there is a difference. The file handle should be closed with -close(). In case of errors, -1 is returned and @error will be set.

-

§name_used

-

location to store actual name used, -or None

-
\ No newline at end of file +) -> Result<(RawFd, PathBuf), Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.file_set_contents.html b/git/docs/glib/fn.file_set_contents.html index 84c483ab971c..fb8772ba464d 100644 --- a/git/docs/glib/fn.file_set_contents.html +++ b/git/docs/glib/fn.file_set_contents.html @@ -1,4 +1,4 @@ -file_set_contents in glib - Rust +file_set_contents in glib - Rust -
glib

Function file_set_contents

Source
pub fn file_set_contents(
+
glib

Function file_set_contents

Source
pub fn file_set_contents(
     filename: impl AsRef<Path>,
     contents: &[u8],
-) -> Result<(), Error>
Expand description

Writes all of @contents to a file named @filename. This is a convenience -wrapper around calling g_file_set_contents_full() with flags set to -G_FILE_SET_CONTENTS_CONSISTENT | G_FILE_SET_CONTENTS_ONLY_EXISTING and -mode set to 0666.

-

§filename

-

name of a file to write @contents to, in the GLib file name -encoding

-

§contents

-

string to write to the file

-

§Returns

-

true on success, false if an error occurred

-
\ No newline at end of file +) -> Result<(), Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.file_set_contents_full.html b/git/docs/glib/fn.file_set_contents_full.html index bd719402414b..6e69ac9154f4 100644 --- a/git/docs/glib/fn.file_set_contents_full.html +++ b/git/docs/glib/fn.file_set_contents_full.html @@ -1,4 +1,4 @@ -file_set_contents_full in glib - Rust +file_set_contents_full in glib - Rust -
glib

Function file_set_contents_full

Source
pub fn file_set_contents_full(
+
glib

Function file_set_contents_full

Source
pub fn file_set_contents_full(
     filename: impl AsRef<Path>,
     contents: &[u8],
     flags: FileSetContentsFlags,
     mode: i32,
-) -> Result<(), Error>
Available on crate feature v2_66 only.
Expand description

Writes all of @contents to a file named @filename, with good error checking. -If a file called @filename already exists it will be overwritten.

-

@flags control the properties of the write operation: whether it’s atomic, -and what the tradeoff is between returning quickly or being resilient to -system crashes.

-

As this function performs file I/O, it is recommended to not call it anywhere -where blocking would cause problems, such as in the main loop of a graphical -application. In particular, if @flags has any value other than -FileSetContentsFlags::NONE then this function may call fsync().

-

If FileSetContentsFlags::CONSISTENT is set in @flags, the operation is atomic -in the sense that it is first written to a temporary file which is then -renamed to the final name.

-

Notes:

-
    -
  • -

    On UNIX, if @filename already exists hard links to @filename will break. -Also since the file is recreated, existing permissions, access control -lists, metadata etc. may be lost. If @filename is a symbolic link, -the link itself will be replaced, not the linked file.

    -
  • -
  • -

    On UNIX, if @filename already exists and is non-empty, and if the system -supports it (via a journalling filesystem or equivalent), and if -FileSetContentsFlags::CONSISTENT is set in @flags, the fsync() call (or -equivalent) will be used to ensure atomic replacement: @filename -will contain either its old contents or @contents, even in the face of -system power loss, the disk being unsafely removed, etc.

    -
  • -
  • -

    On UNIX, if @filename does not already exist or is empty, there is a -possibility that system power loss etc. after calling this function will -leave @filename empty or full of NUL bytes, depending on the underlying -filesystem, unless FileSetContentsFlags::DURABLE and -FileSetContentsFlags::CONSISTENT are set in @flags.

    -
  • -
  • -

    On Windows renaming a file will not remove an existing file with the -new name, so on Windows there is a race condition between the existing -file being removed and the temporary file being renamed.

    -
  • -
  • -

    On Windows there is no way to remove a file that is open to some -process, or mapped into memory. Thus, this function will fail if -@filename already exists and is open.

    -
  • -
-

If the call was successful, it returns true. If the call was not successful, -it returns false and sets @error. The error domain is G_FILE_ERROR. -Possible error codes are those in the #GFileError enumeration.

-

Note that the name for the temporary file is constructed by appending up -to 7 characters to @filename.

-

If the file didn’t exist before and is created, it will be given the -permissions from @mode. Otherwise, the permissions of the existing file may -be changed to @mode depending on @flags, or they may remain unchanged.

-

§filename

-

name of a file to write @contents to, in the GLib file name -encoding

-

§contents

-

string to write to the file

-

§flags

-

flags controlling the safety vs speed of the operation

-

§mode

-

file mode, as passed to open(); typically this will be 0666

-

§Returns

-

true on success, false if an error occurred

-
\ No newline at end of file +) -> Result<(), Error>
Available on crate feature v2_66 only.
\ No newline at end of file diff --git a/git/docs/glib/fn.filename_charsets.html b/git/docs/glib/fn.filename_charsets.html index 6385a4004089..e690b0a4b1e2 100644 --- a/git/docs/glib/fn.filename_charsets.html +++ b/git/docs/glib/fn.filename_charsets.html @@ -1,4 +1,4 @@ -filename_charsets in glib - Rust +filename_charsets in glib - Rust -
glib

Function filename_charsets

Source
pub fn filename_charsets() -> (bool, Vec<GString>)
Expand description

Determines the preferred character sets used for filenames. -The first character set from the @charsets is the filename encoding, the -subsequent character sets are used when trying to generate a displayable -representation of a filename, see g_filename_display_name().

-

On Unix, the character sets are determined by consulting the -environment variables G_FILENAME_ENCODING and G_BROKEN_FILENAMES. -On Windows, the character set used in the GLib API is always UTF-8 -and said environment variables have no effect.

-

G_FILENAME_ENCODING may be set to a comma-separated list of -character set names. The special token “@locale” is taken -to mean the character set for the [current locale][setlocale]. -If G_FILENAME_ENCODING is not set, but G_BROKEN_FILENAMES is, -the character set of the current locale is taken as the filename -encoding. If neither environment variable is set, UTF-8 is taken -as the filename encoding, but the character set of the current locale -is also put in the list of encodings.

-

The returned @charsets belong to GLib and must not be freed.

-

Note that on Unix, regardless of the locale character set or -G_FILENAME_ENCODING value, the actual file names present -on a system might be in any random encoding or just gibberish.

-

§Returns

-

true if the filename encoding is UTF-8.

-

§filename_charsets

-

return location for the None-terminated list of encoding names

-
\ No newline at end of file +
glib

Function filename_charsets

Source
pub fn filename_charsets() -> (bool, Vec<GString>)
\ No newline at end of file diff --git a/git/docs/glib/fn.filename_display_basename.html b/git/docs/glib/fn.filename_display_basename.html index 8a07455364a5..a6ce7c9f452e 100644 --- a/git/docs/glib/fn.filename_display_basename.html +++ b/git/docs/glib/fn.filename_display_basename.html @@ -1,4 +1,4 @@ -filename_display_basename in glib - Rust +filename_display_basename in glib - Rust -
glib

Function filename_display_basename

Source
pub fn filename_display_basename(filename: impl AsRef<Path>) -> GString
Expand description

Returns the display basename for the particular filename, guaranteed -to be valid UTF-8. The display name might not be identical to the filename, -for instance there might be problems converting it to UTF-8, and some files -can be translated in the display.

-

If GLib cannot make sense of the encoding of @filename, as a last resort it -replaces unknown characters with U+FFFD, the Unicode replacement character. -You can search the result for the UTF-8 encoding of this character (which is -“\357\277\275” in octal notation) to find out if @filename was in an invalid -encoding.

-

You must pass the whole absolute pathname to this functions so that -translation of well known locations can be done.

-

This function is preferred over g_filename_display_name() if you know the -whole path, as it allows translation.

-

§filename

-

an absolute pathname in the -GLib file name encoding

-

§Returns

-

a newly allocated string containing -a rendition of the basename of the filename in valid UTF-8

-
\ No newline at end of file +
glib

Function filename_display_basename

Source
pub fn filename_display_basename(filename: impl AsRef<Path>) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.filename_display_name.html b/git/docs/glib/fn.filename_display_name.html index 783be60b3fc0..36765d0d56ee 100644 --- a/git/docs/glib/fn.filename_display_name.html +++ b/git/docs/glib/fn.filename_display_name.html @@ -1,4 +1,4 @@ -filename_display_name in glib - Rust +filename_display_name in glib - Rust -
glib

Function filename_display_name

Source
pub fn filename_display_name(filename: impl AsRef<Path>) -> GString
Expand description

Converts a filename into a valid UTF-8 string. The conversion is -not necessarily reversible, so you should keep the original around -and use the return value of this function only for display purposes. -Unlike g_filename_to_utf8(), the result is guaranteed to be non-None -even if the filename actually isn’t in the GLib file name encoding.

-

If GLib cannot make sense of the encoding of @filename, as a last resort it -replaces unknown characters with U+FFFD, the Unicode replacement character. -You can search the result for the UTF-8 encoding of this character (which is -“\357\277\275” in octal notation) to find out if @filename was in an invalid -encoding.

-

If you know the whole pathname of the file you should use -g_filename_display_basename(), since that allows location-based -translation of filenames.

-

§filename

-

a pathname hopefully in the -GLib file name encoding

-

§Returns

-

a newly allocated string containing -a rendition of the filename in valid UTF-8

-
\ No newline at end of file +
glib

Function filename_display_name

Source
pub fn filename_display_name(filename: impl AsRef<Path>) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.filename_from_uri.html b/git/docs/glib/fn.filename_from_uri.html index 6d78d74b9bfd..4c9830644fcf 100644 --- a/git/docs/glib/fn.filename_from_uri.html +++ b/git/docs/glib/fn.filename_from_uri.html @@ -1,4 +1,4 @@ -filename_from_uri in glib - Rust +filename_from_uri in glib - Rust -
glib

Function filename_from_uri

Source
pub fn filename_from_uri(uri: &str) -> Result<(PathBuf, Option<GString>), Error>
Expand description

Converts an escaped ASCII-encoded URI to a local filename in the -encoding used for filenames.

-

Since GLib 2.78, the query string and fragment can be present in the URI, -but are not part of the resulting filename. -We take inspiration from https://url.spec.whatwg.org/#file-state, -but we don’t support the entire standard.

-

§uri

-

a uri describing a filename (escaped, encoded in ASCII).

-

§Returns

-

a newly-allocated string holding -the resulting filename, or None on an error.

-

§hostname

-

Location to store hostname for the URI. -If there is no hostname in the URI, None will be -stored in this location.

-
\ No newline at end of file +
glib

Function filename_from_uri

Source
pub fn filename_from_uri(uri: &str) -> Result<(PathBuf, Option<GString>), Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.filename_from_utf8.html b/git/docs/glib/fn.filename_from_utf8.html index 132ed891a23e..6e21e4556fa6 100644 --- a/git/docs/glib/fn.filename_from_utf8.html +++ b/git/docs/glib/fn.filename_from_utf8.html @@ -1,4 +1,4 @@ -filename_from_utf8 in glib - Rust +filename_from_utf8 in glib - Rust -
glib

Function filename_from_utf8

Source
pub fn filename_from_utf8(
+
glib

Function filename_from_utf8

Source
pub fn filename_from_utf8(
     utf8string: impl IntoGStr,
-) -> Result<(PathBuf, usize), CvtError>
Expand description

Converts a string from UTF-8 to the encoding GLib uses for -filenames. Note that on Windows GLib uses UTF-8 for filenames; -on other platforms, this function indirectly depends on the -[current locale][setlocale].

-

The input string shall not contain nul characters even if the @len -argument is positive. A nul character found inside the string will result -in error ConvertError::IllegalSequence. If the filename encoding is -not UTF-8 and the conversion output contains a nul character, the error -ConvertError::EmbeddedNul is set and the function returns None.

-

§utf8string

-

a UTF-8 encoded string.

-

§len

-

the length of the string, or -1 if the string is -nul-terminated.

-

§Returns

-
          The converted string, or [`None`] on an error.
-

§bytes_read

-

location to store the number of bytes in -the input string that were successfully converted, or None. -Even if the conversion was successful, this may be -less than @len if there were partial characters -at the end of the input. If the error -ConvertError::IllegalSequence occurs, the value -stored will be the byte offset after the last valid -input sequence.

-

§bytes_written

-

the number of bytes stored in -the output buffer (not including the terminating nul).

-
\ No newline at end of file +) -> Result<(PathBuf, usize), CvtError>
\ No newline at end of file diff --git a/git/docs/glib/fn.filename_to_uri.html b/git/docs/glib/fn.filename_to_uri.html index 0467955add6d..1e9e68574468 100644 --- a/git/docs/glib/fn.filename_to_uri.html +++ b/git/docs/glib/fn.filename_to_uri.html @@ -1,4 +1,4 @@ -filename_to_uri in glib - Rust +filename_to_uri in glib - Rust -
glib

Function filename_to_uri

Source
pub fn filename_to_uri(
+
glib

Function filename_to_uri

Source
pub fn filename_to_uri(
     filename: impl AsRef<Path>,
     hostname: Option<&str>,
-) -> Result<GString, Error>
Expand description

Converts an absolute filename to an escaped ASCII-encoded URI, with the path -component following Section 3.3. of RFC 2396.

-

§filename

-

an absolute filename specified in the GLib file -name encoding, which is the on-disk file name bytes on Unix, and UTF-8 -on Windows

-

§hostname

-

A UTF-8 encoded hostname, or None for none.

-

§Returns

-

a newly-allocated string holding the resulting -URI, or None on an error.

-
\ No newline at end of file +) -> Result<GString, Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.filename_to_utf8.html b/git/docs/glib/fn.filename_to_utf8.html index f4f0e7257ff1..40227047f1f7 100644 --- a/git/docs/glib/fn.filename_to_utf8.html +++ b/git/docs/glib/fn.filename_to_utf8.html @@ -1,4 +1,4 @@ -filename_to_utf8 in glib - Rust +filename_to_utf8 in glib - Rust -
glib

Function filename_to_utf8

Source
pub fn filename_to_utf8(
+
glib

Function filename_to_utf8

Source
pub fn filename_to_utf8(
     opsysstring: impl AsRef<Path>,
-) -> Result<(GString, usize), CvtError>
Expand description

Converts a string which is in the encoding used by GLib for -filenames into a UTF-8 string. Note that on Windows GLib uses UTF-8 -for filenames; on other platforms, this function indirectly depends on -the [current locale][setlocale].

-

The input string shall not contain nul characters even if the @len -argument is positive. A nul character found inside the string will result -in error ConvertError::IllegalSequence. -If the source encoding is not UTF-8 and the conversion output contains a -nul character, the error ConvertError::EmbeddedNul is set and the -function returns None. Use g_convert() to produce output that -may contain embedded nul characters.

-

§opsysstring

-

a string in the encoding for filenames

-

§len

-

the length of the string, or -1 if the string is -nul-terminated (Note that some encodings may allow nul -bytes to occur inside strings. In that case, using -1 -for the @len parameter is unsafe)

-

§Returns

-

The converted string, or None on an error.

-

§bytes_read

-

location to store the number of bytes in the -input string that were successfully converted, or None. -Even if the conversion was successful, this may be -less than @len if there were partial characters -at the end of the input. If the error -ConvertError::IllegalSequence occurs, the value -stored will be the byte offset after the last valid -input sequence.

-

§bytes_written

-

the number of bytes stored in the output -buffer (not including the terminating nul).

-
\ No newline at end of file +) -> Result<(GString, usize), CvtError>
\ No newline at end of file diff --git a/git/docs/glib/fn.find_program_in_path.html b/git/docs/glib/fn.find_program_in_path.html index ed09020e91b5..a4f4f2361066 100644 --- a/git/docs/glib/fn.find_program_in_path.html +++ b/git/docs/glib/fn.find_program_in_path.html @@ -1,4 +1,4 @@ -find_program_in_path in glib - Rust +find_program_in_path in glib - Rust -
glib

Function find_program_in_path

Source
pub fn find_program_in_path(program: impl AsRef<Path>) -> Option<PathBuf>
Expand description

Locates the first executable named @program in the user’s path, in the -same way that execvp() would locate it. Returns an allocated string -with the absolute path name, or None if the program is not found in -the path. If @program is already an absolute path, returns a copy of -@program if @program exists and is executable, and None otherwise.

-

On Windows, if @program does not have a file type suffix, tries -with the suffixes .exe, .cmd, .bat and .com, and the suffixes in -the PATHEXT environment variable.

-

On Windows, it looks for the file in the same way as CreateProcess() -would. This means first in the directory where the executing -program was loaded from, then in the current directory, then in the -Windows 32-bit system directory, then in the Windows directory, and -finally in the directories in the PATH environment variable. If -the program is found, the return value contains the full name -including the type suffix.

-

§program

-

a program name in the GLib file name encoding

-

§Returns

-

a newly-allocated -string with the absolute path, or None

-
\ No newline at end of file +
glib

Function find_program_in_path

Source
pub fn find_program_in_path(program: impl AsRef<Path>) -> Option<PathBuf>
\ No newline at end of file diff --git a/git/docs/glib/fn.format_size.html b/git/docs/glib/fn.format_size.html index a6e54c58e944..e7bb7eb68d1a 100644 --- a/git/docs/glib/fn.format_size.html +++ b/git/docs/glib/fn.format_size.html @@ -1,4 +1,4 @@ -format_size in glib - Rust +format_size in glib - Rust -
glib

Function format_size

Source
pub fn format_size(size: u64) -> GString
Expand description

Formats a size (for example the size of a file) into a human readable -string. Sizes are rounded to the nearest size prefix (kB, MB, GB) -and are displayed rounded to the nearest tenth. E.g. the file size -3292528 bytes will be converted into the string “3.2 MB”. The returned string -is UTF-8, and may use a non-breaking space to separate the number and units, -to ensure they aren’t separated when line wrapped.

-

The prefix units base is 1000 (i.e. 1 kB is 1000 bytes).

-

This string should be freed with g_free() when not needed any longer.

-

See g_format_size_full() for more options about how the size might be -formatted.

-

§size

-

a size in bytes

-

§Returns

-

a newly-allocated formatted string containing -a human readable file size

-
\ No newline at end of file +
glib

Function format_size

Source
pub fn format_size(size: u64) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.format_size_full.html b/git/docs/glib/fn.format_size_full.html index e3b5a6d4a423..99a06ff765b2 100644 --- a/git/docs/glib/fn.format_size_full.html +++ b/git/docs/glib/fn.format_size_full.html @@ -1,4 +1,4 @@ -format_size_full in glib - Rust +format_size_full in glib - Rust -
glib

Function format_size_full

Source
pub fn format_size_full(size: u64, flags: FormatSizeFlags) -> GString
Expand description

Formats a size.

-

This function is similar to g_format_size() but allows for flags -that modify the output. See #GFormatSizeFlags.

-

§size

-

a size in bytes

-

§flags

-

#GFormatSizeFlags to modify the output

-

§Returns

-

a newly-allocated formatted string -containing a human readable file size

-
\ No newline at end of file +
glib

Function format_size_full

Source
pub fn format_size_full(size: u64, flags: FormatSizeFlags) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.getenv.html b/git/docs/glib/fn.getenv.html index 6f9c88d9bb3a..9c73e1900903 100644 --- a/git/docs/glib/fn.getenv.html +++ b/git/docs/glib/fn.getenv.html @@ -1,4 +1,4 @@ -getenv in glib - Rust +getenv in glib - Rust -
glib

Function getenv

Source
pub fn getenv(variable: impl AsRef<OsStr>) -> Option<OsString>
Expand description

Returns the value of an environment variable.

-

On UNIX, the name and value are byte strings which might or might not -be in some consistent character set and encoding. On Windows, they are -in UTF-8. -On Windows, in case the environment variable’s value contains -references to other environment variables, they are expanded.

-

§variable

-

the environment variable to get

-

§Returns

-

the value of the environment variable, or None if -the environment variable is not found. The returned string -may be overwritten by the next call to g_getenv(), g_setenv() -or g_unsetenv().

-
\ No newline at end of file +
glib

Function getenv

Source
pub fn getenv(variable: impl AsRef<OsStr>) -> Option<OsString>
\ No newline at end of file diff --git a/git/docs/glib/fn.home_dir.html b/git/docs/glib/fn.home_dir.html index e2f3b918b001..690e949d39f6 100644 --- a/git/docs/glib/fn.home_dir.html +++ b/git/docs/glib/fn.home_dir.html @@ -1,4 +1,4 @@ -home_dir in glib - Rust +home_dir in glib - Rust -
glib

Function home_dir

Source
pub fn home_dir() -> PathBuf
Expand description

Gets the current user’s home directory.

-

As with most UNIX tools, this function will return the value of the -HOME environment variable if it is set to an existing absolute path -name, falling back to the passwd file in the case that it is unset.

-

If the path given in HOME is non-absolute, does not exist, or is -not a directory, the result is undefined.

-

Before version 2.36 this function would ignore the HOME environment -variable, taking the value from the passwd database instead. This was -changed to increase the compatibility of GLib with other programs (and -the XDG basedir specification) and to increase testability of programs -based on GLib (by making it easier to run them from test frameworks).

-

If your program has a strong requirement for either the new or the -old behaviour (and if you don’t wish to increase your GLib -dependency to ensure that the new behaviour is in effect) then you -should either directly check the HOME environment variable yourself -or unset it before calling any functions in GLib.

-

§Returns

-

the current user’s home directory

-
\ No newline at end of file +
glib

Function home_dir

Source
pub fn home_dir() -> PathBuf
\ No newline at end of file diff --git a/git/docs/glib/fn.host_name.html b/git/docs/glib/fn.host_name.html index 9e44416307c2..6691260c2316 100644 --- a/git/docs/glib/fn.host_name.html +++ b/git/docs/glib/fn.host_name.html @@ -1,4 +1,4 @@ -host_name in glib - Rust +host_name in glib - Rust -
glib

Function host_name

Source
pub fn host_name() -> GString
Expand description

Return a name for the machine.

-

The returned name is not necessarily a fully-qualified domain name, -or even present in DNS or some other name service at all. It need -not even be unique on your local network or site, but usually it -is. Callers should not rely on the return value having any specific -properties like uniqueness for security purposes. Even if the name -of the machine is changed while an application is running, the -return value from this function does not change. The returned -string is owned by GLib and should not be modified or freed. If no -name can be determined, a default fixed string “localhost” is -returned.

-

The encoding of the returned string is UTF-8.

-

§Returns

-

the host name of the machine.

-
\ No newline at end of file +
glib

Function host_name

Source
pub fn host_name() -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.hostname_is_ascii_encoded.html b/git/docs/glib/fn.hostname_is_ascii_encoded.html index e0ded3c6ef1c..8173972380b9 100644 --- a/git/docs/glib/fn.hostname_is_ascii_encoded.html +++ b/git/docs/glib/fn.hostname_is_ascii_encoded.html @@ -1,4 +1,4 @@ -hostname_is_ascii_encoded in glib - Rust +hostname_is_ascii_encoded in glib - Rust -
glib

Function hostname_is_ascii_encoded

Source
pub fn hostname_is_ascii_encoded(hostname: &str) -> bool
Expand description

Tests if @hostname contains segments with an ASCII-compatible -encoding of an Internationalized Domain Name. If this returns -true, you should decode the hostname with g_hostname_to_unicode() -before displaying it to the user.

-

Note that a hostname might contain a mix of encoded and unencoded -segments, and so it is possible for g_hostname_is_non_ascii() and -g_hostname_is_ascii_encoded() to both return true for a name.

-

§hostname

-

a hostname

-

§Returns

-

true if @hostname contains any ASCII-encoded -segments.

-
\ No newline at end of file +
glib

Function hostname_is_ascii_encoded

Source
pub fn hostname_is_ascii_encoded(hostname: &str) -> bool
\ No newline at end of file diff --git a/git/docs/glib/fn.hostname_is_ip_address.html b/git/docs/glib/fn.hostname_is_ip_address.html index cb6e65334f4e..d18adafb0e1b 100644 --- a/git/docs/glib/fn.hostname_is_ip_address.html +++ b/git/docs/glib/fn.hostname_is_ip_address.html @@ -1,4 +1,4 @@ -hostname_is_ip_address in glib - Rust +hostname_is_ip_address in glib - Rust -
glib

Function hostname_is_ip_address

Source
pub fn hostname_is_ip_address(hostname: &str) -> bool
Expand description

Tests if @hostname is the string form of an IPv4 or IPv6 address. -(Eg, “192.168.0.1”.)

-

Since 2.66, IPv6 addresses with a zone-id are accepted (RFC6874).

-

§hostname

-

a hostname (or IP address in string form)

-

§Returns

-

true if @hostname is an IP address

-
\ No newline at end of file +
glib

Function hostname_is_ip_address

Source
pub fn hostname_is_ip_address(hostname: &str) -> bool
\ No newline at end of file diff --git a/git/docs/glib/fn.hostname_is_non_ascii.html b/git/docs/glib/fn.hostname_is_non_ascii.html index 4f11e666845d..5847fedd97d1 100644 --- a/git/docs/glib/fn.hostname_is_non_ascii.html +++ b/git/docs/glib/fn.hostname_is_non_ascii.html @@ -1,4 +1,4 @@ -hostname_is_non_ascii in glib - Rust +hostname_is_non_ascii in glib - Rust -
glib

Function hostname_is_non_ascii

Source
pub fn hostname_is_non_ascii(hostname: &str) -> bool
Expand description

Tests if @hostname contains Unicode characters. If this returns -true, you need to encode the hostname with g_hostname_to_ascii() -before using it in non-IDN-aware contexts.

-

Note that a hostname might contain a mix of encoded and unencoded -segments, and so it is possible for g_hostname_is_non_ascii() and -g_hostname_is_ascii_encoded() to both return true for a name.

-

§hostname

-

a hostname

-

§Returns

-

true if @hostname contains any non-ASCII characters

-
\ No newline at end of file +
glib

Function hostname_is_non_ascii

Source
pub fn hostname_is_non_ascii(hostname: &str) -> bool
\ No newline at end of file diff --git a/git/docs/glib/fn.hostname_to_ascii.html b/git/docs/glib/fn.hostname_to_ascii.html index 4a56f01ae204..1f11c35a6275 100644 --- a/git/docs/glib/fn.hostname_to_ascii.html +++ b/git/docs/glib/fn.hostname_to_ascii.html @@ -1,4 +1,4 @@ -hostname_to_ascii in glib - Rust +hostname_to_ascii in glib - Rust -
glib

Function hostname_to_ascii

Source
pub fn hostname_to_ascii(hostname: &str) -> Option<GString>
Expand description

Converts @hostname to its canonical ASCII form; an ASCII-only -string containing no uppercase letters and not ending with a -trailing dot.

-

§hostname

-

a valid UTF-8 or ASCII hostname

-

§Returns

-

an ASCII hostname, which must be freed, -or None if @hostname is in some way invalid.

-
\ No newline at end of file +
glib

Function hostname_to_ascii

Source
pub fn hostname_to_ascii(hostname: &str) -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.hostname_to_unicode.html b/git/docs/glib/fn.hostname_to_unicode.html index 0f4dc64d83f1..20e1d573446b 100644 --- a/git/docs/glib/fn.hostname_to_unicode.html +++ b/git/docs/glib/fn.hostname_to_unicode.html @@ -1,4 +1,4 @@ -hostname_to_unicode in glib - Rust +hostname_to_unicode in glib - Rust -
glib

Function hostname_to_unicode

Source
pub fn hostname_to_unicode(hostname: &str) -> Option<GString>
Expand description

Converts @hostname to its canonical presentation form; a UTF-8 -string in Unicode normalization form C, containing no uppercase -letters, no forbidden characters, and no ASCII-encoded segments, -and not ending with a trailing dot.

-

Of course if @hostname is not an internationalized hostname, then -the canonical presentation form will be entirely ASCII.

-

§hostname

-

a valid UTF-8 or ASCII hostname

-

§Returns

-

a UTF-8 hostname, which must be freed, -or None if @hostname is in some way invalid.

-
\ No newline at end of file +
glib

Function hostname_to_unicode

Source
pub fn hostname_to_unicode(hostname: &str) -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.is_canonical_pspec_name.html b/git/docs/glib/fn.is_canonical_pspec_name.html index cfa927c1b7c8..cc9fd29f9de8 100644 --- a/git/docs/glib/fn.is_canonical_pspec_name.html +++ b/git/docs/glib/fn.is_canonical_pspec_name.html @@ -71,4 +71,4 @@ -
glib

Function is_canonical_pspec_name

Source
pub fn is_canonical_pspec_name(name: &str) -> bool
\ No newline at end of file +
glib

Function is_canonical_pspec_name

Source
pub fn is_canonical_pspec_name(name: &str) -> bool
\ No newline at end of file diff --git a/git/docs/glib/fn.language_names.html b/git/docs/glib/fn.language_names.html index cfe8535507d3..1f9fe9da7ed7 100644 --- a/git/docs/glib/fn.language_names.html +++ b/git/docs/glib/fn.language_names.html @@ -1,4 +1,4 @@ -language_names in glib - Rust +language_names in glib - Rust -
glib

Function language_names

Source
pub fn language_names() -> Vec<GString>
Expand description

Computes a list of applicable locale names, which can be used to -e.g. construct locale-dependent filenames or search paths. The returned -list is sorted from most desirable to least desirable and always contains -the default locale “C”.

-

For example, if LANGUAGE=de:en_US, then the returned list is -“de”, “en_US”, “en”, “C”.

-

This function consults the environment variables LANGUAGE, LC_ALL, -LC_MESSAGES and LANG to find the list of locales specified by the -user.

-

§Returns

-

a None-terminated array of strings owned by GLib -that must not be modified or freed.

-
\ No newline at end of file +
glib

Function language_names

Source
pub fn language_names() -> Vec<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.language_names_with_category.html b/git/docs/glib/fn.language_names_with_category.html index a0ac938dd5d1..4728b320ee7d 100644 --- a/git/docs/glib/fn.language_names_with_category.html +++ b/git/docs/glib/fn.language_names_with_category.html @@ -1,4 +1,4 @@ -language_names_with_category in glib - Rust +language_names_with_category in glib - Rust -
glib

Function language_names_with_category

Source
pub fn language_names_with_category(category_name: &str) -> Vec<GString>
Available on crate feature v2_58 only.
Expand description

Computes a list of applicable locale names with a locale category name, -which can be used to construct the fallback locale-dependent filenames -or search paths. The returned list is sorted from most desirable to -least desirable and always contains the default locale “C”.

-

This function consults the environment variables LANGUAGE, LC_ALL, -@category_name, and LANG to find the list of locales specified by the -user.

-

g_get_language_names() returns g_get_language_names_with_category(“LC_MESSAGES”).

-

§category_name

-

a locale category name

-

§Returns

-

a None-terminated array of strings owned by -the thread g_get_language_names_with_category was called from. -It must not be modified or freed. It must be copied if planned to be used in another thread.

-
\ No newline at end of file +
glib

Function language_names_with_category

Source
pub fn language_names_with_category(category_name: &str) -> Vec<GString>
Available on crate feature v2_58 only.
\ No newline at end of file diff --git a/git/docs/glib/fn.listenv.html b/git/docs/glib/fn.listenv.html index 6acdabb9c9d6..e965d974af7f 100644 --- a/git/docs/glib/fn.listenv.html +++ b/git/docs/glib/fn.listenv.html @@ -1,4 +1,4 @@ -listenv in glib - Rust +listenv in glib - Rust -
glib

Function listenv

Source
pub fn listenv() -> Vec<OsString>
Expand description

Gets the names of all variables set in the environment.

-

Programs that want to be portable to Windows should typically use -this function and g_getenv() instead of using the environ array -from the C library directly. On Windows, the strings in the environ -array are in system codepage encoding, while in most of the typical -use cases for environment variables in GLib-using programs you want -the UTF-8 encoding that this function and g_getenv() provide.

-

§Returns

-
a [`None`]-terminated list of strings which must be freed with
-g_strfreev().
-
\ No newline at end of file +
glib

Function listenv

Source
pub fn listenv() -> Vec<OsString>
\ No newline at end of file diff --git a/git/docs/glib/fn.locale_from_utf8.html b/git/docs/glib/fn.locale_from_utf8.html index cb54cf94c1a9..9cdac1b837a1 100644 --- a/git/docs/glib/fn.locale_from_utf8.html +++ b/git/docs/glib/fn.locale_from_utf8.html @@ -1,4 +1,4 @@ -locale_from_utf8 in glib - Rust +locale_from_utf8 in glib - Rust -
glib

Function locale_from_utf8

Source
pub fn locale_from_utf8(
+
glib

Function locale_from_utf8

Source
pub fn locale_from_utf8(
     utf8string: impl IntoGStr,
-) -> Result<(Slice<u8>, usize), CvtError>
Expand description

Converts a string from UTF-8 to the encoding used for strings by -the C runtime (usually the same as that used by the operating -system) in the [current locale][setlocale]. On Windows this means -the system codepage.

-

The input string shall not contain nul characters even if the @len -argument is positive. A nul character found inside the string will result -in error ConvertError::IllegalSequence. Use g_convert() to convert -input that may contain embedded nul characters.

-

§utf8string

-

a UTF-8 encoded string

-

§len

-

the length of the string, or -1 if the string is -nul-terminated.

-

§Returns

-
     A newly-allocated buffer containing the converted string,
-     or [`None`] on an error, and error will be set.
-

§bytes_read

-

location to store the number of bytes in the -input string that were successfully converted, or None. -Even if the conversion was successful, this may be -less than @len if there were partial characters -at the end of the input. If the error -ConvertError::IllegalSequence occurs, the value -stored will be the byte offset after the last valid -input sequence.

-
\ No newline at end of file +) -> Result<(Slice<u8>, usize), CvtError>
\ No newline at end of file diff --git a/git/docs/glib/fn.locale_to_utf8.html b/git/docs/glib/fn.locale_to_utf8.html index 0ad6b14a5d10..f0bb71ce6b8a 100644 --- a/git/docs/glib/fn.locale_to_utf8.html +++ b/git/docs/glib/fn.locale_to_utf8.html @@ -1,4 +1,4 @@ -locale_to_utf8 in glib - Rust +locale_to_utf8 in glib - Rust -
glib

Function locale_to_utf8

Source
pub fn locale_to_utf8(opsysstring: &[u8]) -> Result<(GString, usize), CvtError>
Expand description

Converts a string which is in the encoding used for strings by -the C runtime (usually the same as that used by the operating -system) in the [current locale][setlocale] into a UTF-8 string.

-

If the source encoding is not UTF-8 and the conversion output contains a -nul character, the error ConvertError::EmbeddedNul is set and the -function returns None. -If the source encoding is UTF-8, an embedded nul character is treated with -the ConvertError::IllegalSequence error for backward compatibility with -earlier versions of this library. Use g_convert() to produce output that -may contain embedded nul characters.

-

§opsysstring

-

a string in the -encoding of the current locale. On Windows -this means the system codepage.

-

§Returns

-

The converted string, or None on an error.

-

§bytes_read

-

location to store the number of bytes in the -input string that were successfully converted, or None. -Even if the conversion was successful, this may be -less than @len if there were partial characters -at the end of the input. If the error -ConvertError::IllegalSequence occurs, the value -stored will be the byte offset after the last valid -input sequence.

-

§bytes_written

-

the number of bytes stored in the output -buffer (not including the terminating nul).

-
\ No newline at end of file +
glib

Function locale_to_utf8

Source
pub fn locale_to_utf8(opsysstring: &[u8]) -> Result<(GString, usize), CvtError>
\ No newline at end of file diff --git a/git/docs/glib/fn.locale_variants.html b/git/docs/glib/fn.locale_variants.html index 80e119ed9566..e6d242ea3aa5 100644 --- a/git/docs/glib/fn.locale_variants.html +++ b/git/docs/glib/fn.locale_variants.html @@ -1,4 +1,4 @@ -locale_variants in glib - Rust +locale_variants in glib - Rust -
glib

Function locale_variants

Source
pub fn locale_variants(locale: &str) -> Vec<GString>
Expand description

Returns a list of derived variants of @locale, which can be used to -e.g. construct locale-dependent filenames or search paths. The returned -list is sorted from most desirable to least desirable. -This function handles territory, charset and extra locale modifiers. See -setlocale(3) for information about locales and their format.

-

@locale itself is guaranteed to be returned in the output.

-

For example, if @locale is fr_BE, then the returned list -is fr_BE, fr. If @locale is en_GB.UTF-8@euro, then the returned list -is en_GB.UTF-8@euro, en_GB.UTF-8, en_GB@euro, en_GB, en.UTF-8@euro, -en.UTF-8, en@euro, en.

-

If you need the list of variants for the current locale, -use g_get_language_names().

-

§locale

-

a locale identifier

-

§Returns

-

a newly -allocated array of newly allocated strings with the locale variants. Free with -g_strfreev().

-
\ No newline at end of file +
glib

Function locale_variants

Source
pub fn locale_variants(locale: &str) -> Vec<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.main_current_source.html b/git/docs/glib/fn.main_current_source.html index 1af3e21bbda2..5de169dae159 100644 --- a/git/docs/glib/fn.main_current_source.html +++ b/git/docs/glib/fn.main_current_source.html @@ -1,4 +1,4 @@ -main_current_source in glib - Rust +main_current_source in glib - Rust -
glib

Function main_current_source

Source
pub fn main_current_source() -> Option<Source>
Expand description

Returns the currently firing source for this thread.

-

§Returns

-

The currently firing source or None.

-
\ No newline at end of file +
glib

Function main_current_source

Source
pub fn main_current_source() -> Option<Source>
\ No newline at end of file diff --git a/git/docs/glib/fn.main_depth.html b/git/docs/glib/fn.main_depth.html index 90633d5015ca..01df249cf90d 100644 --- a/git/docs/glib/fn.main_depth.html +++ b/git/docs/glib/fn.main_depth.html @@ -1,4 +1,4 @@ -main_depth in glib - Rust +main_depth in glib - Rust -
glib

Function main_depth

Source
pub fn main_depth() -> i32
Expand description

Returns the depth of the stack of calls to -MainContext::dispatch() on any #GMainContext in the current thread. -That is, when called from the toplevel, it gives 0. When -called from within a callback from MainContext::iteration() -(or MainLoop::run(), etc.) it returns 1. When called from within -a callback to a recursive call to MainContext::iteration(), -it returns 2. And so forth.

-

This function is useful in a situation like the following: -Imagine an extremely simple “garbage collected” system.

-

⚠️ The following code is in C ⚠️

-
static GList *free_list;
-
-gpointer
-allocate_memory (gsize size)
-{
-  gpointer result = g_malloc (size);
-  free_list = g_list_prepend (free_list, result);
-  return result;
-}
-
-void
-free_allocated_memory (void)
-{
-  GList *l;
-  for (l = free_list; l; l = l->next);
-    g_free (l->data);
-  g_list_free (free_list);
-  free_list = NULL;
- }
-
-[...]
-
-while (TRUE);
- {
-   g_main_context_iteration (NULL, TRUE);
-   free_allocated_memory();
-  }
-

This works from an application, however, if you want to do the same -thing from a library, it gets more difficult, since you no longer -control the main loop. You might think you can simply use an idle -function to make the call to free_allocated_memory(), but that -doesn’t work, since the idle function could be called from a -recursive callback. This can be fixed by using main_depth()

-

⚠️ The following code is in C ⚠️

-
gpointer
-allocate_memory (gsize size)
-{
-  FreeListBlock *block = g_new (FreeListBlock, 1);
-  block->mem = g_malloc (size);
-  block->depth = g_main_depth ();
-  free_list = g_list_prepend (free_list, block);
-  return block->mem;
-}
-
-void
-free_allocated_memory (void)
-{
-  GList *l;
-
-  int depth = g_main_depth ();
-  for (l = free_list; l; );
-    {
-      GList *next = l->next;
-      FreeListBlock *block = l->data;
-      if (block->depth > depth)
-        {
-          g_free (block->mem);
-          g_free (block);
-          free_list = g_list_delete_link (free_list, l);
-        }
-
-      l = next;
-    }
-  }
-

There is a temptation to use main_depth() to solve -problems with reentrancy. For instance, while waiting for data -to be received from the network in response to a menu item, -the menu item might be selected again. It might seem that -one could make the menu item’s callback return immediately -and do nothing if main_depth() returns a value greater than 1. -However, this should be avoided since the user then sees selecting -the menu item do nothing. Furthermore, you’ll find yourself adding -these checks all over your code, since there are doubtless many, -many things that the user could do. Instead, you can use the -following techniques:

-
    -
  1. -

    Use gtk_widget_set_sensitive() or modal dialogs to prevent -the user from interacting with elements while the main -loop is recursing.

    -
  2. -
  3. -

    Avoid main loop recursion in situations where you can’t handle -arbitrary callbacks. Instead, structure your code so that you -simply return to the main loop and then get called again when -there is more work to do.

    -
  4. -
-

§Returns

-

The main loop recursion level in the current thread

-
\ No newline at end of file +
glib

Function main_depth

Source
pub fn main_depth() -> i32
\ No newline at end of file diff --git a/git/docs/glib/fn.markup_escape_text.html b/git/docs/glib/fn.markup_escape_text.html index 996518f3363e..d26428994d78 100644 --- a/git/docs/glib/fn.markup_escape_text.html +++ b/git/docs/glib/fn.markup_escape_text.html @@ -1,4 +1,4 @@ -markup_escape_text in glib - Rust +markup_escape_text in glib - Rust -
glib

Function markup_escape_text

Source
pub fn markup_escape_text(text: &str) -> GString
Expand description

Escapes text so that the markup parser will parse it verbatim. -Less than, greater than, ampersand, etc. are replaced with the -corresponding entities. This function would typically be used -when writing out a file to be parsed with the markup parser.

-

Note that this function doesn’t protect whitespace and line endings -from being processed according to the XML rules for normalization -of line endings and attribute values.

-

Note also that this function will produce character references in -the range of  …  for all control sequences -except for tabstop, newline and carriage return. The character -references in this range are not valid XML 1.0, but they are -valid XML 1.1 and will be accepted by the GMarkup parser.

-

§text

-

some valid UTF-8 text

-

§length

-

length of @text in bytes, or -1 if the text is nul-terminated

-

§Returns

-

a newly allocated string with the escaped text

-
\ No newline at end of file +
glib

Function markup_escape_text

Source
pub fn markup_escape_text(text: &str) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.mkdir_with_parents.html b/git/docs/glib/fn.mkdir_with_parents.html index be631b61482d..954bf6549cd5 100644 --- a/git/docs/glib/fn.mkdir_with_parents.html +++ b/git/docs/glib/fn.mkdir_with_parents.html @@ -1,4 +1,4 @@ -mkdir_with_parents in glib - Rust +mkdir_with_parents in glib - Rust -
glib

Function mkdir_with_parents

Source
pub fn mkdir_with_parents(pathname: impl AsRef<Path>, mode: i32) -> i32
Expand description

Create a directory if it doesn’t already exist. Create intermediate -parent directories as needed, too.

-

§pathname

-

a pathname in the GLib file name encoding

-

§mode

-

permissions to use for newly created directories

-

§Returns

-

0 if the directory already exists, or was successfully -created. Returns -1 if an error occurred, with errno set.

-
\ No newline at end of file +
glib

Function mkdir_with_parents

Source
pub fn mkdir_with_parents(pathname: impl AsRef<Path>, mode: i32) -> i32
\ No newline at end of file diff --git a/git/docs/glib/fn.mkdtemp.html b/git/docs/glib/fn.mkdtemp.html index e034bcaff5d9..8b6543764dfd 100644 --- a/git/docs/glib/fn.mkdtemp.html +++ b/git/docs/glib/fn.mkdtemp.html @@ -1,4 +1,4 @@ -mkdtemp in glib - Rust +mkdtemp in glib - Rust -
glib

Function mkdtemp

Source
pub fn mkdtemp(tmpl: impl AsRef<Path>) -> Option<PathBuf>
Expand description

Creates a temporary directory. See the mkdtemp() documentation -on most UNIX-like systems.

-

The parameter is a string that should follow the rules for -mkdtemp() templates, i.e. contain the string “XXXXXX”. -g_mkdtemp() is slightly more flexible than mkdtemp() in that the -sequence does not have to occur at the very end of the template. -The X string will be modified to form the name of a directory that -didn’t exist. -The string should be in the GLib file name encoding. Most importantly, -on Windows it should be in UTF-8.

-

If you are going to be creating a temporary directory inside the -directory returned by g_get_tmp_dir(), you might want to use -g_dir_make_tmp() instead.

-

§tmpl

-

template directory name

-

§Returns

-

A pointer to @tmpl, which has been -modified to hold the directory name. In case of errors, None is -returned and errno will be set.

-
\ No newline at end of file +
glib

Function mkdtemp

Source
pub fn mkdtemp(tmpl: impl AsRef<Path>) -> Option<PathBuf>
\ No newline at end of file diff --git a/git/docs/glib/fn.mkdtemp_full.html b/git/docs/glib/fn.mkdtemp_full.html index d92ba7ff5995..b4258d109977 100644 --- a/git/docs/glib/fn.mkdtemp_full.html +++ b/git/docs/glib/fn.mkdtemp_full.html @@ -1,4 +1,4 @@ -mkdtemp_full in glib - Rust +mkdtemp_full in glib - Rust -
glib

Function mkdtemp_full

Source
pub fn mkdtemp_full(tmpl: impl AsRef<Path>, mode: i32) -> Option<PathBuf>
Expand description

Creates a temporary directory. See the mkdtemp() documentation -on most UNIX-like systems.

-

The parameter is a string that should follow the rules for -mkdtemp() templates, i.e. contain the string “XXXXXX”. -g_mkdtemp_full() is slightly more flexible than mkdtemp() in that the -sequence does not have to occur at the very end of the template -and you can pass a @mode. The X string will be modified to form -the name of a directory that didn’t exist. The string should be -in the GLib file name encoding. Most importantly, on Windows it -should be in UTF-8.

-

If you are going to be creating a temporary directory inside the -directory returned by g_get_tmp_dir(), you might want to use -g_dir_make_tmp() instead.

-

§tmpl

-

template directory name

-

§mode

-

permissions to create the temporary directory with

-

§Returns

-

A pointer to @tmpl, which has been -modified to hold the directory name. In case of errors, None is -returned, and errno will be set.

-
\ No newline at end of file +
glib

Function mkdtemp_full

Source
pub fn mkdtemp_full(tmpl: impl AsRef<Path>, mode: i32) -> Option<PathBuf>
\ No newline at end of file diff --git a/git/docs/glib/fn.mkstemp.html b/git/docs/glib/fn.mkstemp.html index d3f768b23b1e..a0bd5fcb2f99 100644 --- a/git/docs/glib/fn.mkstemp.html +++ b/git/docs/glib/fn.mkstemp.html @@ -1,4 +1,4 @@ -mkstemp in glib - Rust +mkstemp in glib - Rust -
glib

Function mkstemp

Source
pub fn mkstemp<P: AsRef<Path>>(tmpl: P) -> i32
Expand description

Opens a temporary file. See the mkstemp() documentation -on most UNIX-like systems.

-

The parameter is a string that should follow the rules for -mkstemp() templates, i.e. contain the string “XXXXXX”. -g_mkstemp() is slightly more flexible than mkstemp() in that the -sequence does not have to occur at the very end of the template. -The X string will be modified to form the name of a file that -didn’t exist. The string should be in the GLib file name encoding. -Most importantly, on Windows it should be in UTF-8.

-

§tmpl

-

template filename

-

§Returns

-

A file handle (as from open()) to the file -opened for reading and writing. The file is opened in binary -mode on platforms where there is a difference. The file handle -should be closed with close(). In case of errors, -1 is -returned and errno will be set.

-
\ No newline at end of file +
glib

Function mkstemp

Source
pub fn mkstemp<P: AsRef<Path>>(tmpl: P) -> i32
\ No newline at end of file diff --git a/git/docs/glib/fn.mkstemp_full.html b/git/docs/glib/fn.mkstemp_full.html index 92a613524317..6925a82f2000 100644 --- a/git/docs/glib/fn.mkstemp_full.html +++ b/git/docs/glib/fn.mkstemp_full.html @@ -1,4 +1,4 @@ -mkstemp_full in glib - Rust +mkstemp_full in glib - Rust -
glib

Function mkstemp_full

Source
pub fn mkstemp_full(tmpl: impl AsRef<Path>, flags: i32, mode: i32) -> i32
Expand description

Opens a temporary file. See the mkstemp() documentation -on most UNIX-like systems.

-

The parameter is a string that should follow the rules for -mkstemp() templates, i.e. contain the string “XXXXXX”. -g_mkstemp_full() is slightly more flexible than mkstemp() -in that the sequence does not have to occur at the very end of the -template and you can pass a @mode and additional @flags. The X -string will be modified to form the name of a file that didn’t exist. -The string should be in the GLib file name encoding. Most importantly, -on Windows it should be in UTF-8.

-

§tmpl

-

template filename

-

§flags

-

flags to pass to an open() call in addition to O_EXCL -and O_CREAT, which are passed automatically

-

§mode

-

permissions to create the temporary file with

-

§Returns

-

A file handle (as from open()) to the file -opened for reading and writing. The file handle should be -closed with close(). In case of errors, -1 is returned -and errno will be set.

-
\ No newline at end of file +
glib

Function mkstemp_full

Source
pub fn mkstemp_full(tmpl: impl AsRef<Path>, flags: i32, mode: i32) -> i32
\ No newline at end of file diff --git a/git/docs/glib/fn.monotonic_time.html b/git/docs/glib/fn.monotonic_time.html index fdb0101dd54b..f2774257d61d 100644 --- a/git/docs/glib/fn.monotonic_time.html +++ b/git/docs/glib/fn.monotonic_time.html @@ -1,4 +1,4 @@ -monotonic_time in glib - Rust +monotonic_time in glib - Rust -
glib

Function monotonic_time

Source
pub fn monotonic_time() -> i64
Expand description

Queries the system monotonic time.

-

The monotonic clock will always increase and doesn’t suffer -discontinuities when the user (or NTP) changes the system time. It -may or may not continue to tick during times where the machine is -suspended.

-

We try to use the clock that corresponds as closely as possible to -the passage of time as measured by system calls such as poll() but it -may not always be possible to do this.

-

§Returns

-

the monotonic time, in microseconds

-
\ No newline at end of file +
glib

Function monotonic_time

Source
pub fn monotonic_time() -> i64
\ No newline at end of file diff --git a/git/docs/glib/fn.normalize.html b/git/docs/glib/fn.normalize.html index ac7a5fd3544f..0be7e9c5b2c9 100644 --- a/git/docs/glib/fn.normalize.html +++ b/git/docs/glib/fn.normalize.html @@ -71,4 +71,4 @@ -
glib

Function normalize

Source
pub fn normalize(str: impl AsRef<str>, mode: NormalizeMode) -> GString
\ No newline at end of file +
glib

Function normalize

Source
pub fn normalize(str: impl AsRef<str>, mode: NormalizeMode) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.num_processors.html b/git/docs/glib/fn.num_processors.html index 1e1014cba2af..d5862ff49617 100644 --- a/git/docs/glib/fn.num_processors.html +++ b/git/docs/glib/fn.num_processors.html @@ -1,4 +1,4 @@ -num_processors in glib - Rust +num_processors in glib - Rust -
glib

Function num_processors

Source
pub fn num_processors() -> u32
Expand description

Determine the approximate number of threads that the system will -schedule simultaneously for this process. This is intended to be -used as a parameter to g_thread_pool_new() for CPU bound tasks and -similar cases.

-

§Returns

-

Number of schedulable threads, always greater than 0

-
\ No newline at end of file +
glib

Function num_processors

Source
pub fn num_processors() -> u32
\ No newline at end of file diff --git a/git/docs/glib/fn.on_error_query.html b/git/docs/glib/fn.on_error_query.html index 3e385fcfeded..fa1b2b380f0e 100644 --- a/git/docs/glib/fn.on_error_query.html +++ b/git/docs/glib/fn.on_error_query.html @@ -1,4 +1,4 @@ -on_error_query in glib - Rust +on_error_query in glib - Rust -
glib

Function on_error_query

Source
pub fn on_error_query(prg_name: &str)
Expand description

Prompts the user with -[E]xit, [H]alt, show [S]tack trace or [P]roceed. -This function is intended to be used for debugging use only. -The following example shows how it can be used together with -the g_log() functions.

-

⚠️ The following code is in C ⚠️

-
#include <glib.h>
-
-static void
-log_handler (const gchar   *log_domain,
-             GLogLevelFlags log_level,
-             const gchar   *message,
-             gpointer       user_data)
-{
-  g_log_default_handler (log_domain, log_level, message, user_data);
-
-  g_on_error_query (MY_PROGRAM_NAME);
-}
-
-int
-main (int argc, char *argv[])
-{
-  g_log_set_handler (MY_LOG_DOMAIN,
-                     G_LOG_LEVEL_WARNING |
-                     G_LOG_LEVEL_ERROR |
-                     G_LOG_LEVEL_CRITICAL,
-                     log_handler,
-                     NULL);
-  ...
-

If “[E]xit” is selected, the application terminates with a call -to _exit(0).

-

If “[S]tack” trace is selected, g_on_error_stack_trace() is called. -This invokes gdb, which attaches to the current process and shows -a stack trace. The prompt is then shown again.

-

If “[P]roceed” is selected, the function returns.

-

This function may cause different actions on non-UNIX platforms.

-

On Windows consider using the G_DEBUGGER environment -variable (see Running GLib Applications) and -calling g_on_error_stack_trace() instead.

-

§prg_name

-

the program name, needed by gdb for the “[S]tack trace” -option. If @prg_name is None, g_get_prgname() is called to get -the program name (which will work correctly if gdk_init() or -gtk_init() has been called)

-
\ No newline at end of file +
glib

Function on_error_query

Source
pub fn on_error_query(prg_name: &str)
\ No newline at end of file diff --git a/git/docs/glib/fn.on_error_stack_trace.html b/git/docs/glib/fn.on_error_stack_trace.html index e90adb776ea7..8759fe66cdef 100644 --- a/git/docs/glib/fn.on_error_stack_trace.html +++ b/git/docs/glib/fn.on_error_stack_trace.html @@ -1,4 +1,4 @@ -on_error_stack_trace in glib - Rust +on_error_stack_trace in glib - Rust -
glib

Function on_error_stack_trace

Source
pub fn on_error_stack_trace(prg_name: Option<&str>)
Expand description

Invokes gdb, which attaches to the current process and shows a -stack trace. Called by g_on_error_query() when the “[S]tack trace” -option is selected. You can get the current process’s program name -with g_get_prgname(), assuming that you have called gtk_init() or -gdk_init().

-

This function may cause different actions on non-UNIX platforms.

-

When running on Windows, this function is not called by -g_on_error_query(). If called directly, it will raise an -exception, which will crash the program. If the G_DEBUGGER environment -variable is set, a debugger will be invoked to attach and -handle that exception (see Running GLib Applications).

-

§prg_name

-

the program name, needed by gdb for the -“[S]tack trace” option, or NULL to use a default string

-
\ No newline at end of file +
glib

Function on_error_stack_trace

Source
pub fn on_error_stack_trace(prg_name: Option<&str>)
\ No newline at end of file diff --git a/git/docs/glib/fn.os_info.html b/git/docs/glib/fn.os_info.html index e903e3aed5d6..9c0fee0cd922 100644 --- a/git/docs/glib/fn.os_info.html +++ b/git/docs/glib/fn.os_info.html @@ -1,4 +1,4 @@ -os_info in glib - Rust +os_info in glib - Rust -
glib

Function os_info

Source
pub fn os_info(key_name: &str) -> Option<GString>
Available on crate feature v2_64 only.
Expand description

Get information about the operating system.

-

On Linux this comes from the /etc/os-release file. On other systems, it may -come from a variety of sources. You can either use the standard key names -like G_OS_INFO_KEY_NAME or pass any UTF-8 string key name. For example, -/etc/os-release provides a number of other less commonly used values that may -be useful. No key is guaranteed to be provided, so the caller should always -check if the result is None.

-

§key_name

-

a key for the OS info being requested, for example G_OS_INFO_KEY_NAME.

-

§Returns

-

The associated value for the requested key or None if -this information is not provided.

-
\ No newline at end of file +
glib

Function os_info

Source
pub fn os_info(key_name: &str) -> Option<GString>
Available on crate feature v2_64 only.
\ No newline at end of file diff --git a/git/docs/glib/fn.random_double.html b/git/docs/glib/fn.random_double.html index b962dac88141..1d7432656aed 100644 --- a/git/docs/glib/fn.random_double.html +++ b/git/docs/glib/fn.random_double.html @@ -1,4 +1,4 @@ -random_double in glib - Rust +random_double in glib - Rust -
glib

Function random_double

Source
pub fn random_double() -> f64
Expand description

Returns a random #gdouble equally distributed over the range [0..1).

-

§Returns

-

a random number

-
\ No newline at end of file +
glib

Function random_double

Source
pub fn random_double() -> f64
\ No newline at end of file diff --git a/git/docs/glib/fn.random_double_range.html b/git/docs/glib/fn.random_double_range.html index 116828abc3ba..310f8dd5b931 100644 --- a/git/docs/glib/fn.random_double_range.html +++ b/git/docs/glib/fn.random_double_range.html @@ -1,4 +1,4 @@ -random_double_range in glib - Rust +random_double_range in glib - Rust -
glib

Function random_double_range

Source
pub fn random_double_range(begin: f64, end: f64) -> f64
Expand description

Returns a random #gdouble equally distributed over the range -[@begin..@end).

-

§begin

-

lower closed bound of the interval

-

§end

-

upper open bound of the interval

-

§Returns

-

a random number

-
\ No newline at end of file +
glib

Function random_double_range

Source
pub fn random_double_range(begin: f64, end: f64) -> f64
\ No newline at end of file diff --git a/git/docs/glib/fn.random_int.html b/git/docs/glib/fn.random_int.html index 532a11381f3e..a9735a31d706 100644 --- a/git/docs/glib/fn.random_int.html +++ b/git/docs/glib/fn.random_int.html @@ -1,4 +1,4 @@ -random_int in glib - Rust +random_int in glib - Rust -
glib

Function random_int

Source
pub fn random_int() -> u32
Expand description

Return a random #guint32 equally distributed over the range -[0..2^32-1].

-

§Returns

-

a random number

-
\ No newline at end of file +
glib

Function random_int

Source
pub fn random_int() -> u32
\ No newline at end of file diff --git a/git/docs/glib/fn.random_int_range.html b/git/docs/glib/fn.random_int_range.html index 00e2844ec054..6a13bcd261c7 100644 --- a/git/docs/glib/fn.random_int_range.html +++ b/git/docs/glib/fn.random_int_range.html @@ -1,4 +1,4 @@ -random_int_range in glib - Rust +random_int_range in glib - Rust -
glib

Function random_int_range

Source
pub fn random_int_range(begin: i32, end: i32) -> i32
Expand description

Returns a random #gint32 equally distributed over the range -[@begin..@end-1].

-

§begin

-

lower closed bound of the interval

-

§end

-

upper open bound of the interval

-

§Returns

-

a random number

-
\ No newline at end of file +
glib

Function random_int_range

Source
pub fn random_int_range(begin: i32, end: i32) -> i32
\ No newline at end of file diff --git a/git/docs/glib/fn.random_set_seed.html b/git/docs/glib/fn.random_set_seed.html index 9d9eb87ed8ab..c636d621daf0 100644 --- a/git/docs/glib/fn.random_set_seed.html +++ b/git/docs/glib/fn.random_set_seed.html @@ -1,4 +1,4 @@ -random_set_seed in glib - Rust +random_set_seed in glib - Rust -
glib

Function random_set_seed

Source
pub fn random_set_seed(seed: u32)
Expand description

Sets the seed for the global random number generator, which is used -by the g_random_* functions, to @seed.

-

§seed

-

a value to reinitialize the global random number generator

-
\ No newline at end of file +
glib

Function random_set_seed

Source
pub fn random_set_seed(seed: u32)
\ No newline at end of file diff --git a/git/docs/glib/fn.real_name.html b/git/docs/glib/fn.real_name.html index f4cae2d34571..2aa5b771e02e 100644 --- a/git/docs/glib/fn.real_name.html +++ b/git/docs/glib/fn.real_name.html @@ -1,4 +1,4 @@ -real_name in glib - Rust +real_name in glib - Rust -
glib

Function real_name

Source
pub fn real_name() -> OsString
Expand description

Gets the real name of the user. This usually comes from the user’s -entry in the passwd file. The encoding of the returned string is -system-defined. (On Windows, it is, however, always UTF-8.) If the -real user name cannot be determined, the string “Unknown” is -returned.

-

§Returns

-

the user’s real name.

-
\ No newline at end of file +
glib

Function real_name

Source
pub fn real_name() -> OsString
\ No newline at end of file diff --git a/git/docs/glib/fn.real_time.html b/git/docs/glib/fn.real_time.html index bf6c5e66492b..18ff1d5fc5ed 100644 --- a/git/docs/glib/fn.real_time.html +++ b/git/docs/glib/fn.real_time.html @@ -1,4 +1,4 @@ -real_time in glib - Rust +real_time in glib - Rust -
glib

Function real_time

Source
pub fn real_time() -> i64
Expand description

Queries the system wall-clock time.

-

This call is functionally equivalent to get_current_time() except -that the return value is often more convenient than dealing with a -#GTimeVal.

-

You should only use this call if you are actually interested in the real -wall-clock time. monotonic_time() is probably more useful for -measuring intervals.

-

§Returns

-

the number of microseconds since January 1, 1970 UTC.

-
\ No newline at end of file +
glib

Function real_time

Source
pub fn real_time() -> i64
\ No newline at end of file diff --git a/git/docs/glib/fn.reload_user_special_dirs_cache.html b/git/docs/glib/fn.reload_user_special_dirs_cache.html index d4b7eba025ea..6b5a362a244d 100644 --- a/git/docs/glib/fn.reload_user_special_dirs_cache.html +++ b/git/docs/glib/fn.reload_user_special_dirs_cache.html @@ -1,4 +1,4 @@ -reload_user_special_dirs_cache in glib - Rust +reload_user_special_dirs_cache in glib - Rust -
glib

Function reload_user_special_dirs_cache

Source
pub fn reload_user_special_dirs_cache()
Expand description

Resets the cache used for g_get_user_special_dir(), so -that the latest on-disk version is used. Call this only -if you just changed the data on disk yourself.

-

Due to thread safety issues this may cause leaking of strings -that were previously returned from g_get_user_special_dir() -that can’t be freed. We ensure to only leak the data for -the directories that actually changed value though.

-
\ No newline at end of file +
glib

Function reload_user_special_dirs_cache

Source
pub fn reload_user_special_dirs_cache()
\ No newline at end of file diff --git a/git/docs/glib/fn.set_application_name.html b/git/docs/glib/fn.set_application_name.html index f9b54228b7a6..62203f04f9b0 100644 --- a/git/docs/glib/fn.set_application_name.html +++ b/git/docs/glib/fn.set_application_name.html @@ -1,4 +1,4 @@ -set_application_name in glib - Rust +set_application_name in glib - Rust -
glib

Function set_application_name

Source
pub fn set_application_name(application_name: &str)
Expand description

Sets a human-readable name for the application. This name should be -localized if possible, and is intended for display to the user. -Contrast with g_set_prgname(), which sets a non-localized name. -g_set_prgname() will be called automatically by gtk_init(), -but g_set_application_name() will not.

-

Note that for thread safety reasons, this function can only -be called once.

-

The application name will be used in contexts such as error messages, -or when displaying an application’s name in the task list.

-

§application_name

-

localized name of the application

-
\ No newline at end of file +
glib

Function set_application_name

Source
pub fn set_application_name(application_name: &str)
\ No newline at end of file diff --git a/git/docs/glib/fn.setenv.html b/git/docs/glib/fn.setenv.html index 8241ea738108..02a81ec3a0dd 100644 --- a/git/docs/glib/fn.setenv.html +++ b/git/docs/glib/fn.setenv.html @@ -1,4 +1,4 @@ -setenv in glib - Rust +setenv in glib - Rust -
glib

Function setenv

Source
pub fn setenv(
+
glib

Function setenv

Source
pub fn setenv(
     variable: impl AsRef<OsStr>,
     value: impl AsRef<OsStr>,
     overwrite: bool,
-) -> Result<(), BoolError>
Expand description

Sets an environment variable. On UNIX, both the variable’s name and -value can be arbitrary byte strings, except that the variable’s name -cannot contain ‘=’. On Windows, they should be in UTF-8.

-

Note that on some systems, when variables are overwritten, the memory -used for the previous variables and its value isn’t reclaimed.

-

You should be mindful of the fact that environment variable handling -in UNIX is not thread-safe, and your program may crash if one thread -calls g_setenv() while another thread is calling getenv(). (And note -that many functions, such as gettext(), call getenv() internally.) -This function is only safe to use at the very start of your program, -before creating any other threads (or creating objects that create -worker threads of their own).

-

If you need to set up the environment for a child process, you can -use g_get_environ() to get an environment array, modify that with -g_environ_setenv() and g_environ_unsetenv(), and then pass that -array directly to execvpe(), g_spawn_async(), or the like.

-

§variable

-

the environment variable to set, must not -contain ‘=’.

-

§value

-

the value for to set the variable to.

-

§overwrite

-

whether to change the variable if it already exists.

-

§Returns

-

false if the environment variable couldn’t be set.

-
\ No newline at end of file +) -> Result<(), BoolError>
\ No newline at end of file diff --git a/git/docs/glib/fn.shell_parse_argv.html b/git/docs/glib/fn.shell_parse_argv.html index 4f29f74d694f..3420511e9eff 100644 --- a/git/docs/glib/fn.shell_parse_argv.html +++ b/git/docs/glib/fn.shell_parse_argv.html @@ -1,4 +1,4 @@ -shell_parse_argv in glib - Rust +shell_parse_argv in glib - Rust -
glib

Function shell_parse_argv

Source
pub fn shell_parse_argv(
+
glib

Function shell_parse_argv

Source
pub fn shell_parse_argv(
     command_line: impl AsRef<OsStr>,
-) -> Result<Vec<OsString>, Error>
Expand description

Parses a command line into an argument vector, in much the same way -the shell would, but without many of the expansions the shell would -perform (variable expansion, globs, operators, filename expansion, -etc. are not supported).

-

The results are defined to be the same as those you would get from -a UNIX98 /bin/sh, as long as the input contains none of the -unsupported shell expansions. If the input does contain such expansions, -they are passed through literally.

-

Possible errors are those from the G_SHELL_ERROR domain.

-

In particular, if @command_line is an empty string (or a string containing -only whitespace), G_SHELL_ERROR_EMPTY_STRING will be returned. It’s -guaranteed that @argvp will be a non-empty array if this function returns -successfully.

-

Free the returned vector with g_strfreev().

-

§command_line

-

command line to parse

-

§Returns

-

true on success, false if error set

-

§argvp

-

return location for array of args

-
\ No newline at end of file +) -> Result<Vec<OsString>, Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.shell_quote.html b/git/docs/glib/fn.shell_quote.html index 95881807236f..38b3ffc05e70 100644 --- a/git/docs/glib/fn.shell_quote.html +++ b/git/docs/glib/fn.shell_quote.html @@ -1,4 +1,4 @@ -shell_quote in glib - Rust +shell_quote in glib - Rust -
glib

Function shell_quote

Source
pub fn shell_quote(unquoted_string: impl AsRef<OsStr>) -> OsString
Expand description

Quotes a string so that the shell (/bin/sh) will interpret the -quoted string to mean @unquoted_string.

-

If you pass a filename to the shell, for example, you should first -quote it with this function.

-

The return value must be freed with g_free().

-

The quoting style used is undefined (single or double quotes may be -used).

-

§unquoted_string

-

a literal string

-

§Returns

-

quoted string

-
\ No newline at end of file +
glib

Function shell_quote

Source
pub fn shell_quote(unquoted_string: impl AsRef<OsStr>) -> OsString
\ No newline at end of file diff --git a/git/docs/glib/fn.shell_unquote.html b/git/docs/glib/fn.shell_unquote.html index 23c61a590b13..7b382ba8877f 100644 --- a/git/docs/glib/fn.shell_unquote.html +++ b/git/docs/glib/fn.shell_unquote.html @@ -1,4 +1,4 @@ -shell_unquote in glib - Rust +shell_unquote in glib - Rust -
glib

Function shell_unquote

Source
pub fn shell_unquote(
+
glib

Function shell_unquote

Source
pub fn shell_unquote(
     quoted_string: impl AsRef<OsStr>,
-) -> Result<OsString, Error>
Expand description

Unquotes a string as the shell (/bin/sh) would.

-

This function only handles quotes; if a string contains file globs, -arithmetic operators, variables, backticks, redirections, or other -special-to-the-shell features, the result will be different from the -result a real shell would produce (the variables, backticks, etc. -will be passed through literally instead of being expanded).

-

This function is guaranteed to succeed if applied to the result of -g_shell_quote(). If it fails, it returns None and sets the -error.

-

The @quoted_string need not actually contain quoted or escaped text; -g_shell_unquote() simply goes through the string and unquotes/unescapes -anything that the shell would. Both single and double quotes are -handled, as are escapes including escaped newlines.

-

The return value must be freed with g_free().

-

Possible errors are in the G_SHELL_ERROR domain.

-

Shell quoting rules are a bit strange. Single quotes preserve the -literal string exactly. escape sequences are not allowed; not even -\' - if you want a ' in the quoted text, you have to do something -like 'foo'\''bar'. Double quotes allow $, ⚠️ The following code is in , ", \, and ⚠️

-

```, ", \, and -newline to be escaped with backslash. Otherwise double quotes -preserve things literally.

-

§quoted_string

-

shell-quoted string

-

§Returns

-

an unquoted string

-
\ No newline at end of file +) -> Result<OsString, Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.spaced_primes_closest.html b/git/docs/glib/fn.spaced_primes_closest.html index f0c3c13bf686..78df840fb7e5 100644 --- a/git/docs/glib/fn.spaced_primes_closest.html +++ b/git/docs/glib/fn.spaced_primes_closest.html @@ -1,4 +1,4 @@ -spaced_primes_closest in glib - Rust +spaced_primes_closest in glib - Rust -
glib

Function spaced_primes_closest

Source
pub fn spaced_primes_closest(num: u32) -> u32
Expand description

Gets the smallest prime number from a built-in array of primes which -is larger than @num. This is used within GLib to calculate the optimum -size of a #GHashTable.

-

The built-in array of primes ranges from 11 to 13845163 such that -each prime is approximately 1.5-2 times the previous prime.

-

§num

-

a #guint

-

§Returns

-

the smallest prime number from a built-in array of primes -which is larger than @num

-
\ No newline at end of file +
glib

Function spaced_primes_closest

Source
pub fn spaced_primes_closest(num: u32) -> u32
\ No newline at end of file diff --git a/git/docs/glib/fn.spawn_async.html b/git/docs/glib/fn.spawn_async.html index 05fd127e783c..3977c61db396 100644 --- a/git/docs/glib/fn.spawn_async.html +++ b/git/docs/glib/fn.spawn_async.html @@ -1,4 +1,4 @@ -spawn_async in glib - Rust +spawn_async in glib - Rust -
glib

Function spawn_async

Source
pub fn spawn_async(
+
glib

Function spawn_async

Source
pub fn spawn_async(
     working_directory: Option<impl AsRef<Path>>,
     argv: &[&Path],
     envp: &[&Path],
     flags: SpawnFlags,
     child_setup: Option<Box<dyn FnOnce() + 'static>>,
-) -> Result<Pid, Error>
Expand description

Executes a child program asynchronously.

-

See g_spawn_async_with_pipes() for a full description; this function -simply calls the g_spawn_async_with_pipes() without any pipes.

-

You should call g_spawn_close_pid() on the returned child process -reference when you don’t need it any more.

-

If you are writing a GTK application, and the program you are spawning is a -graphical application too, then to ensure that the spawned program opens its -windows on the right screen, you may want to use #GdkAppLaunchContext, -#GAppLaunchContext, or set the DISPLAY environment variable.

-

Note that the returned @child_pid on Windows is a handle to the child -process and not its identifier. Process handles and process identifiers -are different concepts on Windows.

-

§working_directory

-

child’s current working -directory, or None to inherit parent’s

-

§argv

-
child's argument vector
-

§envp

-
child's environment, or [`None`] to inherit parent's
-

§flags

-

flags from #GSpawnFlags

-

§child_setup

-

function to run -in the child just before exec()

-

§Returns

-

true on success, false if error is set

-

§child_pid

-

return location for child process reference, or None

-
\ No newline at end of file +) -> Result<Pid, Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.spawn_check_exit_status.html b/git/docs/glib/fn.spawn_check_exit_status.html index eafb1c47c2f5..c09a7c4ed02b 100644 --- a/git/docs/glib/fn.spawn_check_exit_status.html +++ b/git/docs/glib/fn.spawn_check_exit_status.html @@ -1,4 +1,4 @@ -spawn_check_exit_status in glib - Rust +spawn_check_exit_status in glib - Rust -
glib

Function spawn_check_exit_status

Source
pub fn spawn_check_exit_status(wait_status: i32) -> Result<(), Error>
👎Deprecated: Since 2.70
Expand description

An old name for g_spawn_check_wait_status(), deprecated because its -name is misleading.

-

Despite the name of the function, @wait_status must be the wait status -as returned by g_spawn_sync(), g_subprocess_get_status(), waitpid(), -etc. On Unix platforms, it is incorrect for it to be the exit status -as passed to exit() or returned by g_subprocess_get_exit_status() or -WEXITSTATUS().

-

§Deprecated since 2.70

-

Use g_spawn_check_wait_status() instead, and check whether your code is conflating wait and exit statuses.

-

§wait_status

-

A status as returned from g_spawn_sync()

-

§Returns

-

true if child exited successfully, false otherwise (and -@error will be set)

-
\ No newline at end of file +
glib

Function spawn_check_exit_status

Source
pub fn spawn_check_exit_status(wait_status: i32) -> Result<(), Error>
👎Deprecated: Since 2.70
\ No newline at end of file diff --git a/git/docs/glib/fn.spawn_check_wait_status.html b/git/docs/glib/fn.spawn_check_wait_status.html index d3538566e128..2f9667a34bb9 100644 --- a/git/docs/glib/fn.spawn_check_wait_status.html +++ b/git/docs/glib/fn.spawn_check_wait_status.html @@ -1,4 +1,4 @@ -spawn_check_wait_status in glib - Rust +spawn_check_wait_status in glib - Rust -
glib

Function spawn_check_wait_status

Source
pub fn spawn_check_wait_status(wait_status: i32) -> Result<(), Error>
Available on crate feature v2_70 only.
Expand description

Set @error if @wait_status indicates the child exited abnormally -(e.g. with a nonzero exit code, or via a fatal signal).

-

The g_spawn_sync() and g_child_watch_add() family of APIs return the -status of subprocesses encoded in a platform-specific way. -On Unix, this is guaranteed to be in the same format waitpid() returns, -and on Windows it is guaranteed to be the result of GetExitCodeProcess().

-

Prior to the introduction of this function in GLib 2.34, interpreting -@wait_status required use of platform-specific APIs, which is problematic -for software using GLib as a cross-platform layer.

-

Additionally, many programs simply want to determine whether or not -the child exited successfully, and either propagate a #GError or -print a message to standard error. In that common case, this function -can be used. Note that the error message in @error will contain -human-readable information about the wait status.

-

The @domain and @code of @error have special semantics in the case -where the process has an “exit code”, as opposed to being killed by -a signal. On Unix, this happens if WIFEXITED() would be true of -@wait_status. On Windows, it is always the case.

-

The special semantics are that the actual exit code will be the -code set in @error, and the domain will be G_SPAWN_EXIT_ERROR. -This allows you to differentiate between different exit codes.

-

If the process was terminated by some means other than an exit -status (for example if it was killed by a signal), the domain will be -G_SPAWN_ERROR and the code will be G_SPAWN_ERROR_FAILED.

-

This function just offers convenience; you can of course also check -the available platform via a macro such as G_OS_UNIX, and use -WIFEXITED() and WEXITSTATUS() on @wait_status directly. Do not attempt -to scan or parse the error message string; it may be translated and/or -change in future versions of GLib.

-

Prior to version 2.70, g_spawn_check_exit_status() provides the same -functionality, although under a misleading name.

-

§wait_status

-

A platform-specific wait status as returned from g_spawn_sync()

-

§Returns

-

true if child exited successfully, false otherwise (and -@error will be set)

-
\ No newline at end of file +
glib

Function spawn_check_wait_status

Source
pub fn spawn_check_wait_status(wait_status: i32) -> Result<(), Error>
Available on crate feature v2_70 only.
\ No newline at end of file diff --git a/git/docs/glib/fn.spawn_command_line_async.html b/git/docs/glib/fn.spawn_command_line_async.html index 33c4289bfb67..cdd30b0a1c2f 100644 --- a/git/docs/glib/fn.spawn_command_line_async.html +++ b/git/docs/glib/fn.spawn_command_line_async.html @@ -1,4 +1,4 @@ -spawn_command_line_async in glib - Rust +spawn_command_line_async in glib - Rust -
glib

Function spawn_command_line_async

Source
pub fn spawn_command_line_async(
+
glib

Function spawn_command_line_async

Source
pub fn spawn_command_line_async(
     command_line: impl AsRef<OsStr>,
-) -> Result<(), Error>
Available on Unix only.
Expand description

A simple version of g_spawn_async() that parses a command line with -g_shell_parse_argv() and passes it to g_spawn_async().

-

Runs a command line in the background. Unlike g_spawn_async(), the -SpawnFlags::SEARCH_PATH flag is enabled, other flags are not. Note -that SpawnFlags::SEARCH_PATH can have security implications, so -consider using g_spawn_async() directly if appropriate. Possible -errors are those from g_shell_parse_argv() and g_spawn_async().

-

The same concerns on Windows apply as for g_spawn_command_line_sync().

-

§command_line

-

a command line

-

§Returns

-

true on success, false if error is set

-
\ No newline at end of file +) -> Result<(), Error>
Available on Unix only.
\ No newline at end of file diff --git a/git/docs/glib/fn.spawn_future.html b/git/docs/glib/fn.spawn_future.html index 2ca4b04878ca..3484b629f96c 100644 --- a/git/docs/glib/fn.spawn_future.html +++ b/git/docs/glib/fn.spawn_future.html @@ -71,7 +71,7 @@ -
glib

Function spawn_future

Source
pub fn spawn_future<R: Send + 'static, F: Future<Output = R> + Send + 'static>(
+
glib

Function spawn_future

Source
pub fn spawn_future<R: Send + 'static, F: Future<Output = R> + Send + 'static>(
     f: F,
 ) -> JoinHandle<R> 
Expand description

Spawn a new infallible Future on the thread-default main context.

This can be called from any thread and will execute the future from the thread diff --git a/git/docs/glib/fn.spawn_future_local.html b/git/docs/glib/fn.spawn_future_local.html index 82028da24690..54fdd0001ad1 100644 --- a/git/docs/glib/fn.spawn_future_local.html +++ b/git/docs/glib/fn.spawn_future_local.html @@ -71,7 +71,7 @@ -

glib

Function spawn_future_local

Source
pub fn spawn_future_local<R: 'static, F: Future<Output = R> + 'static>(
+
glib

Function spawn_future_local

Source
pub fn spawn_future_local<R: 'static, F: Future<Output = R> + 'static>(
     f: F,
 ) -> JoinHandle<R> 
Expand description

Spawn a new infallible Future on the thread-default main context.

The given Future does not have to be Send.

diff --git a/git/docs/glib/fn.system_config_dirs.html b/git/docs/glib/fn.system_config_dirs.html index b53cf48d71b0..38175cc4e835 100644 --- a/git/docs/glib/fn.system_config_dirs.html +++ b/git/docs/glib/fn.system_config_dirs.html @@ -1,4 +1,4 @@ -system_config_dirs in glib - Rust +system_config_dirs in glib - Rust -
glib

Function system_config_dirs

Source
pub fn system_config_dirs() -> Vec<PathBuf>
Expand description

Returns an ordered list of base directories in which to access -system-wide configuration information.

-

On UNIX platforms this is determined using the mechanisms described -in the -XDG Base Directory Specification. -In this case the list of directories retrieved will be XDG_CONFIG_DIRS.

-

On Windows it follows XDG Base Directory Specification if XDG_CONFIG_DIRS is defined. -If XDG_CONFIG_DIRS is undefined, the directory that contains application -data for all users is used instead. A typical path is -C:\Documents and Settings\All Users\Application Data. -This folder is used for application data -that is not user specific. For example, an application can store -a spell-check dictionary, a database of clip art, or a log file in the -FOLDERID_ProgramData folder. This information will not roam and is available -to anyone using the computer.

-

The return value is cached and modifying it at runtime is not supported, as -it’s not thread-safe to modify environment variables at runtime.

-

§Returns

-
a [`None`]-terminated array of strings owned by GLib that must not be
-modified or freed.
-
\ No newline at end of file +
glib

Function system_config_dirs

Source
pub fn system_config_dirs() -> Vec<PathBuf>
\ No newline at end of file diff --git a/git/docs/glib/fn.system_data_dirs.html b/git/docs/glib/fn.system_data_dirs.html index d044529c44b6..68ea452da781 100644 --- a/git/docs/glib/fn.system_data_dirs.html +++ b/git/docs/glib/fn.system_data_dirs.html @@ -1,4 +1,4 @@ -system_data_dirs in glib - Rust +system_data_dirs in glib - Rust -
glib

Function system_data_dirs

Source
pub fn system_data_dirs() -> Vec<PathBuf>
Expand description

Returns an ordered list of base directories in which to access -system-wide application data.

-

On UNIX platforms this is determined using the mechanisms described -in the -XDG Base Directory Specification -In this case the list of directories retrieved will be XDG_DATA_DIRS.

-

On Windows it follows XDG Base Directory Specification if XDG_DATA_DIRS is defined. -If XDG_DATA_DIRS is undefined, -the first elements in the list are the Application Data -and Documents folders for All Users. (These can be determined only -on Windows 2000 or later and are not present in the list on other -Windows versions.) See documentation for FOLDERID_ProgramData and -FOLDERID_PublicDocuments.

-

Then follows the “share” subfolder in the installation folder for -the package containing the DLL that calls this function, if it can -be determined.

-

Finally the list contains the “share” subfolder in the installation -folder for GLib, and in the installation folder for the package the -application’s .exe file belongs to.

-

The installation folders above are determined by looking up the -folder where the module (DLL or EXE) in question is located. If the -folder’s name is “bin”, its parent is used, otherwise the folder -itself.

-

Note that on Windows the returned list can vary depending on where -this function is called.

-

The return value is cached and modifying it at runtime is not supported, as -it’s not thread-safe to modify environment variables at runtime.

-

§Returns

-
a [`None`]-terminated array of strings owned by GLib that must not be
-modified or freed.
-
\ No newline at end of file +
glib

Function system_data_dirs

Source
pub fn system_data_dirs() -> Vec<PathBuf>
\ No newline at end of file diff --git a/git/docs/glib/fn.tmp_dir.html b/git/docs/glib/fn.tmp_dir.html index 500f30daf297..21dd23348177 100644 --- a/git/docs/glib/fn.tmp_dir.html +++ b/git/docs/glib/fn.tmp_dir.html @@ -1,4 +1,4 @@ -tmp_dir in glib - Rust +tmp_dir in glib - Rust -
glib

Function tmp_dir

Source
pub fn tmp_dir() -> PathBuf
Expand description

Gets the directory to use for temporary files.

-

On UNIX, this is taken from the TMPDIR environment variable. -If the variable is not set, P_tmpdir is -used, as defined by the system C library. Failing that, a -hard-coded default of “/tmp” is returned.

-

On Windows, the TEMP environment variable is used, with the -root directory of the Windows installation (eg: “C:") used -as a default.

-

The encoding of the returned string is system-defined. On Windows, -it is always UTF-8. The return value is never None or the empty -string.

-

§Returns

-

the directory to use for temporary files.

-
\ No newline at end of file +
glib

Function tmp_dir

Source
pub fn tmp_dir() -> PathBuf
\ No newline at end of file diff --git a/git/docs/glib/fn.unix_open_pipe.html b/git/docs/glib/fn.unix_open_pipe.html index a871980bf40c..5fe60bcb7d19 100644 --- a/git/docs/glib/fn.unix_open_pipe.html +++ b/git/docs/glib/fn.unix_open_pipe.html @@ -1,4 +1,4 @@ -unix_open_pipe in glib - Rust +unix_open_pipe in glib - Rust -
glib

Function unix_open_pipe

Source
pub fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error>
Expand description

Similar to the UNIX pipe() call, but on modern systems like Linux -uses the pipe2() system call, which atomically creates a pipe with -the configured flags.

-

As of GLib 2.78, the supported flags are O_CLOEXEC/FD_CLOEXEC (see below) -and O_NONBLOCK. Prior to GLib 2.78, only FD_CLOEXEC was supported — if -you wanted to configure O_NONBLOCK then that had to be done separately with -fcntl().

-

Since GLib 2.80, the constants G_UNIX_PIPE_END_READ and -G_UNIX_PIPE_END_WRITE can be used as mnemonic indexes in @fds.

-

It is a programmer error to call this function with unsupported flags, and a -critical warning will be raised.

-

As of GLib 2.78, it is preferred to pass O_CLOEXEC in, rather than -FD_CLOEXEC, as that matches the underlying pipe() API more closely. Prior -to 2.78, only FD_CLOEXEC was supported. Support for FD_CLOEXEC may be -deprecated and removed in future.

-

§fds

-

Array of two integers

-

§flags

-

Bitfield of file descriptor flags, as for fcntl()

-

§Returns

-

true on success, false if not (and errno will be set).

-
\ No newline at end of file +
glib

Function unix_open_pipe

Source
pub fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error>
\ No newline at end of file diff --git a/git/docs/glib/fn.unlink.html b/git/docs/glib/fn.unlink.html index ab72dc1c25ff..3cb79a637a8b 100644 --- a/git/docs/glib/fn.unlink.html +++ b/git/docs/glib/fn.unlink.html @@ -1,4 +1,4 @@ -unlink in glib - Rust +unlink in glib - Rust -
glib

Function unlink

Source
pub fn unlink(filename: impl AsRef<Path>) -> i32
Expand description

A wrapper for the POSIX unlink() function. The unlink() function -deletes a name from the filesystem. If this was the last link to the -file and no processes have it opened, the diskspace occupied by the -file is freed.

-

See your C library manual for more details about unlink(). Note -that on Windows, it is in general not possible to delete files that -are open to some process, or mapped into memory.

-

§filename

-

a pathname in the GLib file name encoding -(UTF-8 on Windows)

-

§Returns

-

0 if the name was successfully deleted, -1 if an error -occurred

-
\ No newline at end of file +
glib

Function unlink

Source
pub fn unlink(filename: impl AsRef<Path>) -> i32
\ No newline at end of file diff --git a/git/docs/glib/fn.unsetenv.html b/git/docs/glib/fn.unsetenv.html index cb30099d25ad..7cc877ac9a34 100644 --- a/git/docs/glib/fn.unsetenv.html +++ b/git/docs/glib/fn.unsetenv.html @@ -1,4 +1,4 @@ -unsetenv in glib - Rust +unsetenv in glib - Rust -
glib

Function unsetenv

Source
pub fn unsetenv(variable: impl AsRef<OsStr>)
Expand description

Removes an environment variable from the environment.

-

Note that on some systems, when variables are overwritten, the -memory used for the previous variables and its value isn’t reclaimed.

-

You should be mindful of the fact that environment variable handling -in UNIX is not thread-safe, and your program may crash if one thread -calls g_unsetenv() while another thread is calling getenv(). (And note -that many functions, such as gettext(), call getenv() internally.) This -function is only safe to use at the very start of your program, before -creating any other threads (or creating objects that create worker -threads of their own).

-

If you need to set up the environment for a child process, you can -use g_get_environ() to get an environment array, modify that with -g_environ_setenv() and g_environ_unsetenv(), and then pass that -array directly to execvpe(), g_spawn_async(), or the like.

-

§variable

-

the environment variable to remove, must -not contain ‘=’

-
\ No newline at end of file +
glib

Function unsetenv

Source
pub fn unsetenv(variable: impl AsRef<OsStr>)
\ No newline at end of file diff --git a/git/docs/glib/fn.uri_escape_string.html b/git/docs/glib/fn.uri_escape_string.html index 7a31a6b8fb42..f710abf0185d 100644 --- a/git/docs/glib/fn.uri_escape_string.html +++ b/git/docs/glib/fn.uri_escape_string.html @@ -71,7 +71,7 @@ -
glib

Function uri_escape_string

Source
pub fn uri_escape_string(
+
glib

Function uri_escape_string

Source
pub fn uri_escape_string(
     unescaped: impl IntoGStr,
     reserved_chars_allowed: Option<impl IntoGStr>,
     allow_utf8: bool,
diff --git a/git/docs/glib/fn.uri_parse_scheme.html b/git/docs/glib/fn.uri_parse_scheme.html
index 75b2352500cb..8fd8b028070c 100644
--- a/git/docs/glib/fn.uri_parse_scheme.html
+++ b/git/docs/glib/fn.uri_parse_scheme.html
@@ -71,4 +71,4 @@
 
 
 
-
glib

Function uri_parse_scheme

Source
pub fn uri_parse_scheme(uri: impl IntoGStr) -> Option<GString>
\ No newline at end of file +
glib

Function uri_parse_scheme

Source
pub fn uri_parse_scheme(uri: impl IntoGStr) -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.uri_unescape_segment.html b/git/docs/glib/fn.uri_unescape_segment.html index 00f3ddebc553..d4753fbbf067 100644 --- a/git/docs/glib/fn.uri_unescape_segment.html +++ b/git/docs/glib/fn.uri_unescape_segment.html @@ -71,7 +71,7 @@ -
glib

Function uri_unescape_segment

Source
pub fn uri_unescape_segment(
+
glib

Function uri_unescape_segment

Source
pub fn uri_unescape_segment(
     escaped_string: Option<impl IntoGStr>,
     escaped_string_end: Option<impl IntoGStr>,
     illegal_characters: Option<impl IntoGStr>,
diff --git a/git/docs/glib/fn.uri_unescape_string.html b/git/docs/glib/fn.uri_unescape_string.html
index 54fe4baa1924..e3af4644962d 100644
--- a/git/docs/glib/fn.uri_unescape_string.html
+++ b/git/docs/glib/fn.uri_unescape_string.html
@@ -71,7 +71,7 @@
 
 
 
-
glib

Function uri_unescape_string

Source
pub fn uri_unescape_string(
+
glib

Function uri_unescape_string

Source
pub fn uri_unescape_string(
     escaped_string: impl IntoGStr,
     illegal_characters: Option<impl IntoGStr>,
 ) -> Option<GString>
\ No newline at end of file diff --git a/git/docs/glib/fn.user_cache_dir.html b/git/docs/glib/fn.user_cache_dir.html index de9653aa31d7..6c118b4b65de 100644 --- a/git/docs/glib/fn.user_cache_dir.html +++ b/git/docs/glib/fn.user_cache_dir.html @@ -1,4 +1,4 @@ -user_cache_dir in glib - Rust +user_cache_dir in glib - Rust -
glib

Function user_cache_dir

Source
pub fn user_cache_dir() -> PathBuf
Expand description

Returns a base directory in which to store non-essential, cached -data specific to particular user.

-

On UNIX platforms this is determined using the mechanisms described -in the -XDG Base Directory Specification. -In this case the directory retrieved will be XDG_CACHE_HOME.

-

On Windows it follows XDG Base Directory Specification if XDG_CACHE_HOME is defined. -If XDG_CACHE_HOME is undefined, the directory that serves as a common -repository for temporary Internet files is used instead. A typical path is -C:\Documents and Settings\username\Local Settings\Temporary Internet Files. -See the documentation for FOLDERID_InternetCache.

-

The return value is cached and modifying it at runtime is not supported, as -it’s not thread-safe to modify environment variables at runtime.

-

§Returns

-

a string owned by GLib that -must not be modified or freed.

-
\ No newline at end of file +
glib

Function user_cache_dir

Source
pub fn user_cache_dir() -> PathBuf
\ No newline at end of file diff --git a/git/docs/glib/fn.user_config_dir.html b/git/docs/glib/fn.user_config_dir.html index 0e0e540b04c0..47e4ea7cce95 100644 --- a/git/docs/glib/fn.user_config_dir.html +++ b/git/docs/glib/fn.user_config_dir.html @@ -1,4 +1,4 @@ -user_config_dir in glib - Rust +user_config_dir in glib - Rust -
glib

Function user_config_dir

Source
pub fn user_config_dir() -> PathBuf
Expand description

Returns a base directory in which to store user-specific application -configuration information such as user preferences and settings.

-

On UNIX platforms this is determined using the mechanisms described -in the -XDG Base Directory Specification. -In this case the directory retrieved will be XDG_CONFIG_HOME.

-

On Windows it follows XDG Base Directory Specification if XDG_CONFIG_HOME is defined. -If XDG_CONFIG_HOME is undefined, the folder to use for local (as opposed -to roaming) application data is used instead. See the -documentation for FOLDERID_LocalAppData. -Note that in this case on Windows it will be the same -as what g_get_user_data_dir() returns.

-

The return value is cached and modifying it at runtime is not supported, as -it’s not thread-safe to modify environment variables at runtime.

-

§Returns

-

a string owned by GLib that -must not be modified or freed.

-
\ No newline at end of file +
glib

Function user_config_dir

Source
pub fn user_config_dir() -> PathBuf
\ No newline at end of file diff --git a/git/docs/glib/fn.user_data_dir.html b/git/docs/glib/fn.user_data_dir.html index b89988edbf30..7c3c6baf73e4 100644 --- a/git/docs/glib/fn.user_data_dir.html +++ b/git/docs/glib/fn.user_data_dir.html @@ -1,4 +1,4 @@ -user_data_dir in glib - Rust +user_data_dir in glib - Rust -
glib

Function user_data_dir

Source
pub fn user_data_dir() -> PathBuf
Expand description

Returns a base directory in which to access application data such -as icons that is customized for a particular user.

-

On UNIX platforms this is determined using the mechanisms described -in the -XDG Base Directory Specification. -In this case the directory retrieved will be XDG_DATA_HOME.

-

On Windows it follows XDG Base Directory Specification if XDG_DATA_HOME -is defined. If XDG_DATA_HOME is undefined, the folder to use for local (as -opposed to roaming) application data is used instead. See the -documentation for FOLDERID_LocalAppData. -Note that in this case on Windows it will be the same -as what g_get_user_config_dir() returns.

-

The return value is cached and modifying it at runtime is not supported, as -it’s not thread-safe to modify environment variables at runtime.

-

§Returns

-

a string owned by GLib that must -not be modified or freed.

-
\ No newline at end of file +
glib

Function user_data_dir

Source
pub fn user_data_dir() -> PathBuf
\ No newline at end of file diff --git a/git/docs/glib/fn.user_name.html b/git/docs/glib/fn.user_name.html index 4d88040c426f..2718ae1e3343 100644 --- a/git/docs/glib/fn.user_name.html +++ b/git/docs/glib/fn.user_name.html @@ -1,4 +1,4 @@ -user_name in glib - Rust +user_name in glib - Rust -
glib

Function user_name

Source
pub fn user_name() -> OsString
Expand description

Gets the user name of the current user. The encoding of the returned -string is system-defined. On UNIX, it might be the preferred file name -encoding, or something else, and there is no guarantee that it is even -consistent on a machine. On Windows, it is always UTF-8.

-

§Returns

-

the user name of the current user.

-
\ No newline at end of file +
glib

Function user_name

Source
pub fn user_name() -> OsString
\ No newline at end of file diff --git a/git/docs/glib/fn.user_runtime_dir.html b/git/docs/glib/fn.user_runtime_dir.html index b6cd053ad022..f938da265d4e 100644 --- a/git/docs/glib/fn.user_runtime_dir.html +++ b/git/docs/glib/fn.user_runtime_dir.html @@ -1,4 +1,4 @@ -user_runtime_dir in glib - Rust +user_runtime_dir in glib - Rust -
glib

Function user_runtime_dir

Source
pub fn user_runtime_dir() -> PathBuf
Expand description

Returns a directory that is unique to the current user on the local -system.

-

This is determined using the mechanisms described -in the -XDG Base Directory Specification. -This is the directory -specified in the XDG_RUNTIME_DIR environment variable. -In the case that this variable is not set, we return the value of -g_get_user_cache_dir(), after verifying that it exists.

-

The return value is cached and modifying it at runtime is not supported, as -it’s not thread-safe to modify environment variables at runtime.

-

§Returns

-

a string owned by GLib that must not be -modified or freed.

-
\ No newline at end of file +
glib

Function user_runtime_dir

Source
pub fn user_runtime_dir() -> PathBuf
\ No newline at end of file diff --git a/git/docs/glib/fn.user_special_dir.html b/git/docs/glib/fn.user_special_dir.html index e418d78a7bc7..589d77b9a75e 100644 --- a/git/docs/glib/fn.user_special_dir.html +++ b/git/docs/glib/fn.user_special_dir.html @@ -1,4 +1,4 @@ -user_special_dir in glib - Rust +user_special_dir in glib - Rust -
glib

Function user_special_dir

Source
pub fn user_special_dir(directory: UserDirectory) -> Option<PathBuf>
Expand description

Returns the full path of a special directory using its logical id.

-

On UNIX this is done using the XDG special user directories. -For compatibility with existing practise, [UserDirectory::DirectoryDesktop][crate::UserDirectory::DirectoryDesktop] -falls back to $HOME/Desktop when XDG special user directories have -not been set up.

-

Depending on the platform, the user might be able to change the path -of the special directory without requiring the session to restart; GLib -will not reflect any change once the special directories are loaded.

-

§directory

-

the logical id of special directory

-

§Returns

-

the path to the specified special -directory, or None if the logical id was not found. The returned string is -owned by GLib and should not be modified or freed.

-
\ No newline at end of file +
glib

Function user_special_dir

Source
pub fn user_special_dir(directory: UserDirectory) -> Option<PathBuf>
\ No newline at end of file diff --git a/git/docs/glib/fn.user_state_dir.html b/git/docs/glib/fn.user_state_dir.html index 4b04ffc39850..e84313e8e3be 100644 --- a/git/docs/glib/fn.user_state_dir.html +++ b/git/docs/glib/fn.user_state_dir.html @@ -1,4 +1,4 @@ -user_state_dir in glib - Rust +user_state_dir in glib - Rust -
glib

Function user_state_dir

Source
pub fn user_state_dir() -> PathBuf
Available on crate feature v2_72 only.
Expand description

Returns a base directory in which to store state files specific to -particular user.

-

On UNIX platforms this is determined using the mechanisms described -in the -XDG Base Directory Specification. -In this case the directory retrieved will be XDG_STATE_HOME.

-

On Windows it follows XDG Base Directory Specification if XDG_STATE_HOME is defined. -If XDG_STATE_HOME is undefined, the folder to use for local (as opposed -to roaming) application data is used instead. See the -documentation for FOLDERID_LocalAppData. -Note that in this case on Windows it will be the same -as what g_get_user_data_dir() returns.

-

The return value is cached and modifying it at runtime is not supported, as -it’s not thread-safe to modify environment variables at runtime.

-

§Returns

-

a string owned by GLib that -must not be modified or freed.

-
\ No newline at end of file +
glib

Function user_state_dir

Source
pub fn user_state_dir() -> PathBuf
Available on crate feature v2_72 only.
\ No newline at end of file diff --git a/git/docs/glib/fn.usleep.html b/git/docs/glib/fn.usleep.html index bbca2e3c8049..83e801a9fff1 100644 --- a/git/docs/glib/fn.usleep.html +++ b/git/docs/glib/fn.usleep.html @@ -1,4 +1,4 @@ -usleep in glib - Rust +usleep in glib - Rust -
glib

Function usleep

Source
pub fn usleep(microseconds: c_ulong)
Expand description

Pauses the current thread for the given number of microseconds.

-

There are 1 million microseconds per second (represented by the -G_USEC_PER_SEC macro). g_usleep() may have limited precision, -depending on hardware and operating system; don’t rely on the exact -length of the sleep.

-

§microseconds

-

number of microseconds to pause

-
\ No newline at end of file +
glib

Function usleep

Source
pub fn usleep(microseconds: c_ulong)
\ No newline at end of file diff --git a/git/docs/glib/fn.utf32_to_utf8.html b/git/docs/glib/fn.utf32_to_utf8.html index 2b73932cebaa..7d55a868de3d 100644 --- a/git/docs/glib/fn.utf32_to_utf8.html +++ b/git/docs/glib/fn.utf32_to_utf8.html @@ -71,4 +71,4 @@ -
glib

Function utf32_to_utf8

Source
pub fn utf32_to_utf8(str: impl AsRef<[char]>) -> GString
\ No newline at end of file +
glib

Function utf32_to_utf8

Source
pub fn utf32_to_utf8(str: impl AsRef<[char]>) -> GString
\ No newline at end of file diff --git a/git/docs/glib/fn.utf8_to_utf32.html b/git/docs/glib/fn.utf8_to_utf32.html index 427baa69568b..43fcdf4ada35 100644 --- a/git/docs/glib/fn.utf8_to_utf32.html +++ b/git/docs/glib/fn.utf8_to_utf32.html @@ -71,4 +71,4 @@ -
glib

Function utf8_to_utf32

Source
pub fn utf8_to_utf32(str: impl AsRef<str>) -> Slice<char>
\ No newline at end of file +
glib

Function utf8_to_utf32

Source
pub fn utf8_to_utf32(str: impl AsRef<str>) -> Slice<char>
\ No newline at end of file diff --git a/git/docs/glib/fn.uuid_string_is_valid.html b/git/docs/glib/fn.uuid_string_is_valid.html index a631205c7e7a..6e82debf4462 100644 --- a/git/docs/glib/fn.uuid_string_is_valid.html +++ b/git/docs/glib/fn.uuid_string_is_valid.html @@ -1,4 +1,4 @@ -uuid_string_is_valid in glib - Rust +uuid_string_is_valid in glib - Rust -
glib

Function uuid_string_is_valid

Source
pub fn uuid_string_is_valid(str: &str) -> bool
Expand description

Parses the string @str and verify if it is a UUID.

-

The function accepts the following syntax:

-
    -
  • simple forms (e.g. f81d4fae-7dec-11d0-a765-00a0c91e6bf6)
  • -
-

Note that hyphens are required within the UUID string itself, -as per the aforementioned RFC.

-

§str

-

a string representing a UUID

-

§Returns

-

true if @str is a valid UUID, false otherwise.

-
\ No newline at end of file +
glib

Function uuid_string_is_valid

Source
pub fn uuid_string_is_valid(str: &str) -> bool
\ No newline at end of file diff --git a/git/docs/glib/fn.uuid_string_random.html b/git/docs/glib/fn.uuid_string_random.html index 8488253c919b..5cde1d03e38f 100644 --- a/git/docs/glib/fn.uuid_string_random.html +++ b/git/docs/glib/fn.uuid_string_random.html @@ -1,4 +1,4 @@ -uuid_string_random in glib - Rust +uuid_string_random in glib - Rust -
glib

Function uuid_string_random

Source
pub fn uuid_string_random() -> GString
Expand description

Generates a random UUID (RFC 4122 version 4) as a string. It has the same -randomness guarantees as #GRand, so must not be used for cryptographic -purposes such as key generation, nonces, salts or one-time pads.

-

§Returns

-

A string that should be freed with g_free().

-
\ No newline at end of file +
glib

Function uuid_string_random

Source
pub fn uuid_string_random() -> GString
\ No newline at end of file diff --git a/git/docs/glib/index.html b/git/docs/glib/index.html index 94fa32cc6a8f..22681e8ce4a1 100644 --- a/git/docs/glib/index.html +++ b/git/docs/glib/index.html @@ -163,29 +163,19 @@

§Using

from an object collectively.
  • Builder for binding group bindings.
  • This is a subclass of glib::object::Object capable of storing any Rust type. It let’s you insert a Rust type anywhere a glib::object::Object is needed. The inserted value can then be borrowed as a Rust type, by using the various -provided methods.
  • Contains the public fields of a GByteArray.
  • A shared immutable byte slice (the equivalent of Rc<[u8]>).
  • GLib provides a generic API for computing checksums (or ‘digests’) -for a sequence of arbitrary bytes, using various hashing algorithms -like MD5, SHA-1 and SHA-256. Checksums are commonly used in various -environments and specifications.
  • A CollationKey allows ordering strings using the linguistically correct rules for the current locale.
  • GLib type: Inline allocated boxed type with stack copy semantics.
  • GDateTime is a structure that combines a Gregorian date and time -into a single structure.
  • Flags to pass to g_file_set_contents_full() to affect its safety and -performance.
  • A FilenameCollationKey allows ordering file names using the linguistically correct rules for the current locale. +provided methods.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A shared immutable byte slice (the equivalent of Rc<[u8]>).
  • GLib type: Boxed type with copy-on-clone semantics.
  • A CollationKey allows ordering strings using the linguistically correct rules for the current locale.
  • GLib type: Inline allocated boxed type with stack copy semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A FilenameCollationKey allows ordering file names using the linguistically correct rules for the current locale. Compared to CollationKey, filename collation keys take into consideration dots and other characters -commonly found in file names.
  • Flags to modify the format of the string returned by g_format_size_full().
  • The error returned when a future times out.
  • Representation of a borrowed GString.
  • Error type indicating that a buffer had unexpected nul-bytes.
  • A type representing an owned, C-compatible, nul-terminated UTF-8 string.
  • A mutable text buffer that grows automatically.
  • Error type indicating that a buffer had unexpected nul-bytes.
  • Error type indicating that a buffer did not have a trailing nul-byte.
  • NULL-terminated UTF-8 string as stored in StrV.
  • Error type indicating that a buffer had invalid UTF-8.
  • An implementation of a log compatible -logger which logs over glib logging facilities.
  • The GIConv struct wraps an iconv() conversion descriptor. It contains -private data and should only be accessed using the following functions.
  • A bitwise combination representing a condition to watch for on an -event source.
  • A structure that provides information to the type system which is -used specifically for managing interface types.
  • Task failure from awaiting a JoinHandle.
  • A handle to a task running on a MainContext.
  • GKeyFile parses .ini-like config files.
  • Flags which influence the parsing.
  • Structure representing a single field in a structured log entry.
  • Flags specifying the level of log messages.
  • The GMainContext struct is an opaque data -type representing a set of sources to be handled in a main loop.
  • Flags to pass to GLib::MainContext::new_with_flags() which affect the -behaviour of a MainContext.
  • The GMainLoop struct is an opaque data type -representing the main event loop of a GLib or GTK application.
  • A parse context is used to parse a stream of bytes that -you expect to contain marked-up text.
  • Flags which modify individual options.
  • Through the ParamFlags flag values, certain aspects of parameters +commonly found in file names.
  • The error returned when a future times out.
  • Representation of a borrowed GString.
  • Error type indicating that a buffer had unexpected nul-bytes.
  • A type representing an owned, C-compatible, nul-terminated UTF-8 string.
  • A mutable text buffer that grows automatically.
  • Error type indicating that a buffer had unexpected nul-bytes.
  • Error type indicating that a buffer did not have a trailing nul-byte.
  • NULL-terminated UTF-8 string as stored in StrV.
  • Error type indicating that a buffer had invalid UTF-8.
  • An implementation of a log compatible +logger which logs over glib logging facilities.
  • A structure that provides information to the type system which is +used specifically for managing interface types. +A structure that provides information to the type system which is +used specifically for managing interface types.
  • Task failure from awaiting a JoinHandle.
  • A handle to a task running on a MainContext.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • Structure representing a single field in a structured log entry.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • Through the ParamFlags flag values, certain aspects of parameters can be configured.
  • GParamSpec encapsulates the metadata required to specify parameters, such as GObject properties.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A ParamSpec derived structure that contains the meta data for boxed properties.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A ParamSpec derived structure that contains the meta data for double properties.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A ParamSpec derived structure that contains the meta data for float properties.
  • A ParamSpec derived structure that contains the meta data for GType properties.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A ParamSpec derived structure that contains the meta data for object properties.
  • A ParamSpec derived structure that redirects operations to other types of ParamSpec.
  • A ParamSpec derived structure that contains the meta data for G_TYPE_PARAM properties.
  • A ParamSpec derived structure that contains the meta data for pointer properties.
  • A ParamSpec derived structure that contains the meta data for string -properties.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A ParamSpec derived structure that contains the meta data for GValueArray properties.
  • A ParamSpec derived structure that contains the meta data for GVariant properties.
  • A GRegex is the “compiled” form of a regular expression pattern.
  • Flags specifying compile-time options.
  • Flags specifying match-time options.
  • The signal flags are used to specify a signal’s behaviour.
  • GSignalGroup manages a collection of signals on a GObject.
  • The GSource struct is an opaque data type -representing an event source.
  • Represents a Future around a glib::Source. The future will +properties.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • A ParamSpec derived structure that contains the meta data for GValueArray properties.
  • A ParamSpec derived structure that contains the meta data for GVariant properties.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • The signal flags are used to specify a signal’s behaviour.
  • GSignalGroup manages a collection of signals on a GObject.
  • GLib type: Shared boxed type with reference counted clone semantics.
  • Represents a Future around a glib::Source. The future will be resolved once the source has provided a value
  • Represents a Stream around a glib::Source. The stream will -be provide all values that are provided by the source
  • Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
  • Variant of JoinHandle that is returned from MainContext::spawn_from_within.
  • A handle to a thread running on a ThreadPool.
  • The GThreadPool struct represents a thread pool.
  • A value representing an interval of time, in microseconds.
  • A GTimeZone represents a time zone, at no particular point in time.
  • Bit masks used to check or determine characteristics of a type.
  • This structure is used to provide the type system with the information +be provide all values that are provided by the source
  • Variant of JoinHandle that is returned from MainContext::spawn_from_within.
  • A handle to a thread running on a ThreadPool.
  • The GThreadPool struct represents a thread pool.
  • A value representing an interval of time, in microseconds.
  • A GTimeZone represents a time zone, at no particular point in time.
  • Bit masks used to check or determine characteristics of a type.
  • This structure is used to provide the type system with the information required to initialize and destruct (finalize) a type’s class and its instances.
  • GTypeModule provides a simple implementation of the GTypePlugin interface.
  • An interface that handles the lifecycle of dynamically loaded types.
  • The TypeValueTable provides the functions required by the Value @@ -195,265 +185,25 @@

    §Using

    AUTH_PARAMS will only work if the #GUri was parsed with the corresponding flags.
  • Flags modifying the way parameters are handled by g_uri_parse_params() and #GUriParamsIter.
  • GLib type: Boxed type with copy-on-clone semantics.
  • VariantDict is a mutable key/value store where the keys are always -strings and the values are Variants.
  • Iterator over items in a variant.
  • Iterator over items in a variant of type as.
  • Describes Variant types.
  • An iterator over the individual components of a tuple VariantTy.
  • Describes Variant types.
  • Enums§

    • The result of a single step of the Unicode canonical decomposition algorithm
    • The hashing algorithm to be used by #GChecksum when performing the -digest of some data.
    • Continue calling the closure in the future iterations or drop it.
    • Error codes returned by character set conversion routines.
    • A wrapper for ConvertError that can hold an offset into the input -string.
    • Enumeration representing a month; values are January, -February, etc. BadMonth is the invalid value.
    • Enumeration representing a day of the week; Monday, -Tuesday, etc. BadWeekday is an invalid weekday.
    • The kind of decomposition to perform
    • Values corresponding to @errno codes returned from file operations -on UNIX. Unlike @errno codes, GFileError values are available on -all systems, even Windows. The exact meaning of each code depends -on what sort of file operation you were performing; the UNIX -documentation gives more details. The following error code descriptions -come from the GNU C Library manual, and are under the copyright -of that manual.
    • Error type holding all possible failures when creating a GStr reference.
    • Error type holding all possible failures when creating a GString.
    • Enumeration of the possible domain handling behaviours for a +strings and the values are Variants.
    • Iterator over items in a variant.
    • Iterator over items in a variant of type as.
    • Describes Variant types.
    • An iterator over the individual components of a tuple VariantTy.
    • Describes Variant types.

    Enums§

    • The result of a single step of the Unicode canonical decomposition algorithm
    • Continue calling the closure in the future iterations or drop it.
    • A wrapper for ConvertError that can hold an offset into the input +string.
    • The kind of decomposition to perform
    • Error type holding all possible failures when creating a GStr reference.
    • Error type holding all possible failures when creating a GString.
    • Enumeration of the possible domain handling behaviours for a GlibLogger.
    • Enumeration of the possible formatting behaviours for a -GlibLogger.
    • A wrapper for std::io::Error that can hold an offset into an input string.
    • Error codes returned by key file parsing.
    • Return values from #GLogWriterFuncs to indicate whether the given log entry -was successfully handled by the writer, or whether there was an error in -handling it (and hence a fallback writer should be used).
    • Error codes returned by markup parsing.
    • Defines how a Unicode string is transformed in a canonical -form, standardizing such issues as whether a character with -an accent is represented as a base character and combining -accent or as a single precomposed character. Unicode strings -should generally be normalized before comparing them.
    • The #GOptionArg enum values determine which type of extra argument the -options expect to find. If an option expects an extra argument, it can -be specified in several ways; with a short option: -x arg, with a long -option: --name arg or combined in a single argument: --name=arg.
    • An enumeration specifying the base position for a -g_io_channel_seek_position() operation.
    • Disambiguates a given time in two ways.
    • These are the possible line break classifications.
    • The #GUnicodeScript enumeration identifies different writing +GlibLogger.
    • A wrapper for std::io::Error that can hold an offset into an input string.
    • Disambiguates a given time in two ways.
    • These are the possible line break classifications.
    • The #GUnicodeScript enumeration identifies different writing systems. The values correspond to the names as defined in the Unicode standard. The enumeration has been added in GLib 2.14, and is interchangeable with #PangoScript.
    • These are the possible character classifications from the Unicode specification. -See Unicode Character Database.
    • Error codes returned by #GUri methods.
    • The range of possible top-level types of #GVariant instances.

    Constants§

    Constants§

    • This is the log domain used by the clone! macro. If you want to use a custom logger (it prints to stdout by default), you can set your own logger using the corresponding -log functions.

    Statics§

    Traits§

    Statics§

    Traits§

    Functions§

    • A wrapper for the POSIX access() function. This function is used to -test a pathname for one or several of read, write or execute -permissions, or just existence.
    • Gets a human-readable name for the application, as set by -g_set_application_name(). This name should be localized if -possible, and is intended for display to the user. Contrast with -g_get_prgname(), which gets a non-localized name. If -g_set_application_name() has not been called, returns the result of -g_get_prgname() (which may be None if g_set_prgname() has also not -been called).
    • Decode a sequence of Base-64 encoded text into binary data. Note -that the returned binary data is not necessarily zero-terminated, -so it should not be used as a character string.
    • Encode a sequence of binary data into its Base-64 stringified -representation.
    • Obtain the character set for the current locale.
    • Checks that the GLib library in use is compatible with the -given version.
    • Create a Future that will resolve once the child process with the given pid exits
    • Create a Future that will resolve once the child process with the given pid exits
    • Gets the character set for the current locale.
    • Computes the checksum for a binary @data. This is a -convenience wrapper for g_checksum_new(), g_checksum_get_string() -and g_checksum_free().
    • Computes the checksum for a binary @data of @length. This is a -convenience wrapper for g_checksum_new(), g_checksum_get_string() -and g_checksum_free().
    • Computes the HMAC for a binary @data. This is a -convenience wrapper for g_hmac_new(), g_hmac_get_string() -and g_hmac_unref().
    • Computes the HMAC for a binary @data of @length. This is a -convenience wrapper for g_hmac_new(), g_hmac_get_string() -and g_hmac_unref().
    • Obtains the character set used by the console attached to the process, -which is suitable for printing output to the terminal.
    • Converts a string from one character set to another.
    • Converts a string from one character set to another, possibly -including fallback sequences for characters not representable -in the output. Note that it is not guaranteed that the specification -for the fallback sequences in @fallback will be honored. Some -systems may do an approximate conversion from @from_codeset -to @to_codeset in their iconv() functions, -in which case GLib will simply return that approximate conversion.
    • Gets the current directory.
    • This is a variant of g_dgettext() that allows specifying a locale -category instead of always using LC_MESSAGES. See g_dgettext() for -more information about how this functions differs from calling -dcgettext() directly.
    • This function is a wrapper of dgettext() which does not translate -the message if the default domain as set with textdomain() has no -translations for the current locale.
    • This function is a wrapper of dngettext() which does not translate -the message if the default domain as set with textdomain() has no -translations for the current locale.
    • This function is a variant of g_dgettext() which supports -a disambiguating message context. GNU gettext uses the -‘\004’ character to separate the message context and -message id in @msgctxtid. -If 0 is passed as @msgidoffset, this function will fall back to -trying to use the deprecated convention of using “|” as a separation -character.
    • This function is a variant of g_dgettext() which supports -a disambiguating message context. GNU gettext uses the -‘\004’ character to separate the message context and -message id in @msgctxtid.
    • Gets the list of environment variables for the current process.
    • Reads an entire file into allocated memory, with good error -checking.
    • Opens a file for writing in the preferred directory for temporary -files (as returned by g_get_tmp_dir()).
    • Writes all of @contents to a file named @filename. This is a convenience -wrapper around calling g_file_set_contents_full() with flags set to -G_FILE_SET_CONTENTS_CONSISTENT | G_FILE_SET_CONTENTS_ONLY_EXISTING and -mode set to 0666.
    • Writes all of @contents to a file named @filename, with good error checking. -If a file called @filename already exists it will be overwritten.
    • Determines the preferred character sets used for filenames. -The first character set from the @charsets is the filename encoding, the -subsequent character sets are used when trying to generate a displayable -representation of a filename, see g_filename_display_name().
    • Returns the display basename for the particular filename, guaranteed -to be valid UTF-8. The display name might not be identical to the filename, -for instance there might be problems converting it to UTF-8, and some files -can be translated in the display.
    • Converts a filename into a valid UTF-8 string. The conversion is -not necessarily reversible, so you should keep the original around -and use the return value of this function only for display purposes. -Unlike g_filename_to_utf8(), the result is guaranteed to be non-None -even if the filename actually isn’t in the GLib file name encoding.
    • Converts an escaped ASCII-encoded URI to a local filename in the -encoding used for filenames.
    • Converts a string from UTF-8 to the encoding GLib uses for -filenames. Note that on Windows GLib uses UTF-8 for filenames; -on other platforms, this function indirectly depends on the -[current locale][setlocale].
    • Converts an absolute filename to an escaped ASCII-encoded URI, with the path -component following Section 3.3. of RFC 2396.
    • Converts a string which is in the encoding used by GLib for -filenames into a UTF-8 string. Note that on Windows GLib uses UTF-8 -for filenames; on other platforms, this function indirectly depends on -the [current locale][setlocale].
    • Locates the first executable named @program in the user’s path, in the -same way that execvp() would locate it. Returns an allocated string -with the absolute path name, or None if the program is not found in -the path. If @program is already an absolute path, returns a copy of -@program if @program exists and is executable, and None otherwise.
    • Formats a size (for example the size of a file) into a human readable -string. Sizes are rounded to the nearest size prefix (kB, MB, GB) -and are displayed rounded to the nearest tenth. E.g. the file size -3292528 bytes will be converted into the string “3.2 MB”. The returned string -is UTF-8, and may use a non-breaking space to separate the number and units, -to ensure they aren’t separated when line wrapped.
    • Formats a size.
    • Add a timeout to a Future.
    • Add a timeout to a Future.
    • Returns the value of an environment variable.
    • Gets the current user’s home directory.
    • Return a name for the machine.
    • Tests if @hostname contains segments with an ASCII-compatible -encoding of an Internationalized Domain Name. If this returns -true, you should decode the hostname with g_hostname_to_unicode() -before displaying it to the user.
    • Tests if @hostname is the string form of an IPv4 or IPv6 address. -(Eg, “192.168.0.1”.)
    • Tests if @hostname contains Unicode characters. If this returns -true, you need to encode the hostname with g_hostname_to_ascii() -before using it in non-IDN-aware contexts.
    • Converts @hostname to its canonical ASCII form; an ASCII-only -string containing no uppercase letters and not ending with a -trailing dot.
    • Converts @hostname to its canonical presentation form; a UTF-8 -string in Unicode normalization form C, containing no uppercase -letters, no forbidden characters, and no ASCII-encoded segments, -and not ending with a trailing dot.
    • Create a Stream that will provide a value every given number of milliseconds.
    • Create a Stream that will provide a value every given number of seconds.
    • Create a Stream that will provide a value every given number of seconds.
    • Create a Stream that will provide a value every given number of milliseconds.
    • Computes a list of applicable locale names, which can be used to -e.g. construct locale-dependent filenames or search paths. The returned -list is sorted from most desirable to least desirable and always contains -the default locale “C”.
    • Computes a list of applicable locale names with a locale category name, -which can be used to construct the fallback locale-dependent filenames -or search paths. The returned list is sorted from most desirable to -least desirable and always contains the default locale “C”.
    • Gets the names of all variables set in the environment.
    • Converts a string from UTF-8 to the encoding used for strings by -the C runtime (usually the same as that used by the operating -system) in the [current locale][setlocale]. On Windows this means -the system codepage.
    • Converts a string which is in the encoding used for strings by -the C runtime (usually the same as that used by the operating -system) in the [current locale][setlocale] into a UTF-8 string.
    • Returns a list of derived variants of @locale, which can be used to -e.g. construct locale-dependent filenames or search paths. The returned -list is sorted from most desirable to least desirable. -This function handles territory, charset and extra locale modifiers. See -setlocale(3) for information about locales and their format.
    • To set back the default print handler, use the log_unset_default_handler function.
    • To set the default print handler, use the log_set_default_handler function.
    • Sets whether GLib log functions output to stderr or stdout.
    • Returns the currently firing source for this thread.
    • Returns the depth of the stack of calls to -MainContext::dispatch() on any #GMainContext in the current thread. -That is, when called from the toplevel, it gives 0. When -called from within a callback from MainContext::iteration() -(or MainLoop::run(), etc.) it returns 1. When called from within -a callback to a recursive call to MainContext::iteration(), -it returns 2. And so forth.
    • Escapes text so that the markup parser will parse it verbatim. -Less than, greater than, ampersand, etc. are replaced with the -corresponding entities. This function would typically be used -when writing out a file to be parsed with the markup parser.
    • Create a directory if it doesn’t already exist. Create intermediate -parent directories as needed, too.
    • Creates a temporary directory. See the mkdtemp() documentation -on most UNIX-like systems.
    • Creates a temporary directory. See the mkdtemp() documentation -on most UNIX-like systems.
    • Opens a temporary file. See the mkstemp() documentation -on most UNIX-like systems.
    • Opens a temporary file. See the mkstemp() documentation -on most UNIX-like systems.
    • Queries the system monotonic time.
    • Determine the approximate number of threads that the system will -schedule simultaneously for this process. This is intended to be -used as a parameter to g_thread_pool_new() for CPU bound tasks and -similar cases.
    • Prompts the user with -[E]xit, [H]alt, show [S]tack trace or [P]roceed. -This function is intended to be used for debugging use only. -The following example shows how it can be used together with -the g_log() functions.
    • Invokes gdb, which attaches to the current process and shows a -stack trace. Called by g_on_error_query() when the “[S]tack trace” -option is selected. You can get the current process’s program name -with g_get_prgname(), assuming that you have called gtk_init() or -gdk_init().
    • os_infov2_64
      Get information about the operating system.
    • Same as get_prgname().
    • Returns a random #gdouble equally distributed over the range [0..1).
    • Returns a random #gdouble equally distributed over the range -[@begin..@end).
    • Return a random #guint32 equally distributed over the range -[0..2^32-1].
    • Returns a random #gint32 equally distributed over the range -[@begin..@end-1].
    • Sets the seed for the global random number generator, which is used -by the g_random_* functions, to @seed.
    • Gets the real name of the user. This usually comes from the user’s -entry in the passwd file. The encoding of the returned string is -system-defined. (On Windows, it is, however, always UTF-8.) If the -real user name cannot be determined, the string “Unknown” is -returned.
    • Queries the system wall-clock time.
    • Resets the cache used for g_get_user_special_dir(), so -that the latest on-disk version is used. Call this only -if you just changed the data on disk yourself.
    • Provides a glib log handler which routes all logging messages to the -log crate.
    • Sets a human-readable name for the application. This name should be -localized if possible, and is intended for display to the user. -Contrast with g_set_prgname(), which sets a non-localized name. -g_set_prgname() will be called automatically by gtk_init(), -but g_set_application_name() will not.
    • To set back the default print handler, use the unset_print_handler function.
    • To set back the default print handler, use the unset_printerr_handler function.
    • Same as set_prgname().
    • Sets an environment variable. On UNIX, both the variable’s name and -value can be arbitrary byte strings, except that the variable’s name -cannot contain ‘=’. On Windows, they should be in UTF-8.
    • Parses a command line into an argument vector, in much the same way -the shell would, but without many of the expansions the shell would -perform (variable expansion, globs, operators, filename expansion, -etc. are not supported).
    • Quotes a string so that the shell (/bin/sh) will interpret the -quoted string to mean @unquoted_string.
    • Unquotes a string as the shell (/bin/sh) would.
    • Gets the smallest prime number from a built-in array of primes which -is larger than @num. This is used within GLib to calculate the optimum -size of a #GHashTable.
    • Executes a child program asynchronously.
    • spawn_async_with_fdsv2_58 and non-Windows
    • An old name for g_spawn_check_wait_status(), deprecated because its -name is misleading.
    • Set @error if @wait_status indicates the child exited abnormally -(e.g. with a nonzero exit code, or via a fatal signal).
    • A simple version of g_spawn_async() that parses a command line with -g_shell_parse_argv() and passes it to g_spawn_async().
    • Spawn a new infallible Future on the thread-default main context.
    • Spawn a new infallible Future on the thread-default main context.
    • Returns an ordered list of base directories in which to access -system-wide configuration information.
    • Returns an ordered list of base directories in which to access -system-wide application data.
    • Create a Future that will resolve after the given number of milliseconds.
    • Create a Future that will resolve after the given number of seconds.
    • Create a Future that will resolve after the given number of seconds.
    • Create a Future that will resolve after the given number of milliseconds.
    • Gets the directory to use for temporary files.
    • Similar to the UNIX pipe() call, but on modern systems like Linux -uses the pipe2() system call, which atomically creates a pipe with -the configured flags.
    • Create a Future that will resolve once the given UNIX signal is raised
    • Create a Future that will resolve once the given UNIX signal is raised
    • Create a Stream that will provide a value whenever the given UNIX signal is raised
    • Create a Stream that will provide a value whenever the given UNIX signal is raised
    • A wrapper for the POSIX unlink() function. The unlink() function -deletes a name from the filesystem. If this was the last link to the -file and no processes have it opened, the diskspace occupied by the -file is freed.
    • To set the default print handler, use the set_print_handler function.
    • To set the default print handler, use the set_printerr_handler function.
    • Removes an environment variable from the environment.
    • Returns a base directory in which to store non-essential, cached -data specific to particular user.
    • Returns a base directory in which to store user-specific application -configuration information such as user preferences and settings.
    • Returns a base directory in which to access application data such -as icons that is customized for a particular user.
    • Gets the user name of the current user. The encoding of the returned -string is system-defined. On UNIX, it might be the preferred file name -encoding, or something else, and there is no guarantee that it is even -consistent on a machine. On Windows, it is always UTF-8.
    • Returns a directory that is unique to the current user on the local -system.
    • Returns the full path of a special directory using its logical id.
    • Returns a base directory in which to store state files specific to -particular user.
    • Pauses the current thread for the given number of microseconds.
    • Parses the string @str and verify if it is a UUID.
    • Generates a random UUID (RFC 4122 version 4) as a string. It has the same -randomness guarantees as #GRand, so must not be used for cryptographic -purposes such as key generation, nonces, salts or one-time pads.

    Type Aliases§

    Attribute Macros§

    • An attribute macro for writing asynchronous test functions.
    • When applied to ObjectImpl
    • Attribute macro for defining flags using the bitflags crate. +provided by GLib that do not exist in the standard library

    Functions§

    Type Aliases§

    Attribute Macros§

    Derive Macros§

    Restrict a value to a certain interval. Read more

    Source§

    impl<'input> PartialEq for MatchInfo<'input>

    Source§

    fn eq(&self, other: &MatchInfo<'input>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'input> PartialOrd for MatchInfo<'input>

    Source§

    fn partial_cmp(&self, other: &MatchInfo<'input>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for MatchInfo<'_>

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for MatchInfo<'static>

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl<'input> Eq for MatchInfo<'input>

    Source§

    impl<'input> StructuralPartialEq for MatchInfo<'input>

    Auto Trait Implementations§

    §

    impl<'input> Freeze for MatchInfo<'input>

    §

    impl<'input> RefUnwindSafe for MatchInfo<'input>

    §

    impl<'input> !Send for MatchInfo<'input>

    §

    impl<'input> !Sync for MatchInfo<'input>

    §

    impl<'input> Unpin for MatchInfo<'input>

    §

    impl<'input> UnwindSafe for MatchInfo<'input>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for MatchInfo<'_>

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for MatchInfo<'static>

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl<'input> Eq for MatchInfo<'input>

    Source§

    impl<'input> StructuralPartialEq for MatchInfo<'input>

    Auto Trait Implementations§

    §

    impl<'input> Freeze for MatchInfo<'input>

    §

    impl<'input> RefUnwindSafe for MatchInfo<'input>

    §

    impl<'input> !Send for MatchInfo<'input>

    §

    impl<'input> !Sync for MatchInfo<'input>

    §

    impl<'input> Unpin for MatchInfo<'input>

    §

    impl<'input> UnwindSafe for MatchInfo<'input>

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/object/struct.Class.html b/git/docs/glib/object/struct.Class.html index e2aa3f9ea664..6b840bd9672e 100644 --- a/git/docs/glib/object/struct.Class.html +++ b/git/docs/glib/object/struct.Class.html @@ -87,7 +87,7 @@

    This will return None if type_ is not a subclass of Self.

    Source

    pub fn parent(&self) -> Option<ClassRef<'_, T>>

    Gets the parent class struct, if any.

    Trait Implementations§

    Source§

    impl<T: IsClass> AsMut<<T as ObjectType>::GlibClassType> for Class<T>

    Source§

    fn as_mut(&mut self) -> &mut T::GlibClassType

    Converts this type into a mutable reference of the (usually inferred) input type.
    Source§

    impl<T: IsClass> AsRef<<T as ObjectType>::GlibClassType> for Class<T>

    Source§

    fn as_ref(&self) -> &T::GlibClassType

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl<T: ParentClassIs> Deref for Class<T>

    Source§

    type Target = Class<<T as ParentClassIs>::Parent>

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl<T: ParentClassIs> DerefMut for Class<T>

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl<T: ObjectType + IsClass> ObjectClassExt for Class<T>

    Source§

    fn has_property(&self, property_name: &str) -> bool

    Check if the object class has a property property_name of the given type_.
    Source§

    fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool

    Check if the object class has a property property_name of the given type_ -or a subtype of it.
    Source§

    fn property_type(&self, property_name: &str) -> Option<Type>

    Get the type of the property property_name of this object class. Read more
    Source§

    fn find_property(&self, property_name: &str) -> Option<ParamSpec>

    Get the ParamSpec of the property property_name of this object class.
    Source§

    fn list_properties(&self) -> PtrSlice<ParamSpec>

    Return all ParamSpec of the properties of this object class.
    Source§

    impl ObjectClassSubclassExt for Class<Object>

    Source§

    fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
    where +or a subtype of it.

    Source§

    fn property_type(&self, property_name: &str) -> Option<Type>

    Get the type of the property property_name of this object class. Read more
    Source§

    fn find_property(&self, property_name: &str) -> Option<ParamSpec>

    Get the ParamSpec of the property property_name of this object class.
    Source§

    fn list_properties(&self) -> PtrSlice<ParamSpec>

    Return all ParamSpec of the properties of this object class.
    Source§

    impl ObjectClassSubclassExt for Class<Object>

    Source§

    fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
    where F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,

    Source§

    impl<T: IsClass> Send for Class<T>

    Source§

    impl<T: IsClass> Sync for Class<T>

    Auto Trait Implementations§

    §

    impl<T> Freeze for Class<T>

    §

    impl<T> RefUnwindSafe for Class<T>

    §

    impl<T> Unpin for Class<T>
    where diff --git a/git/docs/glib/object/struct.Object.html b/git/docs/glib/object/struct.Object.html index acc85002577d..bc1ce5554074 100644 --- a/git/docs/glib/object/struct.Object.html +++ b/git/docs/glib/object/struct.Object.html @@ -102,8 +102,8 @@
    §Panics
    H: Hasher,

    Hashes the memory address of this object.

    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl<T: ObjectImpl> IsSubclassable<T> for Object

    Source§

    fn class_init(class: &mut Class<Self>)

    Override the virtual methods of this class for the given subclass and do other class -initialization. Read more
    Source§

    fn instance_init(_instance: &mut InitializingObject<T>)

    Instance specific initialization. Read more
    Source§

    impl Ord for Object

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    Comparison for two GObjects.

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more

    Source§

    impl<T: ObjectImpl> IsSubclassable<T> for Object

    Source§

    fn class_init(class: &mut Class<Self>)

    Override the virtual methods of this class for the given subclass and do other class +initialization. Read more
    Source§

    fn instance_init(_instance: &mut InitializingObject<T>)

    Instance specific initialization. Read more
    Source§

    impl Ord for Object

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    Comparison for two GObjects.

    Compares the memory addresses of the provided objects.

    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where diff --git a/git/docs/glib/object/trait.ParentClassIs.html b/git/docs/glib/object/trait.ParentClassIs.html index ebcbb4081efe..37e3722dc1d3 100644 --- a/git/docs/glib/object/trait.ParentClassIs.html +++ b/git/docs/glib/object/trait.ParentClassIs.html @@ -73,4 +73,4 @@
    glib::object

    Trait ParentClassIs

    Source
    pub unsafe trait ParentClassIs: IsClass {
         type Parent: IsClass;
    -}

    Required Associated Types§

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file +}

    Required Associated Types§

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/prelude/trait.HasParamSpec.html b/git/docs/glib/prelude/trait.HasParamSpec.html index 9fab7ef12030..c563f9308125 100644 --- a/git/docs/glib/prelude/trait.HasParamSpec.html +++ b/git/docs/glib/prelude/trait.HasParamSpec.html @@ -79,4 +79,4 @@ // Required method fn param_spec_builder() -> Self::BuilderFn; }

    Required Associated Types§

    Source

    type ParamSpec

    Source

    type SetValue: ?Sized

    Preferred value to be used as setter for the associated ParamSpec.

    -
    Source

    type BuilderFn

    Required Methods§

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl HasParamSpec for bool

    Source§

    impl HasParamSpec for char

    Source§

    impl HasParamSpec for f32

    Source§

    impl HasParamSpec for f64

    Source§

    impl HasParamSpec for i8

    Source§

    impl HasParamSpec for i32

    Source§

    impl HasParamSpec for i64

    Source§

    impl HasParamSpec for str

    Source§

    impl HasParamSpec for u8

    Source§

    impl HasParamSpec for u32

    Source§

    impl HasParamSpec for u64

    Source§

    impl HasParamSpec for Box<str>

    Source§

    impl HasParamSpec for String

    Source§

    impl HasParamSpec for Vec<String>

    Source§

    impl HasParamSpec for Path

    Source§

    impl HasParamSpec for PathBuf

    Source§

    impl HasParamSpec for NonZeroI8

    Source§

    impl HasParamSpec for NonZeroI32

    Source§

    impl HasParamSpec for NonZeroI64

    Source§

    impl HasParamSpec for NonZeroU8

    Source§

    impl HasParamSpec for NonZeroU32

    Source§

    impl HasParamSpec for NonZeroU64

    Source§

    impl<T: ToValueOptional + HasParamSpec> HasParamSpec for Option<T>

    Source§

    impl<T: HasParamSpec + ?Sized> HasParamSpec for &T

    Implementors§

    Source§

    impl HasParamSpec for NormalizeMode

    Source§

    impl HasParamSpec for UnicodeBreakType

    Source§

    impl HasParamSpec for UnicodeScript

    Source§

    impl HasParamSpec for UnicodeType

    Source§

    impl HasParamSpec for Closure

    Source§

    impl HasParamSpec for StrV

    Source§

    impl HasParamSpec for Error

    Source§

    impl HasParamSpec for MatchInfo<'static>

    Source§

    impl HasParamSpec for InitiallyUnowned

    Source§

    impl HasParamSpec for Object

    Source§

    impl HasParamSpec for Binding

    Source§

    impl HasParamSpec for BindingFlags

    Source§

    impl HasParamSpec for BindingGroup

    Available on crate feature v2_72 only.
    Source§

    impl HasParamSpec for BoxedAnyObject

    Source§

    impl HasParamSpec for ByteArray

    Source§

    impl HasParamSpec for Bytes

    Source§

    impl HasParamSpec for Checksum

    Source§

    impl HasParamSpec for Date

    Source§

    impl HasParamSpec for DateTime

    Source§

    impl HasParamSpec for GString

    Source§

    impl HasParamSpec for GStringBuilder

    Source§

    impl HasParamSpec for IOCondition

    Source§

    impl HasParamSpec for KeyFile

    Source§

    impl HasParamSpec for MainContext

    Source§

    impl HasParamSpec for MainLoop

    Source§

    impl HasParamSpec for MarkupParseContext

    Source§

    impl HasParamSpec for Regex

    Source§

    impl HasParamSpec for SignalGroup

    Available on crate feature v2_74 only.
    Source§

    impl HasParamSpec for Source

    Source§

    impl HasParamSpec for TimeZone

    Source§

    impl HasParamSpec for TypeModule

    Source§

    impl HasParamSpec for TypePlugin

    Source§

    impl HasParamSpec for Uri

    Available on crate feature v2_66 only.
    Source§

    impl HasParamSpec for ValueArray

    Source§

    impl HasParamSpec for VariantDict

    Source§

    impl HasParamSpec for Variant

    \ No newline at end of file +
    Source

    type BuilderFn

    Required Methods§

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl HasParamSpec for bool

    Source§

    impl HasParamSpec for char

    Source§

    impl HasParamSpec for f32

    Source§

    impl HasParamSpec for f64

    Source§

    impl HasParamSpec for i8

    Source§

    impl HasParamSpec for i32

    Source§

    impl HasParamSpec for i64

    Source§

    impl HasParamSpec for str

    Source§

    impl HasParamSpec for u8

    Source§

    impl HasParamSpec for u32

    Source§

    impl HasParamSpec for u64

    Source§

    impl HasParamSpec for Box<str>

    Source§

    impl HasParamSpec for String

    Source§

    impl HasParamSpec for Vec<String>

    Source§

    impl HasParamSpec for Path

    Source§

    impl HasParamSpec for PathBuf

    Source§

    impl HasParamSpec for NonZeroI8

    Source§

    impl HasParamSpec for NonZeroI32

    Source§

    impl HasParamSpec for NonZeroI64

    Source§

    impl HasParamSpec for NonZeroU8

    Source§

    impl HasParamSpec for NonZeroU32

    Source§

    impl HasParamSpec for NonZeroU64

    Source§

    impl<T: ToValueOptional + HasParamSpec> HasParamSpec for Option<T>

    Source§

    impl<T: HasParamSpec + ?Sized> HasParamSpec for &T

    Implementors§

    Source§

    impl HasParamSpec for NormalizeMode

    Source§

    impl HasParamSpec for UnicodeBreakType

    Source§

    impl HasParamSpec for UnicodeScript

    Source§

    impl HasParamSpec for UnicodeType

    Source§

    impl HasParamSpec for Closure

    Source§

    impl HasParamSpec for StrV

    Source§

    impl HasParamSpec for Error

    Source§

    impl HasParamSpec for MatchInfo<'static>

    Source§

    impl HasParamSpec for InitiallyUnowned

    Source§

    impl HasParamSpec for Object

    Source§

    impl HasParamSpec for Binding

    Source§

    impl HasParamSpec for BindingFlags

    Source§

    impl HasParamSpec for BindingGroup

    Available on crate feature v2_72 only.
    Source§

    impl HasParamSpec for BoxedAnyObject

    Source§

    impl HasParamSpec for ByteArray

    Source§

    impl HasParamSpec for Bytes

    Source§

    impl HasParamSpec for Checksum

    Source§

    impl HasParamSpec for Date

    Source§

    impl HasParamSpec for DateTime

    Source§

    impl HasParamSpec for GString

    Source§

    impl HasParamSpec for GStringBuilder

    Source§

    impl HasParamSpec for IOCondition

    Source§

    impl HasParamSpec for KeyFile

    Source§

    impl HasParamSpec for MainContext

    Source§

    impl HasParamSpec for MainLoop

    Source§

    impl HasParamSpec for MarkupParseContext

    Source§

    impl HasParamSpec for Regex

    Source§

    impl HasParamSpec for SignalGroup

    Available on crate feature v2_74 only.
    Source§

    impl HasParamSpec for Source

    Source§

    impl HasParamSpec for TimeZone

    Source§

    impl HasParamSpec for TypeModule

    Source§

    impl HasParamSpec for TypePlugin

    Source§

    impl HasParamSpec for Uri

    Available on crate feature v2_66 only.
    Source§

    impl HasParamSpec for ValueArray

    Source§

    impl HasParamSpec for VariantDict

    Source§

    impl HasParamSpec for Variant

    \ No newline at end of file diff --git a/git/docs/glib/regex/index.html b/git/docs/glib/regex/index.html index f3ced771d61c..53fcf69fa1b7 100644 --- a/git/docs/glib/regex/index.html +++ b/git/docs/glib/regex/index.html @@ -71,6 +71,6 @@ -
    glib

    Module regex

    Source
    Expand description

    This module is inefficient and should not be used by Rust programs except for +

    glib

    Module regex

    Source
    Expand description

    This module is inefficient and should not be used by Rust programs except for compatibility with GLib.Regex based APIs.

    \ No newline at end of file diff --git a/git/docs/glib/signal/enum.Propagation.html b/git/docs/glib/signal/enum.Propagation.html index f265c1ce78c1..554e46d872cb 100644 --- a/git/docs/glib/signal/enum.Propagation.html +++ b/git/docs/glib/signal/enum.Propagation.html @@ -91,7 +91,7 @@ From<T> for U chooses to do.

    Source§

    impl<T> IntoClosureReturnValue for T
    where T: Into<Value>,

    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

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

    Source§

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

    Source§

    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.

    \ No newline at end of file diff --git a/git/docs/glib/static.CSET_A_2_Z.html b/git/docs/glib/static.CSET_A_2_Z.html index 03d321768d32..fc04bb96082b 100644 --- a/git/docs/glib/static.CSET_A_2_Z.html +++ b/git/docs/glib/static.CSET_A_2_Z.html @@ -1,4 +1,4 @@ -CSET_A_2_Z in glib - Rust +CSET_A_2_Z in glib - Rust -
    glib

    Static CSET_A_2_Z

    Source
    pub static CSET_A_2_Z: &GStr
    Expand description

    The set of uppercase ASCII alphabet characters. -Used for specifying valid identifier characters -in #GScannerConfig.

    -
    \ No newline at end of file +
    glib

    Static CSET_A_2_Z

    Source
    pub static CSET_A_2_Z: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.CSET_DIGITS.html b/git/docs/glib/static.CSET_DIGITS.html index 6e90d27662ca..13b23799130a 100644 --- a/git/docs/glib/static.CSET_DIGITS.html +++ b/git/docs/glib/static.CSET_DIGITS.html @@ -1,4 +1,4 @@ -CSET_DIGITS in glib - Rust +CSET_DIGITS in glib - Rust -
    glib

    Static CSET_DIGITS

    Source
    pub static CSET_DIGITS: &GStr
    Expand description

    The set of ASCII digits. -Used for specifying valid identifier characters -in #GScannerConfig.

    -
    \ No newline at end of file +
    glib

    Static CSET_DIGITS

    Source
    pub static CSET_DIGITS: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.CSET_a_2_z.html b/git/docs/glib/static.CSET_a_2_z.html index 3dc303339014..9df2d3bca23a 100644 --- a/git/docs/glib/static.CSET_a_2_z.html +++ b/git/docs/glib/static.CSET_a_2_z.html @@ -1,4 +1,4 @@ -CSET_a_2_z in glib - Rust +CSET_a_2_z in glib - Rust -
    glib

    Static CSET_a_2_z

    Source
    pub static CSET_a_2_z: &GStr
    Expand description

    The set of lowercase ASCII alphabet characters. -Used for specifying valid identifier characters -in #GScannerConfig.

    -
    \ No newline at end of file +
    glib

    Static CSET_a_2_z

    Source
    pub static CSET_a_2_z: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_GROUP.html b/git/docs/glib/static.KEY_FILE_DESKTOP_GROUP.html index d21245b4ebcf..9f04bad9019b 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_GROUP.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_GROUP.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_GROUP in glib - Rust +KEY_FILE_DESKTOP_GROUP in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_GROUP

    Source
    pub static KEY_FILE_DESKTOP_GROUP: &GStr
    Expand description

    The name of the main group of a desktop entry file, as defined in the -Desktop Entry Specification. -Consult the specification for more -details about the meanings of the keys below.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_GROUP

    Source
    pub static KEY_FILE_DESKTOP_GROUP: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ACTIONS.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ACTIONS.html index 4686285952ec..24ba9b9d562f 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ACTIONS.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ACTIONS.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_ACTIONS in glib - Rust +KEY_FILE_DESKTOP_KEY_ACTIONS in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_ACTIONS

    Source
    pub static KEY_FILE_DESKTOP_KEY_ACTIONS: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a string list -giving the available application actions.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_ACTIONS

    Source
    pub static KEY_FILE_DESKTOP_KEY_ACTIONS: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_CATEGORIES.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_CATEGORIES.html index cb44e619ac19..6bdce007dfb7 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_CATEGORIES.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_CATEGORIES.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_CATEGORIES in glib - Rust +KEY_FILE_DESKTOP_KEY_CATEGORIES in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_CATEGORIES

    Source
    pub static KEY_FILE_DESKTOP_KEY_CATEGORIES: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a list -of strings giving the categories in which the desktop entry -should be shown in a menu.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_CATEGORIES

    Source
    pub static KEY_FILE_DESKTOP_KEY_CATEGORIES: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_COMMENT.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_COMMENT.html index 99a27fb25597..fbe91b785cfc 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_COMMENT.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_COMMENT.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_COMMENT in glib - Rust +KEY_FILE_DESKTOP_KEY_COMMENT in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_COMMENT

    Source
    pub static KEY_FILE_DESKTOP_KEY_COMMENT: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a localized -string giving the tooltip for the desktop entry.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_COMMENT

    Source
    pub static KEY_FILE_DESKTOP_KEY_COMMENT: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE.html index 0b2498a5af0c..41a92c1a6454 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE in glib - Rust +KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE

    Source
    pub static KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a boolean -set to true if the application is D-Bus activatable.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE

    Source
    pub static KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_EXEC.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_EXEC.html index 784ce2472a0e..dd25f441e83d 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_EXEC.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_EXEC.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_EXEC in glib - Rust +KEY_FILE_DESKTOP_KEY_EXEC in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_EXEC

    Source
    pub static KEY_FILE_DESKTOP_KEY_EXEC: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a string -giving the command line to execute. It is only valid for desktop -entries with the Application type.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_EXEC

    Source
    pub static KEY_FILE_DESKTOP_KEY_EXEC: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_GENERIC_NAME.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_GENERIC_NAME.html index 9514d776f68a..528b534586a4 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_GENERIC_NAME.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_GENERIC_NAME.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_GENERIC_NAME in glib - Rust +KEY_FILE_DESKTOP_KEY_GENERIC_NAME in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_GENERIC_NAME

    Source
    pub static KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a localized -string giving the generic name of the desktop entry.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_GENERIC_NAME

    Source
    pub static KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_HIDDEN.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_HIDDEN.html index f8202627fb68..9f48c9961443 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_HIDDEN.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_HIDDEN.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_HIDDEN in glib - Rust +KEY_FILE_DESKTOP_KEY_HIDDEN in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_HIDDEN

    Source
    pub static KEY_FILE_DESKTOP_KEY_HIDDEN: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a boolean -stating whether the desktop entry has been deleted by the user.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_HIDDEN

    Source
    pub static KEY_FILE_DESKTOP_KEY_HIDDEN: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ICON.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ICON.html index 441e948f9d20..f3536b0bfbe6 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ICON.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ICON.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_ICON in glib - Rust +KEY_FILE_DESKTOP_KEY_ICON in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_ICON

    Source
    pub static KEY_FILE_DESKTOP_KEY_ICON: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a localized -string giving the name of the icon to be displayed for the desktop -entry.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_ICON

    Source
    pub static KEY_FILE_DESKTOP_KEY_ICON: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_MIME_TYPE.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_MIME_TYPE.html index 323c754b5bb1..977bb39a104a 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_MIME_TYPE.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_MIME_TYPE.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_MIME_TYPE in glib - Rust +KEY_FILE_DESKTOP_KEY_MIME_TYPE in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_MIME_TYPE

    Source
    pub static KEY_FILE_DESKTOP_KEY_MIME_TYPE: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a list -of strings giving the MIME types supported by this desktop entry.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_MIME_TYPE

    Source
    pub static KEY_FILE_DESKTOP_KEY_MIME_TYPE: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NAME.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NAME.html index bd513d13c0b6..998709403719 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NAME.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NAME.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_NAME in glib - Rust +KEY_FILE_DESKTOP_KEY_NAME in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_NAME

    Source
    pub static KEY_FILE_DESKTOP_KEY_NAME: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a localized -string giving the specific name of the desktop entry.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_NAME

    Source
    pub static KEY_FILE_DESKTOP_KEY_NAME: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN.html index 45998e008dc0..98442715dba1 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN in glib - Rust +KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN

    Source
    pub static KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a list of -strings identifying the environments that should not display the -desktop entry.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN

    Source
    pub static KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NO_DISPLAY.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NO_DISPLAY.html index 2b8fd78aa224..079ae595c034 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NO_DISPLAY.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_NO_DISPLAY.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_NO_DISPLAY in glib - Rust +KEY_FILE_DESKTOP_KEY_NO_DISPLAY in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_NO_DISPLAY

    Source
    pub static KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a boolean -stating whether the desktop entry should be shown in menus.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_NO_DISPLAY

    Source
    pub static KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN.html index b20bb3b991fa..02926f655dae 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN in glib - Rust +KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN

    Source
    pub static KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a list of -strings identifying the environments that should display the -desktop entry.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN

    Source
    pub static KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_PATH.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_PATH.html index 36e003368f34..41bf0b42de05 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_PATH.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_PATH.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_PATH in glib - Rust +KEY_FILE_DESKTOP_KEY_PATH in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_PATH

    Source
    pub static KEY_FILE_DESKTOP_KEY_PATH: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a string -containing the working directory to run the program in. It is only -valid for desktop entries with the Application type.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_PATH

    Source
    pub static KEY_FILE_DESKTOP_KEY_PATH: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY.html index 9f1473e99675..7166a45c51ee 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY in glib - Rust +KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY

    Source
    pub static KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a boolean -stating whether the application supports the -Startup Notification Protocol Specification.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY

    Source
    pub static KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS.html index 567c1c3d0275..16e549769702 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS in glib - Rust +KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS

    Source
    pub static KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is string -identifying the WM class or name hint of a window that the application -will create, which can be used to emulate Startup Notification with -older applications.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS

    Source
    pub static KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TERMINAL.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TERMINAL.html index 30b7482840b7..9b0515e535ef 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TERMINAL.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TERMINAL.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_TERMINAL in glib - Rust +KEY_FILE_DESKTOP_KEY_TERMINAL in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_TERMINAL

    Source
    pub static KEY_FILE_DESKTOP_KEY_TERMINAL: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a boolean -stating whether the program should be run in a terminal window.

    -

    It is only valid for desktop entries with the Application type.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_TERMINAL

    Source
    pub static KEY_FILE_DESKTOP_KEY_TERMINAL: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TRY_EXEC.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TRY_EXEC.html index 2e7acb9fa822..672203d3c1d1 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TRY_EXEC.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TRY_EXEC.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_TRY_EXEC in glib - Rust +KEY_FILE_DESKTOP_KEY_TRY_EXEC in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_TRY_EXEC

    Source
    pub static KEY_FILE_DESKTOP_KEY_TRY_EXEC: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a string -giving the file name of a binary on disk used to determine if the -program is actually installed. It is only valid for desktop entries -with the Application type.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_TRY_EXEC

    Source
    pub static KEY_FILE_DESKTOP_KEY_TRY_EXEC: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TYPE.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TYPE.html index 3505a2d6a9be..507702d7e785 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TYPE.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_TYPE.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_TYPE in glib - Rust +KEY_FILE_DESKTOP_KEY_TYPE in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_TYPE

    Source
    pub static KEY_FILE_DESKTOP_KEY_TYPE: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a string -giving the type of the desktop entry.

    -

    Usually KEY_FILE_DESKTOP_TYPE_APPLICATION, -KEY_FILE_DESKTOP_TYPE_LINK, or -KEY_FILE_DESKTOP_TYPE_DIRECTORY.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_TYPE

    Source
    pub static KEY_FILE_DESKTOP_KEY_TYPE: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_URL.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_URL.html index 4bdb911ae48b..9ddc94588393 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_URL.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_URL.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_URL in glib - Rust +KEY_FILE_DESKTOP_KEY_URL in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_URL

    Source
    pub static KEY_FILE_DESKTOP_KEY_URL: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a string -giving the URL to access. It is only valid for desktop entries -with the Link type.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_URL

    Source
    pub static KEY_FILE_DESKTOP_KEY_URL: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_VERSION.html b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_VERSION.html index 0bd672ddc632..db55de01f8a0 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_VERSION.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_KEY_VERSION.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_KEY_VERSION in glib - Rust +KEY_FILE_DESKTOP_KEY_VERSION in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_KEY_VERSION

    Source
    pub static KEY_FILE_DESKTOP_KEY_VERSION: &GStr
    Expand description

    A key under KEY_FILE_DESKTOP_GROUP, whose value is a string -giving the version of the Desktop Entry Specification used for -the desktop entry file.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_KEY_VERSION

    Source
    pub static KEY_FILE_DESKTOP_KEY_VERSION: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_APPLICATION.html b/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_APPLICATION.html index 4047c79f43bb..ca25168e07a5 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_APPLICATION.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_APPLICATION.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_TYPE_APPLICATION in glib - Rust +KEY_FILE_DESKTOP_TYPE_APPLICATION in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_TYPE_APPLICATION

    Source
    pub static KEY_FILE_DESKTOP_TYPE_APPLICATION: &GStr
    Expand description

    The value of the KEY_FILE_DESKTOP_KEY_TYPE, key for desktop -entries representing applications.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_TYPE_APPLICATION

    Source
    pub static KEY_FILE_DESKTOP_TYPE_APPLICATION: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_DIRECTORY.html b/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_DIRECTORY.html index 83cc5364147b..c6a2bd7bf8cb 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_DIRECTORY.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_DIRECTORY.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_TYPE_DIRECTORY in glib - Rust +KEY_FILE_DESKTOP_TYPE_DIRECTORY in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_TYPE_DIRECTORY

    Source
    pub static KEY_FILE_DESKTOP_TYPE_DIRECTORY: &GStr
    Expand description

    The value of the KEY_FILE_DESKTOP_KEY_TYPE, key for desktop -entries representing directories.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_TYPE_DIRECTORY

    Source
    pub static KEY_FILE_DESKTOP_TYPE_DIRECTORY: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_LINK.html b/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_LINK.html index 0d72f75ebf7d..2e041929c89d 100644 --- a/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_LINK.html +++ b/git/docs/glib/static.KEY_FILE_DESKTOP_TYPE_LINK.html @@ -1,4 +1,4 @@ -KEY_FILE_DESKTOP_TYPE_LINK in glib - Rust +KEY_FILE_DESKTOP_TYPE_LINK in glib - Rust -
    glib

    Static KEY_FILE_DESKTOP_TYPE_LINK

    Source
    pub static KEY_FILE_DESKTOP_TYPE_LINK: &GStr
    Expand description

    The value of the KEY_FILE_DESKTOP_KEY_TYPE, key for desktop -entries representing links to documents.

    -
    \ No newline at end of file +
    glib

    Static KEY_FILE_DESKTOP_TYPE_LINK

    Source
    pub static KEY_FILE_DESKTOP_TYPE_LINK: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.OPTION_REMAINING.html b/git/docs/glib/static.OPTION_REMAINING.html index 0d84b5fd9596..99afd2e560c7 100644 --- a/git/docs/glib/static.OPTION_REMAINING.html +++ b/git/docs/glib/static.OPTION_REMAINING.html @@ -1,4 +1,4 @@ -OPTION_REMAINING in glib - Rust +OPTION_REMAINING in glib - Rust -
    glib

    Static OPTION_REMAINING

    Source
    pub static OPTION_REMAINING: &GStr
    Expand description

    If a long option in the main group has this name, it is not treated as a -regular option. Instead it collects all non-option arguments which would -otherwise be left in argv. The option must be of type -OptionArg::Callback, OptionArg::StringArray -or OptionArg::FilenameArray.

    -

    Using OPTION_REMAINING instead of simply scanning argv -for leftover arguments has the advantage that GOption takes care of -necessary encoding conversions for strings or filenames.

    -
    \ No newline at end of file +
    glib

    Static OPTION_REMAINING

    Source
    pub static OPTION_REMAINING: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.STR_DELIMITERS.html b/git/docs/glib/static.STR_DELIMITERS.html index 5c8e0789afe2..d3b885f03422 100644 --- a/git/docs/glib/static.STR_DELIMITERS.html +++ b/git/docs/glib/static.STR_DELIMITERS.html @@ -1,4 +1,4 @@ -STR_DELIMITERS in glib - Rust +STR_DELIMITERS in glib - Rust -
    glib

    Static STR_DELIMITERS

    Source
    pub static STR_DELIMITERS: &GStr
    Expand description

    The standard delimiters, used in strdelimit().

    -
    \ No newline at end of file +
    glib

    Static STR_DELIMITERS

    Source
    pub static STR_DELIMITERS: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.TEST_OPTION_ISOLATE_DIRS.html b/git/docs/glib/static.TEST_OPTION_ISOLATE_DIRS.html index e4556eb89f66..83dea4ee047f 100644 --- a/git/docs/glib/static.TEST_OPTION_ISOLATE_DIRS.html +++ b/git/docs/glib/static.TEST_OPTION_ISOLATE_DIRS.html @@ -1,4 +1,4 @@ -TEST_OPTION_ISOLATE_DIRS in glib - Rust +TEST_OPTION_ISOLATE_DIRS in glib - Rust -
    glib

    Static TEST_OPTION_ISOLATE_DIRS

    Source
    pub static TEST_OPTION_ISOLATE_DIRS: &GStr
    Available on crate feature v2_60 only.
    Expand description

    Creates a unique temporary directory for each unit test and uses -g_set_user_dirs() to set XDG directories to point into subdirectories of it -for the duration of the unit test. The directory tree is cleaned up after the -test finishes successfully. Note that this doesn’t take effect until -g_test_run() is called, so calls to (for example) g_get_user_home_dir() will -return the system-wide value when made in a test program’s main() function.

    -

    The following functions will return subdirectories of the temporary directory -when this option is used. The specific subdirectory paths in use are not -guaranteed to be stable API — always use a getter function to retrieve them.

    -
      -
    • g_get_home_dir()
    • -
    • g_get_user_cache_dir()
    • -
    • g_get_system_config_dirs()
    • -
    • g_get_user_config_dir()
    • -
    • g_get_system_data_dirs()
    • -
    • g_get_user_data_dir()
    • -
    • g_get_user_state_dir()
    • -
    • g_get_user_runtime_dir()
    • -
    -

    The subdirectories may not be created by the test harness; as with normal -calls to functions like g_get_user_cache_dir(), the caller must be prepared -to create the directory if it doesn’t exist.

    -
    \ No newline at end of file +
    glib

    Static TEST_OPTION_ISOLATE_DIRS

    Source
    pub static TEST_OPTION_ISOLATE_DIRS: &GStr
    Available on crate feature v2_60 only.
    \ No newline at end of file diff --git a/git/docs/glib/static.URI_RESERVED_CHARS_GENERIC_DELIMITERS.html b/git/docs/glib/static.URI_RESERVED_CHARS_GENERIC_DELIMITERS.html index b35d8ef0e428..4ee1ca9f3886 100644 --- a/git/docs/glib/static.URI_RESERVED_CHARS_GENERIC_DELIMITERS.html +++ b/git/docs/glib/static.URI_RESERVED_CHARS_GENERIC_DELIMITERS.html @@ -1,4 +1,4 @@ -URI_RESERVED_CHARS_GENERIC_DELIMITERS in glib - Rust +URI_RESERVED_CHARS_GENERIC_DELIMITERS in glib - Rust -
    glib

    Static URI_RESERVED_CHARS_GENERIC_DELIMITERS

    Source
    pub static URI_RESERVED_CHARS_GENERIC_DELIMITERS: &GStr
    Expand description

    Generic delimiters characters as defined in -RFC 3986. Includes :/?#[]@.

    -
    \ No newline at end of file +
    glib

    Static URI_RESERVED_CHARS_GENERIC_DELIMITERS

    Source
    pub static URI_RESERVED_CHARS_GENERIC_DELIMITERS: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/static.URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS.html b/git/docs/glib/static.URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS.html index 2747282241f1..4bcd8ebb3684 100644 --- a/git/docs/glib/static.URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS.html +++ b/git/docs/glib/static.URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS.html @@ -1,4 +1,4 @@ -URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS in glib - Rust +URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS in glib - Rust -
    glib

    Static URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS

    Source
    pub static URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &GStr
    Expand description

    Subcomponent delimiter characters as defined in -RFC 3986. Includes !$&'()*+,;=.

    -
    \ No newline at end of file +
    glib

    Static URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS

    Source
    pub static URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &GStr
    \ No newline at end of file diff --git a/git/docs/glib/struct.Binding.html b/git/docs/glib/struct.Binding.html index 415d20951912..d8e246a4801f 100644 --- a/git/docs/glib/struct.Binding.html +++ b/git/docs/glib/struct.Binding.html @@ -71,7 +71,7 @@ -
    glib

    Struct Binding

    Source
    pub struct Binding { /* private fields */ }
    Expand description

    GObject instance (or source) and another property on another GObject +

    glib

    Struct Binding

    Source
    pub struct Binding { /* private fields */ }
    Expand description

    GObject instance (or source) and another property on another GObject instance (or target).

    Whenever the source property changes, the same value is applied to the target property; for instance, the following binding:

    @@ -148,20 +148,118 @@
    §

    Readable | Writeable | Construct Only

    §Implements

    +

    ObjectExt +GObject instance (or source) and another property on another GObject +instance (or target).

    +

    Whenever the source property changes, the same value is applied to the +target property; for instance, the following binding:

    +

    ⚠️ The following code is in c ⚠️

    +
      g_object_bind_property (object1, "property-a",
    +                          object2, "property-b",
    +                          G_BINDING_DEFAULT);
    +

    will cause the property named “property-b” of object2 to be updated +every time [methodObject] or the specific accessor changes the value of +the property “property-a” of object1.

    +

    It is possible to create a bidirectional binding between two properties +of two GObject instances, so that if either property changes, the +other is updated as well, for instance:

    +

    ⚠️ The following code is in c ⚠️

    +
      g_object_bind_property (object1, "property-a",
    +                          object2, "property-b",
    +                          G_BINDING_BIDIRECTIONAL);
    +

    will keep the two properties in sync.

    +

    It is also possible to set a custom transformation function (in both +directions, in case of a bidirectional binding) to apply a custom +transformation from the source value to the target value before +applying it; for instance, the following binding:

    +

    ⚠️ The following code is in c ⚠️

    +
      g_object_bind_property_full (adjustment1, "value",
    +                               adjustment2, "value",
    +                               G_BINDING_BIDIRECTIONAL,
    +                               celsius_to_fahrenheit,
    +                               fahrenheit_to_celsius,
    +                               NULL, NULL);
    +

    will keep the “value” property of the two adjustments in sync; the +celsius_to_fahrenheit function will be called whenever the “value” +property of adjustment1 changes and will transform the current value +of the property before applying it to the “value” property of adjustment2.

    +

    Vice versa, the fahrenheit_to_celsius function will be called whenever +the “value” property of adjustment2 changes, and will transform the +current value of the property before applying it to the “value” property +of adjustment1.

    +

    Note that Binding does not resolve cycles by itself; a cycle like

    +
      object1:propertyA -> object2:propertyB
    +  object2:propertyB -> object3:propertyC
    +  object3:propertyC -> object1:propertyA
    +

    might lead to an infinite loop. The loop, in this particular case, +can be avoided if the objects emit the GObject::notify signal only +if the value has effectively been changed. A binding is implemented +using the GObject::notify signal, so it is susceptible to all the +various ways of blocking a signal emission, like [funcObject] +or [funcObject].

    +

    A binding will be severed, and the resources it allocates freed, whenever +either one of the GObject instances it refers to are finalized, or when +the Binding instance loses its last reference.

    +

    Bindings for languages with garbage collection can use +[methodObject.unbind] to explicitly release a binding between the source +and target properties, instead of relying on the last reference on the +binding, source, and target instances to drop.

    +

    §Properties

    §flags
    +

    Flags to be used to control the Binding

    +

    Readable | Writeable | Construct Only

    +
    §source
    +

    The Object that should be used as the source of the binding

    +

    Readable | Writeable | Construct Only

    +
    §source-property
    +

    The name of the property of source that should be used +as the source of the binding.

    +

    This should be in [canonical form][canonical-parameter-names] to get the +best performance.

    +

    Readable | Writeable | Construct Only

    +
    §target
    +

    The Object that should be used as the target of the binding

    +

    Readable | Writeable | Construct Only

    +
    §target-property
    +

    The name of the property of target that should be used +as the target of the binding.

    +

    This should be in [canonical form][canonical-parameter-names] to get the +best performance.

    +

    Readable | Writeable | Construct Only

    +

    §Implements

    ObjectExt

    GLib type: GObject with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl Binding

    Source

    pub fn flags(&self) -> BindingFlags

    Retrieves the flags passed when constructing the Binding.

    +

    Implementations§

    Source§

    impl Binding

    Source

    pub fn flags(&self) -> BindingFlags

    Retrieves the flags passed when constructing the Binding.

    §Returns
    +

    the BindingFlags used by the Binding +Retrieves the flags passed when constructing the Binding.

    +
    §Returns

    the BindingFlags used by the Binding

    -
    Source

    pub fn source_property(&self) -> GString

    Retrieves the name of the property of source used as the source +

    Source

    pub fn source_property(&self) -> GString

    Retrieves the name of the property of source used as the source of the binding.

    -
    §Returns
    +
    §Returns
    +

    the name of the source property +Retrieves the name of the property of source used as the source +of the binding.

    +
    §Returns

    the name of the source property

    -
    Source

    pub fn target_property(&self) -> GString

    Retrieves the name of the property of target used as the target +

    Source

    pub fn target_property(&self) -> GString

    Retrieves the name of the property of target used as the target of the binding.

    -
    §Returns
    +
    §Returns
    +

    the name of the target property +Retrieves the name of the property of target used as the target +of the binding.

    +
    §Returns

    the name of the target property

    -
    Source

    pub fn unbind(&self)

    Explicitly releases the binding between the source and the target +

    Source

    pub fn unbind(&self)

    Explicitly releases the binding between the source and the target +property expressed by self.

    +

    This function will release the reference that is being held on +the self instance if the binding is still bound; if you want to hold on +to the Binding instance after calling unbind(), you will need +to hold a reference to it.

    +

    Note however that this function does not take ownership of self, it +only unrefs the reference that was initially created by +ObjectExt::bind_property() and is owned by the binding. +Explicitly releases the binding between the source and the target property expressed by self.

    This function will release the reference that is being held on the self instance if the binding is still bound; if you want to hold on @@ -170,26 +268,26 @@

    §Returns

    Note however that this function does not take ownership of self, it only unrefs the reference that was initially created by ObjectExt::bind_property() and is owned by the binding.

    -
    Source§

    impl Binding

    Source

    pub fn source(&self) -> Option<Object>

    Source

    pub fn target(&self) -> Option<Object>

    Trait Implementations§

    Source§

    impl Clone for Binding

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +
    Source§

    impl Binding

    Source

    pub fn source(&self) -> Option<Object>

    Source

    pub fn target(&self) -> Option<Object>

    Trait Implementations§

    Source§

    impl Clone for Binding

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the object. Dropping the object will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Binding

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl HasParamSpec for Binding

    Source§

    type ParamSpec = ParamSpecObject

    Source§

    type SetValue = Binding

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Binding>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Binding

    Source§

    fn hash<H>(&self, state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Binding

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl HasParamSpec for Binding

    Source§

    type ParamSpec = ParamSpecObject

    Source§

    type SetValue = Binding

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Binding>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Binding

    Source§

    fn hash<H>(&self, state: &mut H)
    where H: Hasher,

    Hashes the memory address of this object.

    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Binding

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    Comparison for two GObjects.

    + Self: Sized,
    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Binding

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    Comparison for two GObjects.

    Compares the memory addresses of the provided objects.

    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl ParentClassIs for Binding

    Source§

    impl<OT: ObjectType> PartialEq<OT> for Binding

    Source§

    fn eq(&self, other: &OT) -> bool

    Equality for two GObjects.

    + Self: Sized,
    Restrict a value to a certain interval. Read more
    Source§

    impl ParentClassIs for Binding

    Source§

    impl<OT: ObjectType> PartialEq<OT> for Binding

    Source§

    fn eq(&self, other: &OT) -> bool

    Equality for two GObjects.

    Two GObjects are equal if their memory addresses are equal.

    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<OT: ObjectType> PartialOrd<OT> for Binding

    Source§

    fn partial_cmp(&self, other: &OT) -> Option<Ordering>

    Partial comparison for two GObjects.

    +and should not be overridden without very good reason.
    Source§

    impl<OT: ObjectType> PartialOrd<OT> for Binding

    Source§

    fn partial_cmp(&self, other: &OT) -> Option<Ordering>

    Partial comparison for two GObjects.

    Compares the memory addresses of the provided objects.

    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for Binding

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Binding

    Source§

    impl Send for Binding

    Source§

    impl Sync for Binding

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for Binding

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Binding

    Source§

    impl Send for Binding

    Source§

    impl Sync for Binding

    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> Cast for T
    where @@ -347,8 +445,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.BindingFlags.html b/git/docs/glib/struct.BindingFlags.html index 91fd86547ed4..da4b2b3091fb 100644 --- a/git/docs/glib/struct.BindingFlags.html +++ b/git/docs/glib/struct.BindingFlags.html @@ -71,81 +71,97 @@ -
    glib

    Struct BindingFlags

    Source
    pub struct BindingFlags(/* private fields */);
    Expand description

    Flags to be passed to ObjectExt::bind_property() or +

    glib

    Struct BindingFlags

    Source
    pub struct BindingFlags(/* private fields */);
    Expand description

    Flags to be passed to ObjectExt::bind_property() or +[ObjectExt::bind_property_full()][crate::prelude::ObjectExt::bind_property_full()].

    +

    This enumeration can be extended at later date. +Flags to be passed to ObjectExt::bind_property() or [ObjectExt::bind_property_full()][crate::prelude::ObjectExt::bind_property_full()].

    This enumeration can be extended at later date.

    -

    Implementations§

    Source§

    impl BindingFlags

    Source

    pub const DEFAULT: Self = _

    The default binding; if the source property +

    Implementations§

    Source§

    impl BindingFlags

    Source

    pub const DEFAULT: Self = _

    The default binding; if the source property +changes, the target property is updated with its value. +The default binding; if the source property changes, the target property is updated with its value.

    -
    Source

    pub const BIDIRECTIONAL: Self = _

    Bidirectional binding; if either the +

    Source

    pub const BIDIRECTIONAL: Self = _

    Bidirectional binding; if either the +property of the source or the property of the target changes, +the other is updated. +Bidirectional binding; if either the property of the source or the property of the target changes, the other is updated.

    -
    Source

    pub const SYNC_CREATE: Self = _

    Synchronize the values of the source and +

    Source

    pub const SYNC_CREATE: Self = _

    Synchronize the values of the source and +target properties when creating the binding; the direction of +the synchronization is always from the source to the target. +Synchronize the values of the source and target properties when creating the binding; the direction of the synchronization is always from the source to the target.

    -
    Source

    pub const INVERT_BOOLEAN: Self = _

    If the two properties being bound are +

    Source

    pub const INVERT_BOOLEAN: Self = _

    If the two properties being bound are +booleans, setting one to true will result in the other being +set to false and vice versa. This flag will only work for +boolean properties, and cannot be used when passing custom +transformation functions to [ObjectExt::bind_property_full()][crate::prelude::ObjectExt::bind_property_full()]. +If the two properties being bound are booleans, setting one to true will result in the other being set to false and vice versa. This flag will only work for boolean properties, and cannot be used when passing custom transformation functions to [ObjectExt::bind_property_full()][crate::prelude::ObjectExt::bind_property_full()].

    -
    Source§

    impl BindingFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    Source§

    impl BindingFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl BindingFlags

    Source

    pub const fn iter(&self) -> Iter<BindingFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl BindingFlags

    Source

    pub const fn iter(&self) -> Iter<BindingFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<BindingFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<BindingFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for BindingFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = BindingFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for BindingFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for BindingFlags

    Source§

    fn bitor(self, other: BindingFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = BindingFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for BindingFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for BindingFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = BindingFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for BindingFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for BindingFlags

    Source§

    fn clone(&self) -> BindingFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<BindingFlags> for BindingFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for BindingFlags

    Source§

    const FLAGS: &'static [Flag<BindingFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> BindingFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for BindingFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = BindingFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for BindingFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for BindingFlags

    Source§

    fn bitor(self, other: BindingFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = BindingFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for BindingFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for BindingFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = BindingFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for BindingFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for BindingFlags

    Source§

    fn clone(&self) -> BindingFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<BindingFlags> for BindingFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for BindingFlags

    Source§

    const FLAGS: &'static [Flag<BindingFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> BindingFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl From<BindingFlags> for Value

    Source§

    fn from(v: BindingFlags) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<BindingFlags> for BindingFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl<'a> FromValue<'a> for BindingFlags

    Source§

    type Checker = GenericValueTypeChecker<BindingFlags>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl HasParamSpec for BindingFlags

    Source§

    type ParamSpec = ParamSpecFlags

    Source§

    type SetValue = BindingFlags

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecFlagsBuilder<'_, BindingFlags>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for BindingFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl From<BindingFlags> for Value

    Source§

    fn from(v: BindingFlags) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<BindingFlags> for BindingFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl<'a> FromValue<'a> for BindingFlags

    Source§

    type Checker = GenericValueTypeChecker<BindingFlags>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl HasParamSpec for BindingFlags

    Source§

    type ParamSpec = ParamSpecFlags

    Source§

    type SetValue = BindingFlags

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecFlagsBuilder<'_, BindingFlags>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for BindingFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for BindingFlags

    Source§

    type Item = BindingFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<BindingFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for BindingFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = BindingFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for BindingFlags

    Source§

    fn eq(&self, other: &BindingFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for BindingFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl StaticType for BindingFlags

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Sub for BindingFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for BindingFlags

    Source§

    type Item = BindingFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<BindingFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for BindingFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = BindingFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for BindingFlags

    Source§

    fn eq(&self, other: &BindingFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for BindingFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl StaticType for BindingFlags

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Sub for BindingFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = BindingFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for BindingFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = BindingFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for BindingFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl ToValue for BindingFlags

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl UpperHex for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl ValueType for BindingFlags

    Source§

    type Type = BindingFlags

    Type to get the Type from. Read more
    Source§

    impl Copy for BindingFlags

    Source§

    impl Eq for BindingFlags

    Source§

    impl StructuralPartialEq for BindingFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl ToValue for BindingFlags

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl UpperHex for BindingFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl ValueType for BindingFlags

    Source§

    type Type = BindingFlags

    Type to get the Type from. Read more
    Source§

    impl Copy for BindingFlags

    Source§

    impl Eq for BindingFlags

    Source§

    impl StructuralPartialEq for BindingFlags

    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> CloneToUninit for T
    where @@ -160,8 +176,8 @@ T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

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

    Source§

    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.
    \ No newline at end of file diff --git a/git/docs/glib/struct.BindingGroup.html b/git/docs/glib/struct.BindingGroup.html index d8e890642dc1..435a7dcc8cba 100644 --- a/git/docs/glib/struct.BindingGroup.html +++ b/git/docs/glib/struct.BindingGroup.html @@ -71,7 +71,7 @@ -
    glib

    Struct BindingGroup

    Source
    pub struct BindingGroup { /* private fields */ }
    Available on crate feature v2_72 only.
    Expand description

    GBindingGroup can be used to bind multiple properties +

    glib

    Struct BindingGroup

    Source
    pub struct BindingGroup { /* private fields */ }
    Available on crate feature v2_72 only.
    Expand description

    GBindingGroup can be used to bind multiple properties from an object collectively.

    Use the various methods to bind properties from a single source object to multiple destination objects. Properties can be bound @@ -81,25 +81,49 @@

    §PropertiesThe source object used for binding properties.

    Readable | Writeable

    §Implements

    +

    ObjectExt +GBindingGroup can be used to bind multiple properties +from an object collectively.

    +

    Use the various methods to bind properties from a single source +object to multiple destination objects. Properties can be bound +bidirectionally and are connected when the source object is set +with [methodObject.set_source].

    +

    §Properties

    §source
    +

    The source object used for binding properties.

    +

    Readable | Writeable

    +

    §Implements

    ObjectExt

    GLib type: GObject with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl BindingGroup

    Source

    pub fn new() -> BindingGroup

    Creates a new BindingGroup.

    +

    Implementations§

    Source§

    impl BindingGroup

    Source

    pub fn new() -> BindingGroup

    Creates a new BindingGroup.

    §Returns
    -

    a new BindingGroup

    -
    Source

    pub fn source(&self) -> Option<Object>

    Gets the source object used for binding properties.

    +

    a new BindingGroup +Creates a new BindingGroup.

    §Returns
    +

    a new BindingGroup

    +
    Source

    pub fn source(&self) -> Option<Object>

    Gets the source object used for binding properties.

    +
    §Returns
    +

    a Object or None. +Gets the source object used for binding properties.

    +
    §Returns

    a Object or None.

    -
    Source

    pub fn set_source(&self, source: Option<&impl IsA<Object>>)

    Sets source as the source object used for creating property +

    Source

    pub fn set_source(&self, source: Option<&impl IsA<Object>>)

    Sets source as the source object used for creating property +bindings. If there is already a source object all bindings from it +will be removed.

    +

    Note that all properties that have been bound must exist on source.

    +
    §source
    +

    the source Object, +or None to clear it +Sets source as the source object used for creating property bindings. If there is already a source object all bindings from it will be removed.

    Note that all properties that have been bound must exist on source.

    -
    §source
    +
    §source

    the source Object, or None to clear it

    -
    Source

    pub fn connect_source_notify<F: Fn(&Self) + Send + Sync + 'static>( +

    Source

    pub fn connect_source_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, -) -> SignalHandlerId

    Source§

    impl BindingGroup

    Source

    pub fn bind<'a, O: ObjectType>( +) -> SignalHandlerId

    Source§

    impl BindingGroup

    Source

    pub fn bind<'a, O: ObjectType>( &'a self, source_property: &'a str, target: &'a O, @@ -116,27 +140,40 @@

    §target§target_property

    the property on target to bind

    §flags
    +

    the flags used to create the Binding +Creates a binding between source_property on the source object +and target_property on target. Whenever the source_property +is changed the target_property is updated using the same value. +The binding flag BindingFlags::SYNC_CREATE is automatically specified.

    +

    See ObjectExt::bind_property() for more information.

    +
    §source_property
    +

    the property on the source to bind

    +
    §target
    +

    the target Object

    +
    §target_property
    +

    the property on target to bind

    +
    §flags

    the flags used to create the Binding

    -

    Trait Implementations§

    Source§

    impl Clone for BindingGroup

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +

    Trait Implementations§

    Source§

    impl Clone for BindingGroup

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the object. Dropping the object will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BindingGroup

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for BindingGroup

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl HasParamSpec for BindingGroup

    Source§

    type ParamSpec = ParamSpecObject

    Source§

    type SetValue = BindingGroup

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, BindingGroup>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for BindingGroup

    Source§

    fn hash<H>(&self, state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for BindingGroup

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for BindingGroup

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl HasParamSpec for BindingGroup

    Source§

    type ParamSpec = ParamSpecObject

    Source§

    type SetValue = BindingGroup

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, BindingGroup>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for BindingGroup

    Source§

    fn hash<H>(&self, state: &mut H)
    where H: Hasher,

    Hashes the memory address of this object.

    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for BindingGroup

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    Comparison for two GObjects.

    + Self: Sized,
    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for BindingGroup

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    Comparison for two GObjects.

    Compares the memory addresses of the provided objects.

    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl ParentClassIs for BindingGroup

    Source§

    impl<OT: ObjectType> PartialEq<OT> for BindingGroup

    Source§

    fn eq(&self, other: &OT) -> bool

    Equality for two GObjects.

    + Self: Sized,
    Restrict a value to a certain interval. Read more
    Source§

    impl ParentClassIs for BindingGroup

    Source§

    impl<OT: ObjectType> PartialEq<OT> for BindingGroup

    Source§

    fn eq(&self, other: &OT) -> bool

    Equality for two GObjects.

    Two GObjects are equal if their memory addresses are equal.

    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<OT: ObjectType> PartialOrd<OT> for BindingGroup

    Source§

    fn partial_cmp(&self, other: &OT) -> Option<Ordering>

    Partial comparison for two GObjects.

    +and should not be overridden without very good reason.
    Source§

    impl<OT: ObjectType> PartialOrd<OT> for BindingGroup

    Source§

    fn partial_cmp(&self, other: &OT) -> Option<Ordering>

    Partial comparison for two GObjects.

    Compares the memory addresses of the provided objects.

    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for BindingGroup

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for BindingGroup

    Source§

    impl Send for BindingGroup

    Source§

    impl Sync for BindingGroup

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for BindingGroup

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for BindingGroup

    Source§

    impl Send for BindingGroup

    Source§

    impl Sync for BindingGroup

    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> Cast for T
    where @@ -294,8 +331,8 @@
    §flags
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.BindingGroupBuilder.html b/git/docs/glib/struct.BindingGroupBuilder.html index 6e60fd3a0a5f..96c044dd8c0d 100644 --- a/git/docs/glib/struct.BindingGroupBuilder.html +++ b/git/docs/glib/struct.BindingGroupBuilder.html @@ -71,23 +71,23 @@ -
    glib

    Struct BindingGroupBuilder

    Source
    pub struct BindingGroupBuilder<'a> { /* private fields */ }
    Available on crate feature v2_72 only.
    Expand description

    Builder for binding group bindings.

    -

    Implementations§

    Source§

    impl<'a> BindingGroupBuilder<'a>

    Source

    pub fn transform_from<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>( +
    glib

    Struct BindingGroupBuilder

    Source
    pub struct BindingGroupBuilder<'a> { /* private fields */ }
    Available on crate feature v2_72 only.
    Expand description

    Builder for binding group bindings.

    +

    Implementations§

    Source§

    impl<'a> BindingGroupBuilder<'a>

    Source

    pub fn transform_from<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>( self, func: F, ) -> Self

    Transform changed property values from the target object to the source object with the given closure.

    -
    Source

    pub fn transform_to<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>( +

    Source

    pub fn transform_to<F: Fn(&Binding, &Value) -> Option<Value> + Send + Sync + 'static>( self, func: F, ) -> Self

    Transform changed property values from the source object to the target object with the given closure.

    -
    Source

    pub fn flags(self, flags: BindingFlags) -> Self

    Bind the properties with the given flags.

    -
    Source

    pub fn bidirectional(self) -> Self

    Set the binding flags to BIDIRECTIONAL.

    -
    Source

    pub fn sync_create(self) -> Self

    Set the binding flags to SYNC_CREATE.

    -
    Source

    pub fn invert_boolean(self) -> Self

    Set the binding flags to INVERT_BOOLEAN.

    -
    Source

    pub fn try_build(self) -> Result<(), BoolError>

    Establish the property binding.

    +
    Source

    pub fn flags(self, flags: BindingFlags) -> Self

    Bind the properties with the given flags.

    +
    Source

    pub fn bidirectional(self) -> Self

    Set the binding flags to BIDIRECTIONAL.

    +
    Source

    pub fn sync_create(self) -> Self

    Set the binding flags to SYNC_CREATE.

    +
    Source

    pub fn invert_boolean(self) -> Self

    Set the binding flags to INVERT_BOOLEAN.

    +
    Source

    pub fn try_build(self) -> Result<(), BoolError>

    Establish the property binding.

    This fails if the provided properties do not exist.

    -
    Source

    pub fn build(self)

    Similar to try_build but panics instead of failing.

    -

    Trait Implementations§

    Source§

    impl<'a> Debug for BindingGroupBuilder<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for BindingGroupBuilder<'a>

    §

    impl<'a> !RefUnwindSafe for BindingGroupBuilder<'a>

    §

    impl<'a> !Send for BindingGroupBuilder<'a>

    §

    impl<'a> !Sync for BindingGroupBuilder<'a>

    §

    impl<'a> Unpin for BindingGroupBuilder<'a>

    §

    impl<'a> !UnwindSafe for BindingGroupBuilder<'a>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source

    pub fn build(self)

    Similar to try_build but panics instead of failing.

    +

    Trait Implementations§

    Source§

    impl<'a> Debug for BindingGroupBuilder<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for BindingGroupBuilder<'a>

    §

    impl<'a> !RefUnwindSafe for BindingGroupBuilder<'a>

    §

    impl<'a> !Send for BindingGroupBuilder<'a>

    §

    impl<'a> !Sync for BindingGroupBuilder<'a>

    §

    impl<'a> Unpin for BindingGroupBuilder<'a>

    §

    impl<'a> !UnwindSafe for BindingGroupBuilder<'a>

    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> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/git/docs/glib/struct.ByteArray.html b/git/docs/glib/struct.ByteArray.html index 37b9df179409..9263c782453b 100644 --- a/git/docs/glib/struct.ByteArray.html +++ b/git/docs/glib/struct.ByteArray.html @@ -1,4 +1,4 @@ -ByteArray in glib - Rust +ByteArray in glib - Rust -
    glib

    Struct ByteArray

    Source
    pub struct ByteArray { /* private fields */ }
    Expand description

    Contains the public fields of a GByteArray.

    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl ByteArray

    Source

    pub fn as_ptr(&self) -> *mut GByteArray

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GByteArray) -> &Self

    Borrows the underlying C value.

    +
    glib

    Struct ByteArray

    Source
    pub struct ByteArray { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl ByteArray

    Source

    pub fn as_ptr(&self) -> *mut GByteArray

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GByteArray) -> &Self

    Borrows the underlying C value.

    Methods from Deref<Target = [u8]>§

    Source

    pub fn as_str(&self) -> &str

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a UTF-8 str.

    Source

    pub fn as_bytes(&self) -> &[u8]

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a slice of u8 bytes.

    1.23.0 · Source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    @@ -1214,52 +1213,52 @@
    §ExamplesASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To lowercase the value in-place, use make_ascii_lowercase.

    -

    Trait Implementations§

    Source§

    impl AsRef<[u8]> for ByteArray

    Source§

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for ByteArray

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +

    Trait Implementations§

    Source§

    impl AsRef<[u8]> for ByteArray

    Source§

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for ByteArray

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ByteArray

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ByteArray

    Source§

    type Target = [u8]

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &[u8]

    Dereferences the value.
    Source§

    impl<'a, T: ?Sized + Borrow<[u8]> + 'a> From<&'a T> for ByteArray

    Source§

    fn from(value: &'a T) -> ByteArray

    Converts to this type from the input type.
    Source§

    impl From<ByteArray> for Value

    Source§

    fn from(s: ByteArray) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for ByteArray

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = ByteArray

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, ByteArray>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for ByteArray

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ByteArray

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ByteArray

    Source§

    type Target = [u8]

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &[u8]

    Dereferences the value.
    Source§

    impl<'a, T: ?Sized + Borrow<[u8]> + 'a> From<&'a T> for ByteArray

    Source§

    fn from(value: &'a T) -> ByteArray

    Converts to this type from the input type.
    Source§

    impl From<ByteArray> for Value

    Source§

    fn from(s: ByteArray) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for ByteArray

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = ByteArray

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, ByteArray>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for ByteArray

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a [u8]> for ByteArray

    Source§

    fn eq(&self, other: &&'a [u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a ByteArray> for [u8]

    Source§

    fn eq(&self, other: &&'a ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a ByteArray> for Vec<u8>

    Source§

    fn eq(&self, other: &&'a ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for &'a ByteArray

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for ByteArray

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<ByteArray> for &'a [u8]

    Source§

    fn eq(&self, other: &ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<ByteArray> for [u8]

    Source§

    fn eq(&self, other: &ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<ByteArray> for Vec<u8>

    Source§

    fn eq(&self, other: &ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for &'a ByteArray

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for ByteArray

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialEq for ByteArray

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialOrd<&'a [u8]> for ByteArray

    Source§

    fn partial_cmp(&self, other: &&'a [u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a [u8]> for ByteArray

    Source§

    fn eq(&self, other: &&'a [u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a ByteArray> for [u8]

    Source§

    fn eq(&self, other: &&'a ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a ByteArray> for Vec<u8>

    Source§

    fn eq(&self, other: &&'a ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for &'a ByteArray

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for ByteArray

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<ByteArray> for &'a [u8]

    Source§

    fn eq(&self, other: &ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<ByteArray> for [u8]

    Source§

    fn eq(&self, other: &ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<ByteArray> for Vec<u8>

    Source§

    fn eq(&self, other: &ByteArray) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for &'a ByteArray

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for ByteArray

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialEq for ByteArray

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialOrd<&'a [u8]> for ByteArray

    Source§

    fn partial_cmp(&self, other: &&'a [u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a ByteArray> for [u8]

    Source§

    fn partial_cmp(&self, other: &&'a ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a ByteArray> for [u8]

    Source§

    fn partial_cmp(&self, other: &&'a ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a ByteArray> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &&'a ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a ByteArray> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &&'a ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for &'a ByteArray

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for &'a ByteArray

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for ByteArray

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for ByteArray

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<ByteArray> for &'a [u8]

    Source§

    fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<ByteArray> for &'a [u8]

    Source§

    fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<ByteArray> for [u8]

    Source§

    fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<ByteArray> for [u8]

    Source§

    fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<ByteArray> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<ByteArray> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &ByteArray) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for &'a ByteArray

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for &'a ByteArray

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for ByteArray

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for ByteArray

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for ByteArray

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for ByteArray

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for ByteArray

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for ByteArray

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.Bytes.html b/git/docs/glib/struct.Bytes.html index b1c9022e1c72..5be8e8368973 100644 --- a/git/docs/glib/struct.Bytes.html +++ b/git/docs/glib/struct.Bytes.html @@ -71,7 +71,7 @@ -
    glib

    Struct Bytes

    Source
    pub struct Bytes { /* private fields */ }
    Expand description

    A shared immutable byte slice (the equivalent of Rc<[u8]>).

    +
    glib

    Struct Bytes

    Source
    pub struct Bytes { /* private fields */ }
    Expand description

    A shared immutable byte slice (the equivalent of Rc<[u8]>).

    From implementations that take references (e.g. &[u8]) copy the data. The from_static constructor avoids copying static data.

    @@ -84,38 +84,15 @@ let s = b"xyz"; let b = Bytes::from_static(s); assert_eq!(&s[..], b);
    -

    A simple reference counted data type representing an immutable sequence of -zero or more bytes from an unspecified origin.

    -

    The purpose of a GBytes is to keep the memory region that it holds -alive for as long as anyone holds a reference to the bytes. When -the last reference count is dropped, the memory is released. Multiple -unrelated callers can use byte data in the GBytes without coordinating -their activities, resting assured that the byte data will not change or -move while they hold a reference.

    -

    A GBytes can come from many different origins that may have -different procedures for freeing the memory region. Examples are -memory from malloc(), from memory slices, from a -GLib::MappedFile or memory from other allocators.

    -

    GBytes work well as keys in GLib::HashTable. Use -GLib::Bytes::equal() and GLib::Bytes::hash() as parameters to -GLib::HashTable::new() or GLib::HashTable::new_full(). -GBytes can also be used as keys in a GLib::Tree by passing the -GLib::Bytes::compare() function to GLib::Tree::new().

    -

    The data pointed to by this bytes must not be modified. For a mutable -array of bytes see ByteArray. Use -[unref_to_array()][Self::unref_to_array()] to create a mutable array for a GBytes -sequence. To create an immutable GBytes from a mutable -ByteArray, use the [ByteArray::free_to_bytes()][crate::ByteArray::free_to_bytes()] -function.

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl Bytes

    Source

    pub fn as_ptr(&self) -> *mut GBytes

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GBytes) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl Bytes

    Source

    pub fn from_static(data: &'static [u8]) -> Bytes

    Creates a view into static data without copying.

    -
    Source

    pub fn from_owned<T: AsRef<[u8]> + Send + 'static>(data: T) -> Bytes

    Takes ownership of data and creates a new Bytes without copying.

    -
    Source

    pub fn into_data(self) -> Slice<u8>

    Returns the underlying data of the Bytes.

    +

    Implementations§

    Source§

    impl Bytes

    Source

    pub fn as_ptr(&self) -> *mut GBytes

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GBytes) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl Bytes

    Source

    pub fn from_static(data: &'static [u8]) -> Bytes

    Creates a view into static data without copying.

    +
    Source

    pub fn from_owned<T: AsRef<[u8]> + Send + 'static>(data: T) -> Bytes

    Takes ownership of data and creates a new Bytes without copying.

    +
    Source

    pub fn into_data(self) -> Slice<u8>

    Returns the underlying data of the Bytes.

    If there is no other reference to self then this does not copy the data, otherwise it is copied into newly allocated heap memory.

    -
    Source

    pub fn from_bytes(bytes: &Self, range: impl RangeBounds<usize>) -> Self

    Creates a new Bytes that references the given range of bytes.

    +
    Source

    pub fn from_bytes(bytes: &Self, range: impl RangeBounds<usize>) -> Self

    Creates a new Bytes that references the given range of bytes.

    Methods from Deref<Target = [u8]>§

    Source

    pub fn as_str(&self) -> &str

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a UTF-8 str.

    Source

    pub fn as_bytes(&self) -> &[u8]

    🔬This is a nightly-only experimental API. (ascii_char)

    Views this slice of ASCII characters as a slice of u8 bytes.

    1.23.0 · Source

    pub fn is_ascii(&self) -> bool

    Checks if all bytes in this slice are within the ASCII range.

    @@ -1255,58 +1232,58 @@
    §ExamplesASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To lowercase the value in-place, use make_ascii_lowercase.

    -

    Trait Implementations§

    Source§

    impl AsRef<[u8]> for Bytes

    Source§

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for Bytes

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +

    Trait Implementations§

    Source§

    impl AsRef<[u8]> for Bytes

    Source§

    fn as_ref(&self) -> &[u8]

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for Bytes

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Bytes

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for Bytes

    Source§

    type Target = [u8]

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &[u8]

    Dereferences the value.
    Source§

    impl<'a, T: ?Sized + Borrow<[u8]> + 'a> From<&'a T> for Bytes

    Source§

    fn from(value: &'a T) -> Bytes

    Converts to this type from the input type.
    Source§

    impl From<Bytes> for Value

    Source§

    fn from(s: Bytes) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Bytes

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Bytes

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Bytes>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Bytes

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Bytes

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for Bytes

    Source§

    type Target = [u8]

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &[u8]

    Dereferences the value.
    Source§

    impl<'a, T: ?Sized + Borrow<[u8]> + 'a> From<&'a T> for Bytes

    Source§

    fn from(value: &'a T) -> Bytes

    Converts to this type from the input type.
    Source§

    impl From<Bytes> for Value

    Source§

    fn from(s: Bytes) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Bytes

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Bytes

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Bytes>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Bytes

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Bytes

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Bytes

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a [u8]> for Bytes

    Source§

    fn eq(&self, other: &&'a [u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a Bytes> for [u8]

    Source§

    fn eq(&self, other: &&'a Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a Bytes> for Vec<u8>

    Source§

    fn eq(&self, other: &&'a Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for &'a Bytes

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for Bytes

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Bytes> for &'a [u8]

    Source§

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Bytes> for [u8]

    Source§

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Bytes> for Vec<u8>

    Source§

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for &'a Bytes

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for Bytes

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialEq for Bytes

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialOrd<&'a [u8]> for Bytes

    Source§

    fn partial_cmp(&self, other: &&'a [u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a [u8]> for Bytes

    Source§

    fn eq(&self, other: &&'a [u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a Bytes> for [u8]

    Source§

    fn eq(&self, other: &&'a Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a Bytes> for Vec<u8>

    Source§

    fn eq(&self, other: &&'a Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for &'a Bytes

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<[u8]> for Bytes

    Source§

    fn eq(&self, other: &[u8]) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Bytes> for &'a [u8]

    Source§

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Bytes> for [u8]

    Source§

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Bytes> for Vec<u8>

    Source§

    fn eq(&self, other: &Bytes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for &'a Bytes

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Vec<u8>> for Bytes

    Source§

    fn eq(&self, other: &Vec<u8>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialEq for Bytes

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialOrd<&'a [u8]> for Bytes

    Source§

    fn partial_cmp(&self, other: &&'a [u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a Bytes> for [u8]

    Source§

    fn partial_cmp(&self, other: &&'a Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a Bytes> for [u8]

    Source§

    fn partial_cmp(&self, other: &&'a Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a Bytes> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &&'a Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<&'a Bytes> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &&'a Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for &'a Bytes

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for &'a Bytes

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for Bytes

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<[u8]> for Bytes

    Source§

    fn partial_cmp(&self, other: &[u8]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Bytes> for &'a [u8]

    Source§

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Bytes> for &'a [u8]

    Source§

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Bytes> for [u8]

    Source§

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Bytes> for [u8]

    Source§

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Bytes> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Bytes> for Vec<u8>

    Source§

    fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for &'a Bytes

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for &'a Bytes

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for Bytes

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl<'a, 'b> PartialOrd<Vec<u8>> for Bytes

    Source§

    fn partial_cmp(&self, other: &Vec<u8>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl PartialOrd for Bytes

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the +the >= operator. Read more
    Source§

    impl PartialOrd for Bytes

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for Bytes

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Bytes

    Source§

    impl Send for Bytes

    Source§

    impl Sync for Bytes

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for Bytes

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Bytes

    Source§

    impl Send for Bytes

    Source§

    impl Sync for Bytes

    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> CloneToUninit for T
    where @@ -1341,8 +1318,8 @@
    §ExamplesDeref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.Checksum.html b/git/docs/glib/struct.Checksum.html index c2ed986b8afb..3a0405a86046 100644 --- a/git/docs/glib/struct.Checksum.html +++ b/git/docs/glib/struct.Checksum.html @@ -1,4 +1,4 @@ -Checksum in glib - Rust +Checksum in glib - Rust -
    glib

    Struct Checksum

    Source
    pub struct Checksum { /* private fields */ }
    Expand description

    GLib provides a generic API for computing checksums (or ‘digests’) -for a sequence of arbitrary bytes, using various hashing algorithms -like MD5, SHA-1 and SHA-256. Checksums are commonly used in various -environments and specifications.

    -

    To create a new GChecksum, use GLib::Checksum::new(). To free -a GChecksum, use GLib::Checksum::free().

    -

    GLib supports incremental checksums using the GChecksum data -structure, by calling update() as long as there’s data -available and then using string() or -digest() to compute the checksum and return it -either as a string in hexadecimal form, or as a raw sequence of bytes. To -compute the checksum for binary blobs and nul-terminated strings in -one go, use the convenience functions compute_checksum_for_data() -and compute_checksum_for_string(), respectively.

    -

    GLib type: Boxed type with copy-on-clone semantics.

    -

    Implementations§

    Source§

    impl Checksum

    Source

    pub fn as_ptr(&self) -> *mut GChecksum

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GChecksum) -> &Self

    Borrows the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GChecksum) -> &mut Self

    Borrows the underlying C value mutably.

    -
    Source§

    impl Checksum

    Source

    pub fn new(checksum_type: ChecksumType) -> Option<Checksum>

    Creates a new #GChecksum, using the checksum algorithm @checksum_type. -If the @checksum_type is not known, None is returned. -A #GChecksum can be used to compute the checksum, or digest, of an -arbitrary binary blob, using different hashing algorithms.

    -

    A #GChecksum works by feeding a binary blob through g_checksum_update() -until there is data to be checked; the digest can then be extracted -using g_checksum_get_string(), which will return the checksum as a -hexadecimal string; or g_checksum_get_digest(), which will return a -vector of raw bytes. Once either g_checksum_get_string() or -g_checksum_get_digest() have been called on a #GChecksum, the checksum -will be closed and it won’t be possible to call g_checksum_update() -on it anymore.

    -
    §checksum_type
    -

    the desired type of checksum

    -
    §Returns
    -

    the newly created #GChecksum, or None. -Use g_checksum_free() to free the memory allocated by it.

    -
    Source

    pub fn reset(&mut self)

    Resets the state of the @self back to its initial state.

    -
    Source

    pub fn update(&mut self, data: &[u8])

    Feeds @data into an existing #GChecksum. The checksum must still be -open, that is g_checksum_get_string() or g_checksum_get_digest() must -not have been called on @self.

    -
    §data
    -

    buffer used to compute the checksum

    -
    Source

    pub fn type_get_length(checksum_type: ChecksumType) -> isize

    Gets the length in bytes of digests of type @checksum_type

    -
    §checksum_type
    -

    a #GChecksumType

    -
    §Returns
    -

    the checksum length, or -1 if @checksum_type is -not supported.

    -
    Source§

    impl Checksum

    Source

    pub fn digest(self) -> Vec<u8>

    Gets the digest from @self as a raw binary vector and places it -into @buffer. The size of the digest depends on the type of checksum.

    -

    Once this function has been called, the #GChecksum is closed and can -no longer be updated with g_checksum_update().

    -
    §buffer
    -

    output buffer

    -
    Source

    pub fn string(self) -> Option<String>

    Gets the digest as a hexadecimal string.

    -

    Once this function has been called the #GChecksum can no longer be -updated with g_checksum_update().

    -

    The hexadecimal characters will be lower case.

    -
    §Returns
    -

    the hexadecimal representation of the checksum. The -returned string is owned by the checksum and should not be modified -or freed.

    -

    Trait Implementations§

    Source§

    impl Clone for Checksum

    Source§

    fn clone(&self) -> Self

    Copies the boxed type with the type-specific copy function.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Checksum

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Checksum> for Value

    Source§

    fn from(o: Checksum) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Checksum

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Checksum

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Checksum>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Checksum

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +
    glib

    Struct Checksum

    Source
    pub struct Checksum { /* private fields */ }
    Expand description

    GLib type: Boxed type with copy-on-clone semantics.

    +

    Implementations§

    Source§

    impl Checksum

    Source

    pub fn as_ptr(&self) -> *mut GChecksum

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GChecksum) -> &Self

    Borrows the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GChecksum) -> &mut Self

    Borrows the underlying C value mutably.

    +
    Source§

    impl Checksum

    Source

    pub fn new(checksum_type: ChecksumType) -> Option<Checksum>

    Source

    pub fn reset(&mut self)

    Source

    pub fn update(&mut self, data: &[u8])

    Source

    pub fn type_get_length(checksum_type: ChecksumType) -> isize

    Source§

    impl Checksum

    Source

    pub fn digest(self) -> Vec<u8>

    Source

    pub fn string(self) -> Option<String>

    Trait Implementations§

    Source§

    impl Clone for Checksum

    Source§

    fn clone(&self) -> Self

    Copies the boxed type with the type-specific copy function.

    +
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Checksum

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Checksum> for Value

    Source§

    fn from(o: Checksum) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Checksum

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Checksum

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Checksum>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Checksum

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Checksum

    Source§

    fn cmp(&self, other: &Checksum) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Checksum

    Source§

    fn cmp(&self, other: &Checksum) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Checksum

    Source§

    fn eq(&self, other: &Checksum) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Checksum

    Source§

    fn partial_cmp(&self, other: &Checksum) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Checksum

    Source§

    fn eq(&self, other: &Checksum) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Checksum

    Source§

    fn partial_cmp(&self, other: &Checksum) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for Checksum

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Checksum

    Source§

    impl Send for Checksum

    Source§

    impl StructuralPartialEq for Checksum

    Source§

    impl Sync for Checksum

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for Checksum

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Checksum

    Source§

    impl Send for Checksum

    Source§

    impl StructuralPartialEq for Checksum

    Source§

    impl Sync for Checksum

    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> CloneToUninit for T
    where @@ -175,8 +118,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.Date.html b/git/docs/glib/struct.Date.html index 4564d4ab2738..ac7341c1bcb0 100644 --- a/git/docs/glib/struct.Date.html +++ b/git/docs/glib/struct.Date.html @@ -131,8 +131,8 @@ T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

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

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/glib/struct.DateTime.html b/git/docs/glib/struct.DateTime.html index 866ce31ca73d..17e5f746b6f7 100644 --- a/git/docs/glib/struct.DateTime.html +++ b/git/docs/glib/struct.DateTime.html @@ -1,4 +1,4 @@ -DateTime in glib - Rust +DateTime in glib - Rust -
    glib

    Struct DateTime

    Source
    pub struct DateTime { /* private fields */ }
    Expand description

    GDateTime is a structure that combines a Gregorian date and time -into a single structure.

    -

    GDateTime provides many conversion and methods to manipulate dates and times. -Time precision is provided down to microseconds and the time can range -(proleptically) from 0001-01-01 00:00:00 to 9999-12-31 23:59:59.999999. -GDateTime follows POSIX time in the sense that it is oblivious to leap -seconds.

    -

    GDateTime is an immutable object; once it has been created it cannot -be modified further. All modifiers will create a new GDateTime. -Nearly all such functions can fail due to the date or time going out -of range, in which case None will be returned.

    -

    GDateTime is reference counted: the reference count is increased by calling -GLib::DateTime::ref() and decreased by calling GLib::DateTime::unref(). -When the reference count drops to 0, the resources allocated by the GDateTime -structure are released.

    -

    Many parts of the API may produce non-obvious results. As an -example, adding two months to January 31st will yield March 31st -whereas adding one month and then one month again will yield either -March 28th or March 29th. Also note that adding 24 hours is not -always the same as adding one day (since days containing daylight -savings time transitions are either 23 or 25 hours in length).

    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl DateTime

    Source

    pub fn as_ptr(&self) -> *mut GDateTime

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GDateTime) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl DateTime

    Source

    pub fn new( +
    glib

    Struct DateTime

    Source
    pub struct DateTime { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl DateTime

    Source

    pub fn as_ptr(&self) -> *mut GDateTime

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GDateTime) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl DateTime

    Source

    pub fn new( tz: &TimeZone, year: i32, month: i32, @@ -103,223 +82,24 @@ hour: i32, minute: i32, seconds: f64, -) -> Result<DateTime, BoolError>

    Creates a new #GDateTime corresponding to the given date and time in -the time zone @tz.

    -

    The @year must be between 1 and 9999, @month between 1 and 12 and @day -between 1 and 28, 29, 30 or 31 depending on the month and the year.

    -

    @hour must be between 0 and 23 and @minute must be between 0 and 59.

    -

    @seconds must be at least 0.0 and must be strictly less than 60.0. -It will be rounded down to the nearest microsecond.

    -

    If the given time is not representable in the given time zone (for -example, 02:30 on March 14th 2010 in Toronto, due to daylight savings -time) then the time will be rounded up to the nearest existing time -(in this case, 03:00). If this matters to you then you should verify -the return value for containing the same as the numbers you gave.

    -

    In the case that the given time is ambiguous in the given time zone -(for example, 01:30 on November 7th 2010 in Toronto, due to daylight -savings time) then the time falling within standard (ie: -non-daylight) time is taken.

    -

    It not considered a programmer error for the values to this function -to be out of range, but in the case that they are, the function will -return None.

    -

    You should release the return value by calling g_date_time_unref() -when you are done with it.

    -
    §tz
    -

    a #GTimeZone

    -
    §year
    -

    the year component of the date

    -
    §month
    -

    the month component of the date

    -
    §day
    -

    the day component of the date

    -
    §hour
    -

    the hour component of the date

    -
    §minute
    -

    the minute component of the date

    -
    §seconds
    -

    the number of seconds past the minute

    -
    §Returns
    -

    a new #GDateTime, or None

    -
    Source

    pub fn from_iso8601( +) -> Result<DateTime, BoolError>

    Source

    pub fn from_iso8601( text: &str, default_tz: Option<&TimeZone>, -) -> Result<DateTime, BoolError>

    Creates a #GDateTime corresponding to the given -ISO 8601 formatted string -@text. ISO 8601 strings of the form <date><sep><time><tz> are supported, with -some extensions from RFC 3339 as -mentioned below.

    -

    Note that as #GDateTime “is oblivious to leap seconds”, leap seconds information -in an ISO-8601 string will be ignored, so a 23:59:60 time would be parsed as -23:59:59.

    -

    <sep> is the separator and can be either ‘T’, ‘t’ or ’ ’. The latter two -separators are an extension from -RFC 3339.

    -

    <date> is in the form:

    -
      -
    • YYYY-MM-DD - Year/month/day, e.g. 2016-08-24.
    • -
    • YYYYMMDD - Same as above without dividers.
    • -
    • YYYY-DDD - Ordinal day where DDD is from 001 to 366, e.g. 2016-237.
    • -
    • YYYYDDD - Same as above without dividers.
    • -
    • YYYY-Www-D - Week day where ww is from 01 to 52 and D from 1-7, -e.g. 2016-W34-3.
    • -
    • YYYYWwwD - Same as above without dividers.
    • -
    -

    <time> is in the form:

    -
      -
    • hh:mm:ss(.sss) - Hours, minutes, seconds (subseconds), e.g. 22:10:42.123.
    • -
    • hhmmss(.sss) - Same as above without dividers.
    • -
    -

    <tz> is an optional timezone suffix of the form:

    -
      -
    • Z - UTC.
    • -
    • +hh:mm or -hh:mm - Offset from UTC in hours and minutes, e.g. +12:00.
    • -
    • +hh or -hh - Offset from UTC in hours, e.g. +12.
    • -
    -

    If the timezone is not provided in @text it must be provided in @default_tz -(this field is otherwise ignored).

    -

    This call can fail (returning None) if @text is not a valid ISO 8601 -formatted string.

    -

    You should release the return value by calling g_date_time_unref() -when you are done with it.

    -
    §text
    -

    an ISO 8601 formatted time string.

    -
    §default_tz
    -

    a #GTimeZone to use if the text doesn’t contain a -timezone, or None.

    -
    §Returns
    -

    a new #GDateTime, or None

    -
    Source

    pub fn from_unix_local(t: i64) -> Result<DateTime, BoolError>

    Creates a #GDateTime corresponding to the given Unix time @t in the -local time zone.

    -

    Unix time is the number of seconds that have elapsed since 1970-01-01 -00:00:00 UTC, regardless of the local time offset.

    -

    This call can fail (returning None) if @t represents a time outside -of the supported range of #GDateTime.

    -

    You should release the return value by calling g_date_time_unref() -when you are done with it.

    -
    §t
    -

    the Unix time

    -
    §Returns
    -

    a new #GDateTime, or None

    -
    Source

    pub fn from_unix_local_usec(usecs: i64) -> Result<DateTime, BoolError>

    Available on crate feature v2_80 only.

    Creates a DateTime corresponding to the given Unix time @t in the -local time zone.

    -

    Unix time is the number of microseconds that have elapsed since 1970-01-01 -00:00:00 UTC, regardless of the local time offset.

    -

    This call can fail (returning NULL) if @t represents a time outside -of the supported range of #GDateTime.

    -

    You should release the return value by calling GLib::DateTime::unref() -when you are done with it.

    -
    §usecs
    -

    the Unix time in microseconds

    -
    §Returns
    -

    a new DateTime, or NULL

    -
    Source

    pub fn from_unix_utc(t: i64) -> Result<DateTime, BoolError>

    Creates a #GDateTime corresponding to the given Unix time @t in UTC.

    -

    Unix time is the number of seconds that have elapsed since 1970-01-01 -00:00:00 UTC.

    -

    This call can fail (returning None) if @t represents a time outside -of the supported range of #GDateTime.

    -

    You should release the return value by calling g_date_time_unref() -when you are done with it.

    -
    §t
    -

    the Unix time

    -
    §Returns
    -

    a new #GDateTime, or None

    -
    Source

    pub fn from_unix_utc_usec(usecs: i64) -> Result<DateTime, BoolError>

    Available on crate feature v2_80 only.

    Creates a DateTime corresponding to the given Unix time @t in UTC.

    -

    Unix time is the number of microseconds that have elapsed since 1970-01-01 -00:00:00 UTC.

    -

    This call can fail (returning NULL) if @t represents a time outside -of the supported range of #GDateTime.

    -

    You should release the return value by calling GLib::DateTime::unref() -when you are done with it.

    -
    §usecs
    -

    the Unix time in microseconds

    -
    §Returns
    -

    a new DateTime, or NULL

    -
    Source

    pub fn from_local( +) -> Result<DateTime, BoolError>

    Source

    pub fn from_unix_local(t: i64) -> Result<DateTime, BoolError>

    Source

    pub fn from_unix_local_usec(usecs: i64) -> Result<DateTime, BoolError>

    Available on crate feature v2_80 only.
    Source

    pub fn from_unix_utc(t: i64) -> Result<DateTime, BoolError>

    Source

    pub fn from_unix_utc_usec(usecs: i64) -> Result<DateTime, BoolError>

    Available on crate feature v2_80 only.
    Source

    pub fn from_local( year: i32, month: i32, day: i32, hour: i32, minute: i32, seconds: f64, -) -> Result<DateTime, BoolError>

    Creates a new #GDateTime corresponding to the given date and time in -the local time zone.

    -

    This call is equivalent to calling g_date_time_new() with the time -zone returned by g_time_zone_new_local().

    -
    §year
    -

    the year component of the date

    -
    §month
    -

    the month component of the date

    -
    §day
    -

    the day component of the date

    -
    §hour
    -

    the hour component of the date

    -
    §minute
    -

    the minute component of the date

    -
    §seconds
    -

    the number of seconds past the minute

    -
    §Returns
    -

    a #GDateTime, or None

    -
    Source

    pub fn now(tz: &TimeZone) -> Result<DateTime, BoolError>

    Creates a #GDateTime corresponding to this exact instant in the given -time zone @tz. The time is as accurate as the system allows, to a -maximum accuracy of 1 microsecond.

    -

    This function will always succeed unless GLib is still being used after the -year 9999.

    -

    You should release the return value by calling g_date_time_unref() -when you are done with it.

    -
    §tz
    -

    a #GTimeZone

    -
    §Returns
    -

    a new #GDateTime, or None

    -
    Source

    pub fn now_local() -> Result<DateTime, BoolError>

    Creates a #GDateTime corresponding to this exact instant in the local -time zone.

    -

    This is equivalent to calling g_date_time_new_now() with the time -zone returned by g_time_zone_new_local().

    -
    §Returns
    -

    a new #GDateTime, or None

    -
    Source

    pub fn now_utc() -> Result<DateTime, BoolError>

    Creates a #GDateTime corresponding to this exact instant in UTC.

    -

    This is equivalent to calling g_date_time_new_now() with the time -zone returned by g_time_zone_new_utc().

    -
    §Returns
    -

    a new #GDateTime, or None

    -
    Source

    pub fn from_utc( +) -> Result<DateTime, BoolError>

    Source

    pub fn now(tz: &TimeZone) -> Result<DateTime, BoolError>

    Source

    pub fn now_local() -> Result<DateTime, BoolError>

    Source

    pub fn now_utc() -> Result<DateTime, BoolError>

    Source

    pub fn from_utc( year: i32, month: i32, day: i32, hour: i32, minute: i32, seconds: f64, -) -> Result<DateTime, BoolError>

    Creates a new #GDateTime corresponding to the given date and time in -UTC.

    -

    This call is equivalent to calling g_date_time_new() with the time -zone returned by g_time_zone_new_utc().

    -
    §year
    -

    the year component of the date

    -
    §month
    -

    the month component of the date

    -
    §day
    -

    the day component of the date

    -
    §hour
    -

    the hour component of the date

    -
    §minute
    -

    the minute component of the date

    -
    §seconds
    -

    the number of seconds past the minute

    -
    §Returns
    -

    a #GDateTime, or None

    -
    Source

    pub fn add(&self, timespan: TimeSpan) -> Result<DateTime, BoolError>

    Creates a copy of @self and adds the specified timespan to the copy.

    -
    §timespan
    -

    a #GTimeSpan

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_days(&self, days: i32) -> Result<DateTime, BoolError>

    Creates a copy of @self and adds the specified number of days to the -copy. Add negative values to subtract days.

    -
    §days
    -

    the number of days

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_full( +) -> Result<DateTime, BoolError>

    Source

    pub fn add(&self, timespan: TimeSpan) -> Result<DateTime, BoolError>

    Source

    pub fn add_days(&self, days: i32) -> Result<DateTime, BoolError>

    Source

    pub fn add_full( &self, years: i32, months: i32, @@ -327,371 +107,19 @@

    §Returns
    hours: i32, minutes: i32, seconds: f64, -) -> Result<DateTime, BoolError>

    Creates a new #GDateTime adding the specified values to the current date and -time in @self. Add negative values to subtract.

    -
    §years
    -

    the number of years to add

    -
    §months
    -

    the number of months to add

    -
    §days
    -

    the number of days to add

    -
    §hours
    -

    the number of hours to add

    -
    §minutes
    -

    the number of minutes to add

    -
    §seconds
    -

    the number of seconds to add

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_hours(&self, hours: i32) -> Result<DateTime, BoolError>

    Creates a copy of @self and adds the specified number of hours. -Add negative values to subtract hours.

    -
    §hours
    -

    the number of hours to add

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_minutes(&self, minutes: i32) -> Result<DateTime, BoolError>

    Creates a copy of @self adding the specified number of minutes. -Add negative values to subtract minutes.

    -
    §minutes
    -

    the number of minutes to add

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_months(&self, months: i32) -> Result<DateTime, BoolError>

    Creates a copy of @self and adds the specified number of months to the -copy. Add negative values to subtract months.

    -

    The day of the month of the resulting #GDateTime is clamped to the number -of days in the updated calendar month. For example, if adding 1 month to -31st January 2018, the result would be 28th February 2018. In 2020 (a leap -year), the result would be 29th February.

    -
    §months
    -

    the number of months

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_seconds(&self, seconds: f64) -> Result<DateTime, BoolError>

    Creates a copy of @self and adds the specified number of seconds. -Add negative values to subtract seconds.

    -
    §seconds
    -

    the number of seconds to add

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_weeks(&self, weeks: i32) -> Result<DateTime, BoolError>

    Creates a copy of @self and adds the specified number of weeks to the -copy. Add negative values to subtract weeks.

    -
    §weeks
    -

    the number of weeks

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn add_years(&self, years: i32) -> Result<DateTime, BoolError>

    Creates a copy of @self and adds the specified number of years to the -copy. Add negative values to subtract years.

    -

    As with g_date_time_add_months(), if the resulting date would be 29th -February on a non-leap year, the day will be clamped to 28th February.

    -
    §years
    -

    the number of years

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn difference(&self, begin: &DateTime) -> TimeSpan

    Calculates the difference in time between @self and @begin. The -#GTimeSpan that is returned is effectively @self - @begin (ie: -positive if the first parameter is larger).

    -
    §begin
    -

    a #GDateTime

    -
    §Returns
    -

    the difference between the two #GDateTime, as a time -span expressed in microseconds.

    -
    Source

    pub fn format(&self, format: &str) -> Result<GString, BoolError>

    Creates a newly allocated string representing the requested @format.

    -

    The format strings understood by this function are a subset of the -strftime() format language as specified by C99. The D, U and W -conversions are not supported, nor is the E modifier. The GNU -extensions k, l, s and P are supported, however, as are the -0, _ and - modifiers. The Python extension f is also supported.

    -

    In contrast to strftime(), this function always produces a UTF-8 -string, regardless of the current locale. Note that the rendering of -many formats is locale-dependent and may not match the strftime() -output exactly.

    -

    The following format specifiers are supported:

    -
      -
    • a: the abbreviated weekday name according to the current locale
    • -
    • A: the full weekday name according to the current locale
    • -
    • b: the abbreviated month name according to the current locale
    • -
    • B: the full month name according to the current locale
    • -
    • c: the preferred date and time representation for the current locale
    • -
    • C: the century number (year/100) as a 2-digit integer (00-99)
    • -
    • d: the day of the month as a decimal number (range 01 to 31)
    • -
    • e: the day of the month as a decimal number (range 1 to 31); -single digits are preceded by a figure space (U+2007)
    • -
    • F: equivalent to Y`-`m`-`d (the ISO 8601 date format)
    • -
    • g: the last two digits of the ISO 8601 week-based year as a -decimal number (00-99). This works well with V and u.
    • -
    • G: the ISO 8601 week-based year as a decimal number. This works -well with V and u.
    • -
    • h: equivalent to b
    • -
    • H: the hour as a decimal number using a 24-hour clock (range 00 to 23)
    • -
    • I: the hour as a decimal number using a 12-hour clock (range 01 to 12)
    • -
    • j: the day of the year as a decimal number (range 001 to 366)
    • -
    • k: the hour (24-hour clock) as a decimal number (range 0 to 23); -single digits are preceded by a figure space (U+2007)
    • -
    • l: the hour (12-hour clock) as a decimal number (range 1 to 12); -single digits are preceded by a figure space (U+2007)
    • -
    • m: the month as a decimal number (range 01 to 12)
    • -
    • M: the minute as a decimal number (range 00 to 59)
    • -
    • f: the microsecond as a decimal number (range 000000 to 999999)
    • -
    • p: either ‘AM’ or ‘PM’ according to the given time value, or the -corresponding strings for the current locale. Noon is treated as -‘PM’ and midnight as ‘AM’. Use of this format specifier is discouraged, as -many locales have no concept of AM/PM formatting. Use c or X instead.
    • -
    • P: like p but lowercase: ‘am’ or ‘pm’ or a corresponding string for -the current locale. Use of this format specifier is discouraged, as -many locales have no concept of AM/PM formatting. Use c or X instead.
    • -
    • r: the time in a.m. or p.m. notation. Use of this format specifier is -discouraged, as many locales have no concept of AM/PM formatting. Use c -or X instead.
    • -
    • R: the time in 24-hour notation (H`:`M)
    • -
    • s: the number of seconds since the Epoch, that is, since 1970-01-01 -00:00:00 UTC
    • -
    • S: the second as a decimal number (range 00 to 60)
    • -
    • t: a tab character
    • -
    • T: the time in 24-hour notation with seconds (H`:`M`:`S)
    • -
    • u: the ISO 8601 standard day of the week as a decimal, range 1 to 7, -Monday being 1. This works well with G and V.
    • -
    • V: the ISO 8601 standard week number of the current year as a decimal -number, range 01 to 53, where week 1 is the first week that has at -least 4 days in the new year. See g_date_time_get_week_of_year(). -This works well with G and u.
    • -
    • w: the day of the week as a decimal, range 0 to 6, Sunday being 0. -This is not the ISO 8601 standard format — use u instead.
    • -
    • x: the preferred date representation for the current locale without -the time
    • -
    • X: the preferred time representation for the current locale without -the date
    • -
    • y: the year as a decimal number without the century
    • -
    • Y: the year as a decimal number including the century
    • -
    • z: the time zone as an offset from UTC (+hhmm)
    • -
    • %:z: the time zone as an offset from UTC (+hh:mm). -This is a gnulib strftime() extension. Since: 2.38
    • -
    • %::z: the time zone as an offset from UTC (+hh:mm:ss). This is a -gnulib strftime() extension. Since: 2.38
    • -
    • %:::z: the time zone as an offset from UTC, with : to necessary -precision (e.g., -04, +05:30). This is a gnulib strftime() extension. Since: 2.38
    • -
    • Z: the time zone or name or abbreviation
    • -
    • %%: a literal % character
    • -
    -

    Some conversion specifications can be modified by preceding the -conversion specifier by one or more modifier characters.

    -

    The following modifiers are supported for many of the numeric -conversions:

    -
      -
    • O: Use alternative numeric symbols, if the current locale supports those.
    • -
    • _: Pad a numeric result with spaces. This overrides the default padding -for the specifier.
    • -
    • -: Do not pad a numeric result. This overrides the default padding -for the specifier.
    • -
    • 0: Pad a numeric result with zeros. This overrides the default padding -for the specifier.
    • -
    -

    The following modifiers are supported for many of the alphabetic conversions:

    -
      -
    • ^: Use upper case if possible. This is a gnulib strftime() extension. -Since: 2.80
    • -
    • #: Use opposite case if possible. This is a gnulib strftime() -extension. Since: 2.80
    • -
    -

    Additionally, when O is used with B, b, or h, it produces the alternative -form of a month name. The alternative form should be used when the month -name is used without a day number (e.g., standalone). It is required in -some languages (Baltic, Slavic, Greek, and more) due to their grammatical -rules. For other languages there is no difference. OB is a GNU and BSD -strftime() extension expected to be added to the future POSIX specification, -Ob and Oh are GNU strftime() extensions. Since: 2.56

    -

    Since GLib 2.80, when E is used with c, C, x, X, y or Y, -the date is formatted using an alternate era representation specific to the -locale. This is typically used for the Thai solar calendar or Japanese era -names, for example.

    -
      -
    • Ec: the preferred date and time representation for the current locale, -using the alternate era representation
    • -
    • EC: the name of the era
    • -
    • Ex: the preferred date representation for the current locale without -the time, using the alternate era representation
    • -
    • EX: the preferred time representation for the current locale without -the date, using the alternate era representation
    • -
    • Ey: the year since the beginning of the era denoted by the EC -specifier
    • -
    • EY: the full alternative year representation
    • -
    -
    §format
    -

    a valid UTF-8 string, containing the format for the -#GDateTime

    -
    §Returns
    -

    a newly allocated string formatted to -the requested format or None in the case that there was an error (such -as a format specifier not being supported in the current locale). The -string should be freed with g_free().

    -
    Source

    pub fn format_iso8601(&self) -> Result<GString, BoolError>

    Available on crate feature v2_62 only.

    Format @self in ISO 8601 format, -including the date, time and time zone, and return that as a UTF-8 encoded -string.

    -

    Since GLib 2.66, this will output to sub-second precision if needed.

    -
    §Returns
    -

    a newly allocated string formatted in -ISO 8601 format or None in the case that there was an error. The string -should be freed with g_free().

    -
    Source

    pub fn day_of_month(&self) -> i32

    Retrieves the day of the month represented by @self in the gregorian -calendar.

    -
    §Returns
    -

    the day of the month

    -
    Source

    pub fn day_of_week(&self) -> i32

    Retrieves the ISO 8601 day of the week on which @self falls (1 is -Monday, 2 is Tuesday… 7 is Sunday).

    -
    §Returns
    -

    the day of the week

    -
    Source

    pub fn day_of_year(&self) -> i32

    Retrieves the day of the year represented by @self in the Gregorian -calendar.

    -
    §Returns
    -

    the day of the year

    -
    Source

    pub fn hour(&self) -> i32

    Retrieves the hour of the day represented by @self

    -
    §Returns
    -

    the hour of the day

    -
    Source

    pub fn microsecond(&self) -> i32

    Retrieves the microsecond of the date represented by @self

    -
    §Returns
    -

    the microsecond of the second

    -
    Source

    pub fn minute(&self) -> i32

    Retrieves the minute of the hour represented by @self

    -
    §Returns
    -

    the minute of the hour

    -
    Source

    pub fn month(&self) -> i32

    Retrieves the month of the year represented by @self in the Gregorian -calendar.

    -
    §Returns
    -

    the month represented by @self

    -
    Source

    pub fn second(&self) -> i32

    Retrieves the second of the minute represented by @self

    -
    §Returns
    -

    the second represented by @self

    -
    Source

    pub fn seconds(&self) -> f64

    Retrieves the number of seconds since the start of the last minute, -including the fractional part.

    -
    §Returns
    -

    the number of seconds

    -
    Source

    pub fn timezone(&self) -> TimeZone

    Available on crate feature v2_58 only.

    Get the time zone for this @self.

    -
    §Returns
    -

    the time zone

    -
    Source

    pub fn timezone_abbreviation(&self) -> GString

    Determines the time zone abbreviation to be used at the time and in -the time zone of @self.

    -

    For example, in Toronto this is currently “EST” during the winter -months and “EDT” during the summer months when daylight savings -time is in effect.

    -
    §Returns
    -

    the time zone abbreviation. The returned -string is owned by the #GDateTime and it should not be -modified or freed

    -
    Source

    pub fn utc_offset(&self) -> TimeSpan

    Determines the offset to UTC in effect at the time and in the time -zone of @self.

    -

    The offset is the number of microseconds that you add to UTC time to -arrive at local time for the time zone (ie: negative numbers for time -zones west of GMT, positive numbers for east).

    -

    If @self represents UTC time, then the offset is always zero.

    -
    §Returns
    -

    the number of microseconds that should be added to UTC to -get the local time

    -
    Source

    pub fn week_numbering_year(&self) -> i32

    Returns the ISO 8601 week-numbering year in which the week containing -@self falls.

    -

    This function, taken together with g_date_time_get_week_of_year() and -g_date_time_get_day_of_week() can be used to determine the full ISO -week date on which @self falls.

    -

    This is usually equal to the normal Gregorian year (as returned by -g_date_time_get_year()), except as detailed below:

    -

    For Thursday, the week-numbering year is always equal to the usual -calendar year. For other days, the number is such that every day -within a complete week (Monday to Sunday) is contained within the -same week-numbering year.

    -

    For Monday, Tuesday and Wednesday occurring near the end of the year, -this may mean that the week-numbering year is one greater than the -calendar year (so that these days have the same week-numbering year -as the Thursday occurring early in the next year).

    -

    For Friday, Saturday and Sunday occurring near the start of the year, -this may mean that the week-numbering year is one less than the -calendar year (so that these days have the same week-numbering year -as the Thursday occurring late in the previous year).

    -

    An equivalent description is that the week-numbering year is equal to -the calendar year containing the majority of the days in the current -week (Monday to Sunday).

    -

    Note that January 1 0001 in the proleptic Gregorian calendar is a -Monday, so this function never returns 0.

    -
    §Returns
    -

    the ISO 8601 week-numbering year for @self

    -
    Source

    pub fn week_of_year(&self) -> i32

    Returns the ISO 8601 week number for the week containing @self. -The ISO 8601 week number is the same for every day of the week (from -Moday through Sunday). That can produce some unusual results -(described below).

    -

    The first week of the year is week 1. This is the week that contains -the first Thursday of the year. Equivalently, this is the first week -that has more than 4 of its days falling within the calendar year.

    -

    The value 0 is never returned by this function. Days contained -within a year but occurring before the first ISO 8601 week of that -year are considered as being contained in the last week of the -previous year. Similarly, the final days of a calendar year may be -considered as being part of the first ISO 8601 week of the next year -if 4 or more days of that week are contained within the new year.

    -
    §Returns
    -

    the ISO 8601 week number for @self.

    -
    Source

    pub fn year(&self) -> i32

    Retrieves the year represented by @self in the Gregorian calendar.

    -
    §Returns
    -

    the year represented by @self

    -
    Source

    pub fn ymd(&self) -> (i32, i32, i32)

    Retrieves the Gregorian day, month, and year of a given #GDateTime.

    -
    §Returns
    §year
    -

    the return location for the gregorian year, or None.

    -
    §month
    -

    the return location for the month of the year, or None.

    -
    §day
    -

    the return location for the day of the month, or None.

    -
    Source

    pub fn is_daylight_savings(&self) -> bool

    Determines if daylight savings time is in effect at the time and in -the time zone of @self.

    -
    §Returns
    -

    true if daylight savings time is in effect

    -
    Source

    pub fn to_local(&self) -> Result<DateTime, BoolError>

    Creates a new #GDateTime corresponding to the same instant in time as -@self, but in the local time zone.

    -

    This call is equivalent to calling g_date_time_to_timezone() with the -time zone returned by g_time_zone_new_local().

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn to_timezone(&self, tz: &TimeZone) -> Result<DateTime, BoolError>

    Create a new #GDateTime corresponding to the same instant in time as -@self, but in the time zone @tz.

    -

    This call can fail in the case that the time goes out of bounds. For -example, converting 0001-01-01 00:00:00 UTC to a time zone west of -Greenwich will fail (due to the year 0 being out of range).

    -
    §tz
    -

    the new #GTimeZone

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -
    Source

    pub fn to_unix(&self) -> i64

    Gives the Unix time corresponding to @self, rounding down to the -nearest second.

    -

    Unix time is the number of seconds that have elapsed since 1970-01-01 -00:00:00 UTC, regardless of the time zone associated with @self.

    -
    §Returns
    -

    the Unix time corresponding to @self

    -
    Source

    pub fn to_unix_usec(&self) -> i64

    Available on crate feature v2_80 only.

    Gives the Unix time corresponding to @self, in microseconds.

    -

    Unix time is the number of microseconds that have elapsed since 1970-01-01 -00:00:00 UTC, regardless of the time zone associated with @self.

    -
    §Returns
    -

    the Unix time corresponding to @self

    -
    Source

    pub fn to_utc(&self) -> Result<DateTime, BoolError>

    Creates a new #GDateTime corresponding to the same instant in time as -@self, but in UTC.

    -

    This call is equivalent to calling g_date_time_to_timezone() with the -time zone returned by g_time_zone_new_utc().

    -
    §Returns
    -

    the newly created #GDateTime which -should be freed with g_date_time_unref(), or None

    -

    Trait Implementations§

    Source§

    impl Clone for DateTime

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +) -> Result<DateTime, BoolError>
    Source

    pub fn add_hours(&self, hours: i32) -> Result<DateTime, BoolError>

    Source

    pub fn add_minutes(&self, minutes: i32) -> Result<DateTime, BoolError>

    Source

    pub fn add_months(&self, months: i32) -> Result<DateTime, BoolError>

    Source

    pub fn add_seconds(&self, seconds: f64) -> Result<DateTime, BoolError>

    Source

    pub fn add_weeks(&self, weeks: i32) -> Result<DateTime, BoolError>

    Source

    pub fn add_years(&self, years: i32) -> Result<DateTime, BoolError>

    Source

    pub fn difference(&self, begin: &DateTime) -> TimeSpan

    Source

    pub fn format(&self, format: &str) -> Result<GString, BoolError>

    Source

    pub fn format_iso8601(&self) -> Result<GString, BoolError>

    Available on crate feature v2_62 only.
    Source

    pub fn day_of_month(&self) -> i32

    Source

    pub fn day_of_week(&self) -> i32

    Source

    pub fn day_of_year(&self) -> i32

    Source

    pub fn hour(&self) -> i32

    Source

    pub fn microsecond(&self) -> i32

    Source

    pub fn minute(&self) -> i32

    Source

    pub fn month(&self) -> i32

    Source

    pub fn second(&self) -> i32

    Source

    pub fn seconds(&self) -> f64

    Source

    pub fn timezone(&self) -> TimeZone

    Available on crate feature v2_58 only.
    Source

    pub fn timezone_abbreviation(&self) -> GString

    Source

    pub fn utc_offset(&self) -> TimeSpan

    Source

    pub fn week_numbering_year(&self) -> i32

    Source

    pub fn week_of_year(&self) -> i32

    Source

    pub fn year(&self) -> i32

    Source

    pub fn ymd(&self) -> (i32, i32, i32)

    Source

    pub fn is_daylight_savings(&self) -> bool

    Source

    pub fn to_local(&self) -> Result<DateTime, BoolError>

    Source

    pub fn to_timezone(&self, tz: &TimeZone) -> Result<DateTime, BoolError>

    Source

    pub fn to_unix(&self) -> i64

    Source

    pub fn to_unix_usec(&self) -> i64

    Available on crate feature v2_80 only.
    Source

    pub fn to_utc(&self) -> Result<DateTime, BoolError>

    Trait Implementations§

    Source§

    impl Clone for DateTime

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for DateTime

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<DateTime> for Value

    Source§

    fn from(s: DateTime) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for DateTime

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = DateTime

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, DateTime>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for DateTime

    Source§

    fn hash<H>(&self, state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for DateTime

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<DateTime> for Value

    Source§

    fn from(s: DateTime) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for DateTime

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = DateTime

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, DateTime>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for DateTime

    Source§

    fn hash<H>(&self, state: &mut H)
    where H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for DateTime

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for DateTime

    Source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for DateTime

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for DateTime

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,
    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for DateTime

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for DateTime

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for DateTime

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for DateTime

    Source§

    impl Send for DateTime

    Source§

    impl Sync for DateTime

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for DateTime

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for DateTime

    Source§

    impl Send for DateTime

    Source§

    impl Sync for DateTime

    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> CloneToUninit for T
    where @@ -724,8 +152,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.FileSetContentsFlags.html b/git/docs/glib/struct.FileSetContentsFlags.html index f1ddd66523df..83ef13dd0ca7 100644 --- a/git/docs/glib/struct.FileSetContentsFlags.html +++ b/git/docs/glib/struct.FileSetContentsFlags.html @@ -1,4 +1,4 @@ -FileSetContentsFlags in glib - Rust +FileSetContentsFlags in glib - Rust -
    glib

    Struct FileSetContentsFlags

    Source
    pub struct FileSetContentsFlags(/* private fields */);
    Available on crate feature v2_66 only.
    Expand description

    Flags to pass to g_file_set_contents_full() to affect its safety and -performance.

    -

    Implementations§

    Source§

    impl FileSetContentsFlags

    Source

    pub const NONE: Self = _

    No guarantees about file consistency or durability. -The most dangerous setting, which is slightly faster than other settings.

    -
    Source

    pub const CONSISTENT: Self = _

    Guarantee file consistency: after a crash, -either the old version of the file or the new version of the file will be -available, but not a mixture. On Unix systems this equates to an fsync() -on the file and use of an atomic rename() of the new version of the file -over the old.

    -
    Source

    pub const DURABLE: Self = _

    Guarantee file durability: after a crash, the -new version of the file will be available. On Unix systems this equates to -an fsync() on the file (if CONSISTENT is unset), or -the effects of CONSISTENT plus an fsync() on the -directory containing the file after calling rename().

    -
    Source

    pub const ONLY_EXISTING: Self = _

    Only apply consistency and durability -guarantees if the file already exists. This may speed up file operations -if the file doesn’t currently exist, but may result in a corrupted version -of the new file if the system crashes while writing it.

    -
    Source§

    impl FileSetContentsFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct FileSetContentsFlags

    Source
    pub struct FileSetContentsFlags(/* private fields */);
    Available on crate feature v2_66 only.

    Implementations§

    Source§

    impl FileSetContentsFlags

    Source

    pub const NONE: Self = _

    Source

    pub const CONSISTENT: Self = _

    Source

    pub const DURABLE: Self = _

    Source

    pub const ONLY_EXISTING: Self = _

    Source§

    impl FileSetContentsFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl FileSetContentsFlags

    Source

    pub const fn iter(&self) -> Iter<FileSetContentsFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl FileSetContentsFlags

    Source

    pub const fn iter(&self) -> Iter<FileSetContentsFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<FileSetContentsFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<FileSetContentsFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for FileSetContentsFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for FileSetContentsFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for FileSetContentsFlags

    Source§

    fn bitor(self, other: FileSetContentsFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for FileSetContentsFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for FileSetContentsFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for FileSetContentsFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for FileSetContentsFlags

    Source§

    fn clone(&self) -> FileSetContentsFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<FileSetContentsFlags> for FileSetContentsFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for FileSetContentsFlags

    Source§

    const FLAGS: &'static [Flag<FileSetContentsFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> FileSetContentsFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for FileSetContentsFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for FileSetContentsFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for FileSetContentsFlags

    Source§

    fn bitor(self, other: FileSetContentsFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for FileSetContentsFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for FileSetContentsFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for FileSetContentsFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for FileSetContentsFlags

    Source§

    fn clone(&self) -> FileSetContentsFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<FileSetContentsFlags> for FileSetContentsFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for FileSetContentsFlags

    Source§

    const FLAGS: &'static [Flag<FileSetContentsFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> FileSetContentsFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<FileSetContentsFlags> for FileSetContentsFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for FileSetContentsFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<FileSetContentsFlags> for FileSetContentsFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for FileSetContentsFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for FileSetContentsFlags

    Source§

    type Item = FileSetContentsFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<FileSetContentsFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for FileSetContentsFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for FileSetContentsFlags

    Source§

    fn eq(&self, other: &FileSetContentsFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for FileSetContentsFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for FileSetContentsFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for FileSetContentsFlags

    Source§

    type Item = FileSetContentsFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<FileSetContentsFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for FileSetContentsFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for FileSetContentsFlags

    Source§

    fn eq(&self, other: &FileSetContentsFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for FileSetContentsFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for FileSetContentsFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for FileSetContentsFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = FileSetContentsFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for FileSetContentsFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for FileSetContentsFlags

    Source§

    impl Eq for FileSetContentsFlags

    Source§

    impl StructuralPartialEq for FileSetContentsFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for FileSetContentsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for FileSetContentsFlags

    Source§

    impl Eq for FileSetContentsFlags

    Source§

    impl StructuralPartialEq for FileSetContentsFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.FormatSizeFlags.html b/git/docs/glib/struct.FormatSizeFlags.html index d884c107bd7e..ac417f4950dd 100644 --- a/git/docs/glib/struct.FormatSizeFlags.html +++ b/git/docs/glib/struct.FormatSizeFlags.html @@ -1,4 +1,4 @@ -FormatSizeFlags in glib - Rust +FormatSizeFlags in glib - Rust -
    glib

    Struct FormatSizeFlags

    Source
    pub struct FormatSizeFlags(/* private fields */);
    Expand description

    Flags to modify the format of the string returned by g_format_size_full().

    -

    Implementations§

    Source§

    impl FormatSizeFlags

    Source

    pub const DEFAULT: Self = _

    behave the same as g_format_size()

    -
    Source

    pub const LONG_FORMAT: Self = _

    include the exact number of bytes as part -of the returned string. For example, “45.6 kB (45,612 bytes)”.

    -
    Source

    pub const IEC_UNITS: Self = _

    use IEC (base 1024) units with “KiB”-style -suffixes. IEC units should only be used for reporting things with -a strong “power of 2” basis, like RAM sizes or RAID stripe sizes. -Network and storage sizes should be reported in the normal SI units.

    -
    Source

    pub const BITS: Self = _

    set the size as a quantity in bits, rather than -bytes, and return units in bits. For example, ‘Mbit’ rather than ‘MB’.

    -
    Source

    pub const ONLY_VALUE: Self = _

    Available on crate feature v2_74 only.

    return only value, without unit; this should -not be used together with @G_FORMAT_SIZE_LONG_FORMAT -nor @G_FORMAT_SIZE_ONLY_UNIT. Since: 2.74

    -
    Source

    pub const ONLY_UNIT: Self = _

    Available on crate feature v2_74 only.

    return only unit, without value; this should -not be used together with @G_FORMAT_SIZE_LONG_FORMAT -nor @G_FORMAT_SIZE_ONLY_VALUE. Since: 2.74

    -
    Source§

    impl FormatSizeFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct FormatSizeFlags

    Source
    pub struct FormatSizeFlags(/* private fields */);

    Implementations§

    Source§

    impl FormatSizeFlags

    Source

    pub const DEFAULT: Self = _

    Source

    pub const LONG_FORMAT: Self = _

    Source

    pub const IEC_UNITS: Self = _

    Source

    pub const BITS: Self = _

    Source

    pub const ONLY_VALUE: Self = _

    Available on crate feature v2_74 only.
    Source

    pub const ONLY_UNIT: Self = _

    Available on crate feature v2_74 only.
    Source§

    impl FormatSizeFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl FormatSizeFlags

    Source

    pub const fn iter(&self) -> Iter<FormatSizeFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl FormatSizeFlags

    Source

    pub const fn iter(&self) -> Iter<FormatSizeFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<FormatSizeFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<FormatSizeFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for FormatSizeFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for FormatSizeFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for FormatSizeFlags

    Source§

    fn bitor(self, other: FormatSizeFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for FormatSizeFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for FormatSizeFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for FormatSizeFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for FormatSizeFlags

    Source§

    fn clone(&self) -> FormatSizeFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<FormatSizeFlags> for FormatSizeFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for FormatSizeFlags

    Source§

    const FLAGS: &'static [Flag<FormatSizeFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> FormatSizeFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for FormatSizeFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for FormatSizeFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for FormatSizeFlags

    Source§

    fn bitor(self, other: FormatSizeFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for FormatSizeFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for FormatSizeFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for FormatSizeFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for FormatSizeFlags

    Source§

    fn clone(&self) -> FormatSizeFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<FormatSizeFlags> for FormatSizeFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for FormatSizeFlags

    Source§

    const FLAGS: &'static [Flag<FormatSizeFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> FormatSizeFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<FormatSizeFlags> for FormatSizeFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for FormatSizeFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<FormatSizeFlags> for FormatSizeFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for FormatSizeFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for FormatSizeFlags

    Source§

    type Item = FormatSizeFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<FormatSizeFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for FormatSizeFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for FormatSizeFlags

    Source§

    fn eq(&self, other: &FormatSizeFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for FormatSizeFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for FormatSizeFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for FormatSizeFlags

    Source§

    type Item = FormatSizeFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<FormatSizeFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for FormatSizeFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for FormatSizeFlags

    Source§

    fn eq(&self, other: &FormatSizeFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for FormatSizeFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for FormatSizeFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for FormatSizeFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = FormatSizeFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for FormatSizeFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for FormatSizeFlags

    Source§

    impl Eq for FormatSizeFlags

    Source§

    impl StructuralPartialEq for FormatSizeFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for FormatSizeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for FormatSizeFlags

    Source§

    impl Eq for FormatSizeFlags

    Source§

    impl StructuralPartialEq for FormatSizeFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.GStr.html b/git/docs/glib/struct.GStr.html index 2ff32ec1e26d..5ffd4a79931b 100644 --- a/git/docs/glib/struct.GStr.html +++ b/git/docs/glib/struct.GStr.html @@ -1445,6 +1445,6 @@
    §ExamplesSized,

    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<P, T> Receiver for P
    where P: Deref<Target = T> + ?Sized, - T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    \ No newline at end of file diff --git a/git/docs/glib/struct.GString.html b/git/docs/glib/struct.GString.html index 1bdbecaf6b90..4ae7aa204fff 100644 --- a/git/docs/glib/struct.GString.html +++ b/git/docs/glib/struct.GString.html @@ -1524,8 +1524,8 @@
    §ExamplesDeref<Target = T> + ?Sized, T: ?Sized,
    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.GStringBuilder.html b/git/docs/glib/struct.GStringBuilder.html index dd6917883dc2..07927224442c 100644 --- a/git/docs/glib/struct.GStringBuilder.html +++ b/git/docs/glib/struct.GStringBuilder.html @@ -1386,8 +1386,8 @@
    §ExamplesDeref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.IConv.html b/git/docs/glib/struct.IConv.html index 98557f9fd9f0..efd7fb4d9fa5 100644 --- a/git/docs/glib/struct.IConv.html +++ b/git/docs/glib/struct.IConv.html @@ -1,4 +1,4 @@ -IConv in glib - Rust +IConv in glib - Rust -
    glib

    Struct IConv

    Source
    pub struct IConv(/* private fields */);
    Expand description

    The GIConv struct wraps an iconv() conversion descriptor. It contains -private data and should only be accessed using the following functions.

    -

    Implementations§

    Source§

    impl IConv

    Source

    pub fn new( +
    glib

    Struct IConv

    Source
    pub struct IConv(/* private fields */);

    Implementations§

    Source§

    impl IConv

    Source

    pub fn new( to_codeset: impl IntoGStr, from_codeset: impl IntoGStr, -) -> Option<Self>

    Same as the standard UNIX routine iconv_open(), but -may be implemented via libiconv on UNIX flavors that lack -a native implementation.

    -

    GLib provides g_convert() and g_locale_to_utf8() which are likely -more convenient than the raw iconv wrappers.

    -
    §to_codeset
    -

    destination codeset

    -
    §from_codeset
    -

    source codeset

    -
    §Returns
    -

    a “conversion descriptor”, or (GIConv)-1 if -opening the converter failed.

    -
    Source

    pub fn convert(&mut self, str_: &[u8]) -> Result<(Slice<u8>, usize), CvtError>

    Converts a string from one character set to another.

    -

    Note that you should use g_iconv() for streaming conversions. -Despite the fact that @bytes_read can return information about partial -characters, the g_convert_… functions are not generally suitable -for streaming. If the underlying converter maintains internal state, -then this won’t be preserved across successive calls to g_convert(), -g_convert_with_iconv() or g_convert_with_fallback(). (An example of -this is the GNU C converter for CP1255 which does not emit a base -character until it knows that the next character is not a mark that -could combine with the base character.)

    -

    Characters which are valid in the input character set, but which have no -representation in the output character set will result in a -ConvertError::IllegalSequence error. This is in contrast to the iconv() -specification, which leaves this behaviour implementation defined. Note that -this is the same error code as is returned for an invalid byte sequence in -the input character set. To get defined behaviour for conversion of -unrepresentable characters, use g_convert_with_fallback().

    -
    §str
    -
                the string to convert.
    -
    §converter
    -

    conversion descriptor from g_iconv_open()

    -
    §Returns
    -
              If the conversion was successful, a newly allocated buffer
    -          containing the converted string, which must be freed with
    -          g_free(). Otherwise [`None`] and @error will be set.
    -
    §bytes_read
    -

    location to store the number of bytes in -the input string that were successfully converted, or None. -Even if the conversion was successful, this may be -less than @len if there were partial characters -at the end of the input. If the error -ConvertError::IllegalSequence occurs, the value -stored will be the byte offset after the last valid -input sequence.

    -
    Source

    pub fn iconv( +) -> Option<Self>

    Source

    pub fn convert(&mut self, str_: &[u8]) -> Result<(Slice<u8>, usize), CvtError>

    Source

    pub fn iconv( &mut self, inbuf: Option<&[u8]>, outbuf: Option<&mut [MaybeUninit<u8>]>, -) -> Result<(usize, usize, usize), IConvError>

    Same as the standard UNIX routine iconv(), but -may be implemented via libiconv on UNIX flavors that lack -a native implementation.

    -

    GLib provides g_convert() and g_locale_to_utf8() which are likely -more convenient than the raw iconv wrappers.

    -

    Note that the behaviour of iconv() for characters which are valid in the -input character set, but which have no representation in the output character -set, is implementation defined. This function may return success (with a -positive number of non-reversible conversions as replacement characters were -used), or it may return -1 and set an error such as EILSEQ, in such a -situation.

    -
    §converter
    -

    conversion descriptor from g_iconv_open()

    -
    §inbuf
    -

    bytes to convert

    -
    §inbytes_left
    -

    inout parameter, bytes remaining to convert in @inbuf

    -
    §outbuf
    -

    converted output bytes

    -
    §outbytes_left
    -

    inout parameter, bytes available to fill in @outbuf

    -
    §Returns
    -

    count of non-reversible conversions, or -1 on error

    -

    Trait Implementations§

    Source§

    impl Debug for IConv

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for IConv

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl Send for IConv

    Auto Trait Implementations§

    §

    impl Freeze for IConv

    §

    impl RefUnwindSafe for IConv

    §

    impl !Sync for IConv

    §

    impl Unpin for IConv

    §

    impl UnwindSafe for IConv

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +) -> Result<(usize, usize, usize), IConvError>

    Trait Implementations§

    Source§

    impl Debug for IConv

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for IConv

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl Send for IConv

    Auto Trait Implementations§

    §

    impl Freeze for IConv

    §

    impl RefUnwindSafe for IConv

    §

    impl !Sync for IConv

    §

    impl Unpin for IConv

    §

    impl UnwindSafe for IConv

    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> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/git/docs/glib/struct.IOCondition.html b/git/docs/glib/struct.IOCondition.html index d234c3f09558..98630fa0e7a3 100644 --- a/git/docs/glib/struct.IOCondition.html +++ b/git/docs/glib/struct.IOCondition.html @@ -1,4 +1,4 @@ -IOCondition in glib - Rust +IOCondition in glib - Rust -
    glib

    Struct IOCondition

    Source
    pub struct IOCondition(/* private fields */);
    Expand description

    A bitwise combination representing a condition to watch for on an -event source.

    -

    Implementations§

    Source§

    impl IOCondition

    Source

    pub const IN: Self = _

    There is data to read.

    -
    Source

    pub const OUT: Self = _

    Data can be written (without blocking).

    -
    Source

    pub const PRI: Self = _

    There is urgent data to read.

    -
    Source

    pub const ERR: Self = _

    Error condition.

    -
    Source

    pub const HUP: Self = _

    Hung up (the connection has been broken, usually for -pipes and sockets).

    -
    Source

    pub const NVAL: Self = _

    Invalid request. The file descriptor is not open.

    -
    Source§

    impl IOCondition

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct IOCondition

    Source
    pub struct IOCondition(/* private fields */);

    Implementations§

    Source§

    impl IOCondition

    Source

    pub const IN: Self = _

    Source

    pub const OUT: Self = _

    Source

    pub const PRI: Self = _

    Source

    pub const ERR: Self = _

    Source

    pub const HUP: Self = _

    Source

    pub const NVAL: Self = _

    Source§

    impl IOCondition

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl IOCondition

    Source

    pub const fn iter(&self) -> Iter<IOCondition>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl IOCondition

    Source

    pub const fn iter(&self) -> Iter<IOCondition>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<IOCondition>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<IOCondition>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for IOCondition

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = IOCondition

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for IOCondition

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for IOCondition

    Source§

    fn bitor(self, other: IOCondition) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = IOCondition

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for IOCondition

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for IOCondition

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = IOCondition

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for IOCondition

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for IOCondition

    Source§

    fn clone(&self) -> IOCondition

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<IOCondition> for IOCondition

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for IOCondition

    Source§

    const FLAGS: &'static [Flag<IOCondition>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> IOCondition

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for IOCondition

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = IOCondition

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for IOCondition

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for IOCondition

    Source§

    fn bitor(self, other: IOCondition) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = IOCondition

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for IOCondition

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for IOCondition

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = IOCondition

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for IOCondition

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for IOCondition

    Source§

    fn clone(&self) -> IOCondition

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<IOCondition> for IOCondition

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for IOCondition

    Source§

    const FLAGS: &'static [Flag<IOCondition>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> IOCondition

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl From<IOCondition> for Value

    Source§

    fn from(v: IOCondition) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<IOCondition> for IOCondition

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl<'a> FromValue<'a> for IOCondition

    Source§

    type Checker = GenericValueTypeChecker<IOCondition>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl HasParamSpec for IOCondition

    Source§

    type ParamSpec = ParamSpecFlags

    Source§

    type SetValue = IOCondition

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecFlagsBuilder<'_, IOCondition>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for IOCondition

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl From<IOCondition> for Value

    Source§

    fn from(v: IOCondition) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<IOCondition> for IOCondition

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl<'a> FromValue<'a> for IOCondition

    Source§

    type Checker = GenericValueTypeChecker<IOCondition>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl HasParamSpec for IOCondition

    Source§

    type ParamSpec = ParamSpecFlags

    Source§

    type SetValue = IOCondition

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecFlagsBuilder<'_, IOCondition>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for IOCondition

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for IOCondition

    Source§

    type Item = IOCondition

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<IOCondition>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for IOCondition

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = IOCondition

    The resulting type after applying the ! operator.
    Source§

    impl Octal for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for IOCondition

    Source§

    fn eq(&self, other: &IOCondition) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for IOCondition

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl StaticType for IOCondition

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Sub for IOCondition

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,
    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for IOCondition

    Source§

    type Item = IOCondition

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<IOCondition>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for IOCondition

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = IOCondition

    The resulting type after applying the ! operator.
    Source§

    impl Octal for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for IOCondition

    Source§

    fn eq(&self, other: &IOCondition) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for IOCondition

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl StaticType for IOCondition

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Sub for IOCondition

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = IOCondition

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for IOCondition

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = IOCondition

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for IOCondition

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl ToValue for IOCondition

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl UpperHex for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl ValueType for IOCondition

    Source§

    type Type = IOCondition

    Type to get the Type from. Read more
    Source§

    impl Copy for IOCondition

    Source§

    impl Eq for IOCondition

    Source§

    impl StructuralPartialEq for IOCondition

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl ToValue for IOCondition

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl UpperHex for IOCondition

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl ValueType for IOCondition

    Source§

    type Type = IOCondition

    Type to get the Type from. Read more
    Source§

    impl Copy for IOCondition

    Source§

    impl Eq for IOCondition

    Source§

    impl StructuralPartialEq for IOCondition

    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> CloneToUninit for T
    where @@ -153,8 +144,8 @@ T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

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

    Source§

    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.
    \ No newline at end of file diff --git a/git/docs/glib/struct.InterfaceInfo.html b/git/docs/glib/struct.InterfaceInfo.html index 0f9cd88dbe13..3ffc95a4ef6c 100644 --- a/git/docs/glib/struct.InterfaceInfo.html +++ b/git/docs/glib/struct.InterfaceInfo.html @@ -1,4 +1,4 @@ -InterfaceInfo in glib - Rust +InterfaceInfo in glib - Rust -
    glib

    Struct InterfaceInfo

    Source
    pub struct InterfaceInfo(/* private fields */);
    Expand description

    A structure that provides information to the type system which is +

    glib

    Struct InterfaceInfo

    Source
    pub struct InterfaceInfo(/* private fields */);
    Expand description

    A structure that provides information to the type system which is +used specifically for managing interface types. +A structure that provides information to the type system which is used specifically for managing interface types.

    -

    Trait Implementations§

    Source§

    impl Clone for InterfaceInfo

    Source§

    fn clone(&self) -> InterfaceInfo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for InterfaceInfo

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for InterfaceInfo

    Source§

    fn default() -> Self

    Creates a new InterfaceInfo with default value.

    -
    Source§

    impl Copy for InterfaceInfo

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl Clone for InterfaceInfo

    Source§

    fn clone(&self) -> InterfaceInfo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for InterfaceInfo

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for InterfaceInfo

    Source§

    fn default() -> Self

    Creates a new InterfaceInfo with default value.

    +
    Source§

    impl Copy for InterfaceInfo

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.KeyFile.html b/git/docs/glib/struct.KeyFile.html index 5ca87854004a..a40b8acace38 100644 --- a/git/docs/glib/struct.KeyFile.html +++ b/git/docs/glib/struct.KeyFile.html @@ -1,4 +1,4 @@ -KeyFile in glib - Rust +KeyFile in glib - Rust -
    glib

    Struct KeyFile

    Source
    pub struct KeyFile { /* private fields */ }
    Expand description

    GKeyFile parses .ini-like config files.

    -

    GKeyFile lets you parse, edit or create files containing groups of -key-value pairs, which we call “key files” for lack of a better name. -Several freedesktop.org specifications use key files now, e.g the -Desktop Entry Specification -and the Icon Theme Specification.

    -

    The syntax of key files is described in detail in the -Desktop Entry Specification, -here is a quick summary: Key files consists of groups of key-value pairs, interspersed -with comments.

    -

    ⚠️ The following code is in txt ⚠️

    -
    # this is just an example
    -# there can be comments before the first group
    -
    -[First Group]
    -
    -Name=Key File Example\tthis value shows\nescaping
    -
    -# localized strings are stored in multiple key-value pairs
    -Welcome=Hello
    -Welcome[de]=Hallo
    -Welcome[fr_FR]=Bonjour
    -Welcome[it]=Ciao
    -
    -[Another Group]
    -
    -Numbers=2;20;-200;0
    -
    -Booleans=true;false;true;true
    -

    Lines beginning with a ‘#’ and blank lines are considered comments.

    -

    Groups are started by a header line containing the group name enclosed -in ‘[’ and ‘]’, and ended implicitly by the start of the next group or -the end of the file. Each key-value pair must be contained in a group.

    -

    Key-value pairs generally have the form key=value, with the exception -of localized strings, which have the form key[locale]=value, with a -locale identifier of the form lang_COUNTRY@MODIFIER where COUNTRY -and MODIFIER are optional. Space before and after the ‘=’ character -are ignored. Newline, tab, carriage return and backslash characters in -value are escaped as \n, \t, \r, and \\\\, respectively. To preserve -leading spaces in values, these can also be escaped as \s.

    -

    Key files can store strings (possibly with localized variants), integers, -booleans and lists of these. Lists are separated by a separator character, -typically ‘;’ or ‘,’. To use the list separator character in a value in -a list, it has to be escaped by prefixing it with a backslash.

    -

    This syntax is obviously inspired by the .ini files commonly met -on Windows, but there are some important differences:

    -
      -
    • -

      .ini files use the ‘;’ character to begin comments, -key files use the ‘#’ character.

      -
    • -
    • -

      Key files do not allow for ungrouped keys meaning only -comments can precede the first group.

      -
    • -
    • -

      Key files are always encoded in UTF-8.

      -
    • -
    • -

      Key and Group names are case-sensitive. For example, a group called -[GROUP] is a different from [group].

      -
    • -
    • -

      .ini files don’t have a strongly typed boolean entry type, -they only have GetProfileInt(). In key files, only -true and false (in lower case) are allowed.

      -
    • -
    -

    Note that in contrast to the -Desktop Entry Specification, -groups in key files may contain the same key multiple times; the last entry wins. -Key files may also contain multiple groups with the same name; they are merged -together. Another difference is that keys and group names in key files are not -restricted to ASCII characters.

    -

    Here is an example of loading a key file and reading a value:

    -

    ⚠️ The following code is in c ⚠️

    -
    g_autoptr(GError) error = NULL;
    -g_autoptr(GKeyFile) key_file = g_key_file_new ();
    -
    -if (!g_key_file_load_from_file (key_file, "key-file.ini", flags, &error))
    -  {
    -    if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
    -      g_warning ("Error loading key file: %s", error->message);
    -    return;
    -  }
    -
    -g_autofree gchar *val = g_key_file_get_string (key_file, "Group Name", "SomeKey", &error);
    -if (val == NULL &&
    -    !g_error_matches (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_KEY_NOT_FOUND))
    -  {
    -    g_warning ("Error finding key in key file: %s", error->message);
    -    return;
    -  }
    -else if (val == NULL)
    -  {
    -    // Fall back to a default value.
    -    val = g_strdup ("default-value");
    -  }
    -

    Here is an example of creating and saving a key file:

    -

    ⚠️ The following code is in c ⚠️

    -
    g_autoptr(GKeyFile) key_file = g_key_file_new ();
    -const gchar *val = …;
    -g_autoptr(GError) error = NULL;
    -
    -g_key_file_set_string (key_file, "Group Name", "SomeKey", val);
    -
    -// Save as a file.
    -if (!g_key_file_save_to_file (key_file, "key-file.ini", &error))
    -  {
    -    g_warning ("Error saving key file: %s", error->message);
    -    return;
    -  }
    -
    -// Or store to a GBytes for use elsewhere.
    -gsize data_len;
    -g_autofree guint8 *data = (guint8 *) g_key_file_to_data (key_file, &data_len, &error);
    -if (data == NULL)
    -  {
    -    g_warning ("Error saving key file: %s", error->message);
    -    return;
    -  }
    -g_autoptr(GBytes) bytes = g_bytes_new_take (g_steal_pointer (&data), data_len);
    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl KeyFile

    Source

    pub fn as_ptr(&self) -> *mut GKeyFile

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GKeyFile) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl KeyFile

    Source

    pub fn new() -> KeyFile

    Creates a new empty #GKeyFile object. Use -g_key_file_load_from_file(), g_key_file_load_from_data(), -g_key_file_load_from_dirs() or g_key_file_load_from_data_dirs() to -read an existing key file.

    -
    §Returns
    -

    an empty #GKeyFile.

    -
    Source

    pub fn comment( +
    glib

    Struct KeyFile

    Source
    pub struct KeyFile { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl KeyFile

    Source

    pub fn as_ptr(&self) -> *mut GKeyFile

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GKeyFile) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl KeyFile

    Source

    pub fn new() -> KeyFile

    Source

    pub fn comment( &self, group_name: Option<&str>, key: Option<&str>, -) -> Result<GString, Error>

    Retrieves a comment above @key from @group_name. -If @key is None then @comment will be read from above -@group_name. If both @key and @group_name are None, then -@comment will be read from above the first group in the file.

    -

    Note that the returned string does not include the ‘#’ comment markers, -but does include any whitespace after them (on each line). It includes -the line breaks between lines, but does not include the final line break.

    -
    §group_name
    -

    a group name, or None

    -
    §key
    -

    a key

    -
    §Returns
    -

    a comment that should be freed with g_free()

    -
    Source

    pub fn double(&self, group_name: &str, key: &str) -> Result<f64, Error>

    Returns the value associated with @key under @group_name as a -double. If @group_name is None, the start_group is used.

    -

    If @key cannot be found then 0.0 is returned and @error is set to -KeyFileError::KeyNotFound. Likewise, if the value associated -with @key cannot be interpreted as a double then 0.0 is returned -and @error is set to KeyFileError::InvalidValue.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -

    the value associated with the key as a double, or -0.0 if the key was not found or could not be parsed.

    -
    Source

    pub fn double_list( +) -> Result<GString, Error>

    Source

    pub fn double(&self, group_name: &str, key: &str) -> Result<f64, Error>

    Source

    pub fn double_list( &self, group_name: &str, key: &str, -) -> Result<Vec<f64>, Error>

    Returns the values associated with @key under @group_name as -doubles.

    -

    If @key cannot be found then None is returned and @error is set to -KeyFileError::KeyNotFound. Likewise, if the values associated -with @key cannot be interpreted as doubles then None is returned -and @error is set to KeyFileError::InvalidValue.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -
    the values associated with the key as a list of doubles, or [`None`] if the
    -key was not found or could not be parsed. The returned list of doubles
    -should be freed with g_free() when no longer needed.
    -
    Source

    pub fn int64(&self, group_name: &str, key: &str) -> Result<i64, Error>

    Returns the value associated with @key under @group_name as a signed -64-bit integer. This is similar to g_key_file_get_integer() but can return -64-bit results without truncation.

    -
    §group_name
    -

    a non-None group name

    -
    §key
    -

    a non-None key

    -
    §Returns
    -

    the value associated with the key as a signed 64-bit integer, or -0 if the key was not found or could not be parsed.

    -
    Source

    pub fn integer(&self, group_name: &str, key: &str) -> Result<i32, Error>

    Returns the value associated with @key under @group_name as an -integer.

    -

    If @key cannot be found then 0 is returned and @error is set to -KeyFileError::KeyNotFound. Likewise, if the value associated -with @key cannot be interpreted as an integer, or is out of range -for a #gint, then 0 is returned -and @error is set to KeyFileError::InvalidValue.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -

    the value associated with the key as an integer, or -0 if the key was not found or could not be parsed.

    -
    Source

    pub fn integer_list( +) -> Result<Vec<f64>, Error>

    Source

    pub fn int64(&self, group_name: &str, key: &str) -> Result<i64, Error>

    Source

    pub fn integer(&self, group_name: &str, key: &str) -> Result<i32, Error>

    Source

    pub fn integer_list( &self, group_name: &str, key: &str, -) -> Result<Vec<i32>, Error>

    Returns the values associated with @key under @group_name as -integers.

    -

    If @key cannot be found then None is returned and @error is set to -KeyFileError::KeyNotFound. Likewise, if the values associated -with @key cannot be interpreted as integers, or are out of range for -#gint, then None is returned -and @error is set to KeyFileError::InvalidValue.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -
    the values associated with the key as a list of integers, or [`None`] if
    -the key was not found or could not be parsed. The returned list of
    -integers should be freed with g_free() when no longer needed.
    -
    Source

    pub fn locale_for_key( +) -> Result<Vec<i32>, Error>

    Source

    pub fn locale_for_key( &self, group_name: &str, key: &str, locale: Option<&str>, -) -> Option<GString>

    Returns the actual locale which the result of -g_key_file_get_locale_string() or g_key_file_get_locale_string_list() -came from.

    -

    If calling g_key_file_get_locale_string() or -g_key_file_get_locale_string_list() with exactly the same @self, -@group_name, @key and @locale, the result of those functions will -have originally been tagged with the locale that is the result of -this function.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §locale
    -

    a locale identifier or None

    -
    §Returns
    -

    the locale from the file, or None if the key was not -found or the entry in the file was was untranslated

    -
    Source

    pub fn start_group(&self) -> Option<GString>

    Returns the name of the start group of the file.

    -
    §Returns
    -

    The start group of the key file.

    -
    Source

    pub fn uint64(&self, group_name: &str, key: &str) -> Result<u64, Error>

    Returns the value associated with @key under @group_name as an unsigned -64-bit integer. This is similar to g_key_file_get_integer() but can return -large positive results without truncation.

    -
    §group_name
    -

    a non-None group name

    -
    §key
    -

    a non-None key

    -
    §Returns
    -

    the value associated with the key as an unsigned 64-bit integer, -or 0 if the key was not found or could not be parsed.

    -
    Source

    pub fn value(&self, group_name: &str, key: &str) -> Result<GString, Error>

    Returns the raw value associated with @key under @group_name. -Use g_key_file_get_string() to retrieve an unescaped UTF-8 string.

    -

    In the event the key cannot be found, None is returned and -@error is set to KeyFileError::KeyNotFound. In the -event that the @group_name cannot be found, None is returned -and @error is set to KeyFileError::GroupNotFound.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -

    a newly allocated string or None if the specified -key cannot be found.

    -
    Source

    pub fn has_group(&self, group_name: &str) -> bool

    Looks whether the key file has the group @group_name.

    -
    §group_name
    -

    a group name

    -
    §Returns
    -

    true if @group_name is a part of @self, false -otherwise.

    -
    Source

    pub fn load_from_bytes( +) -> Option<GString>

    Source

    pub fn start_group(&self) -> Option<GString>

    Source

    pub fn uint64(&self, group_name: &str, key: &str) -> Result<u64, Error>

    Source

    pub fn value(&self, group_name: &str, key: &str) -> Result<GString, Error>

    Source

    pub fn has_group(&self, group_name: &str) -> bool

    Source

    pub fn load_from_bytes( &self, bytes: &Bytes, flags: KeyFileFlags, -) -> Result<(), Error>

    Loads a key file from the data in @bytes into an empty #GKeyFile structure. -If the object cannot be created then error is set to a #GKeyFileError.

    -
    §bytes
    -

    a #GBytes

    -
    §flags
    -

    flags from #GKeyFileFlags

    -
    §Returns
    -

    true if a key file could be loaded, false otherwise

    -
    Source

    pub fn load_from_data( +) -> Result<(), Error>

    Source

    pub fn load_from_data( &self, data: &str, flags: KeyFileFlags, -) -> Result<(), Error>

    Loads a key file from memory into an empty #GKeyFile structure. -If the object cannot be created then error is set to a #GKeyFileError.

    -
    §data
    -

    key file loaded in memory

    -
    §length
    -

    the length of @data in bytes (or (gsize)-1 if data is nul-terminated)

    -
    §flags
    -

    flags from #GKeyFileFlags

    -
    §Returns
    -

    true if a key file could be loaded, false otherwise

    -
    Source

    pub fn load_from_file( +) -> Result<(), Error>

    Source

    pub fn load_from_file( &self, file: impl AsRef<Path>, flags: KeyFileFlags, -) -> Result<(), Error>

    Loads a key file into an empty #GKeyFile structure.

    -

    If the OS returns an error when opening or reading the file, a -G_FILE_ERROR is returned. If there is a problem parsing the file, a -G_KEY_FILE_ERROR is returned.

    -

    This function will never return a KeyFileError::NotFound error. If the -@file is not found, FileError::Noent is returned.

    -
    §file
    -

    the path of a filename to load, in the GLib filename encoding

    -
    §flags
    -

    flags from #GKeyFileFlags

    -
    §Returns
    -

    true if a key file could be loaded, false otherwise

    -
    Source

    pub fn remove_comment( +) -> Result<(), Error>

    Source

    pub fn remove_comment( &self, group_name: Option<&str>, key: Option<&str>, -) -> Result<(), Error>

    Removes a comment above @key from @group_name. -If @key is None then @comment will be removed above @group_name. -If both @key and @group_name are None, then @comment will -be removed above the first group in the file.

    -
    §group_name
    -

    a group name, or None

    -
    §key
    -

    a key

    -
    §Returns
    -

    true if the comment was removed, false otherwise

    -
    Source

    pub fn remove_group(&self, group_name: &str) -> Result<(), Error>

    Removes the specified group, @group_name, -from the key file.

    -
    §group_name
    -

    a group name

    -
    §Returns
    -

    true if the group was removed, false otherwise

    -
    Source

    pub fn remove_key(&self, group_name: &str, key: &str) -> Result<(), Error>

    Removes @key in @group_name from the key file.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key name to remove

    -
    §Returns
    -

    true if the key was removed, false otherwise

    -
    Source

    pub fn set_boolean(&self, group_name: &str, key: &str, value: bool)

    Associates a new boolean value with @key under @group_name. -If @key cannot be found then it is created.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §value
    -

    true or false

    -
    Source

    pub fn set_comment( +) -> Result<(), Error>

    Source

    pub fn remove_group(&self, group_name: &str) -> Result<(), Error>

    Source

    pub fn remove_key(&self, group_name: &str, key: &str) -> Result<(), Error>

    Source

    pub fn set_boolean(&self, group_name: &str, key: &str, value: bool)

    Source

    pub fn set_comment( &self, group_name: Option<&str>, key: Option<&str>, comment: &str, -) -> Result<(), Error>

    Places a comment above @key from @group_name.

    -

    If @key is None then @comment will be written above @group_name. -If both @key and @group_name are None, then @comment will be -written above the first group in the file.

    -

    Note that this function prepends a ‘#’ comment marker to -each line of @comment.

    -
    §group_name
    -

    a group name, or None

    -
    §key
    -

    a key

    -
    §comment
    -

    a comment

    -
    §Returns
    -

    true if the comment was written, false otherwise

    -
    Source

    pub fn set_double(&self, group_name: &str, key: &str, value: f64)

    Associates a new double value with @key under @group_name. -If @key cannot be found then it is created.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §value
    -

    a double value

    -
    Source

    pub fn set_int64(&self, group_name: &str, key: &str, value: i64)

    Associates a new integer value with @key under @group_name. -If @key cannot be found then it is created.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §value
    -

    an integer value

    -
    Source

    pub fn set_integer(&self, group_name: &str, key: &str, value: i32)

    Associates a new integer value with @key under @group_name. -If @key cannot be found then it is created.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §value
    -

    an integer value

    -
    Source

    pub fn set_list_separator(&self, separator: Char)

    Sets the character which is used to separate -values in lists. Typically ‘;’ or ‘,’ are used -as separators. The default list separator is ‘;’.

    -
    §separator
    -

    the separator

    -
    Source

    pub fn set_locale_string( +) -> Result<(), Error>

    Source

    pub fn set_double(&self, group_name: &str, key: &str, value: f64)

    Source

    pub fn set_int64(&self, group_name: &str, key: &str, value: i64)

    Source

    pub fn set_integer(&self, group_name: &str, key: &str, value: i32)

    Source

    pub fn set_list_separator(&self, separator: Char)

    Source

    pub fn set_locale_string( &self, group_name: &str, key: &str, locale: &str, string: &str, -)

    Associates a string value for @key and @locale under @group_name. -If the translation for @key cannot be found then it is created.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §locale
    -

    a locale identifier

    -
    §string
    -

    a string

    -
    Source

    pub fn set_string(&self, group_name: &str, key: &str, string: &str)

    Associates a new string value with @key under @group_name. -If @key cannot be found then it is created. -If @group_name cannot be found then it is created. -Unlike g_key_file_set_value(), this function handles characters -that need escaping, such as newlines.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §string
    -

    a string

    -
    Source

    pub fn set_uint64(&self, group_name: &str, key: &str, value: u64)

    Associates a new integer value with @key under @group_name. -If @key cannot be found then it is created.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §value
    -

    an integer value

    -
    Source

    pub fn set_value(&self, group_name: &str, key: &str, value: &str)

    Associates a new value with @key under @group_name.

    -

    If @key cannot be found then it is created. If @group_name cannot -be found then it is created. To set an UTF-8 string which may contain -characters that need escaping (such as newlines or spaces), use -g_key_file_set_string().

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §value
    -

    a string

    -
    Source§

    impl KeyFile

    Source

    pub fn save_to_file<T: AsRef<Path>>(&self, filename: T) -> Result<(), Error>

    Writes the contents of @self to @filename using -g_file_set_contents(). If you need stricter guarantees about durability of -the written file than are provided by g_file_set_contents(), use -g_file_set_contents_full() with the return value of g_key_file_to_data().

    -

    This function can fail for any of the reasons that -g_file_set_contents() may fail.

    -
    §filename
    -

    the name of the file to write to

    -
    §Returns
    -

    true if successful, else false with @error set

    -
    Source

    pub fn load_from_data_dirs<T: AsRef<Path>>( +)

    Source

    pub fn set_string(&self, group_name: &str, key: &str, string: &str)

    Source

    pub fn set_uint64(&self, group_name: &str, key: &str, value: u64)

    Source

    pub fn set_value(&self, group_name: &str, key: &str, value: &str)

    Source§

    impl KeyFile

    Source

    pub fn save_to_file<T: AsRef<Path>>(&self, filename: T) -> Result<(), Error>

    Source

    pub fn load_from_data_dirs<T: AsRef<Path>>( &self, file: T, flags: KeyFileFlags, -) -> Result<PathBuf, Error>

    This function looks for a key file named @file in the paths -returned from g_get_user_data_dir() and g_get_system_data_dirs(), -loads the file into @self and returns the file’s full path in -@full_path. If the file could not be loaded then an error is -set to either a #GFileError or #GKeyFileError.

    -
    §file
    -

    a relative path to a filename to open and parse

    -
    §flags
    -

    flags from #GKeyFileFlags

    -
    §Returns
    -

    true if a key file could be loaded, false otherwise

    -
    §full_path
    -

    return location for a string containing the full path -of the file, or None

    -
    Source

    pub fn load_from_dirs<T: AsRef<Path>, U: AsRef<Path>>( +) -> Result<PathBuf, Error>

    Source

    pub fn load_from_dirs<T: AsRef<Path>, U: AsRef<Path>>( &self, file: T, search_dirs: &[U], flags: KeyFileFlags, -) -> Result<PathBuf, Error>

    This function looks for a key file named @file in the paths -specified in @search_dirs, loads the file into @self and -returns the file’s full path in @full_path.

    -

    If the file could not be found in any of the @search_dirs, -KeyFileError::NotFound is returned. If -the file is found but the OS returns an error when opening or reading the -file, a G_FILE_ERROR is returned. If there is a problem parsing the file, a -G_KEY_FILE_ERROR is returned.

    -
    §file
    -

    a relative path to a filename to open and parse

    -
    §search_dirs
    -

    None-terminated array of directories to search

    -
    §flags
    -

    flags from #GKeyFileFlags

    -
    §Returns
    -

    true if a key file could be loaded, false otherwise

    -
    §full_path
    -

    return location for a string containing the full path -of the file, or None

    -
    Source

    pub fn to_data(&self) -> GString

    This function outputs @self as a string.

    -

    Note that this function never reports an error, -so it is safe to pass None as @error.

    -
    §Returns
    -

    a newly allocated string holding -the contents of the #GKeyFile

    -
    §length
    -

    return location for the length of the -returned string, or None

    -
    Source

    pub fn groups(&self) -> PtrSlice<GStringPtr>

    Returns all groups in the key file loaded with @self. -The array of returned groups will be None-terminated, so -@length may optionally be None.

    -
    §Returns
    -

    a newly-allocated None-terminated array of strings. -Use g_strfreev() to free it.

    -
    §length
    -

    return location for the number of returned groups, or None

    -
    Source

    pub fn keys(&self, group_name: &str) -> Result<PtrSlice<GStringPtr>, Error>

    Returns all keys for the group name @group_name. The array of -returned keys will be None-terminated, so @length may -optionally be None. In the event that the @group_name cannot -be found, None is returned and @error is set to -KeyFileError::GroupNotFound.

    -
    §group_name
    -

    a group name

    -
    §Returns
    -

    a newly-allocated None-terminated array of strings. -Use g_strfreev() to free it.

    -
    §length
    -

    return location for the number of keys returned, or None

    -
    Source

    pub fn boolean(&self, group_name: &str, key: &str) -> Result<bool, Error>

    Returns the value associated with @key under @group_name as a -boolean.

    -

    If @key cannot be found then false is returned and @error is set -to KeyFileError::KeyNotFound. Likewise, if the value -associated with @key cannot be interpreted as a boolean then false -is returned and @error is set to KeyFileError::InvalidValue.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -

    the value associated with the key as a boolean, -or false if the key was not found or could not be parsed.

    -
    Source

    pub fn has_key(&self, group_name: &str, key: &str) -> Result<bool, Error>

    Looks whether the key file has the key @key in the group -@group_name.

    -

    Note that this function does not follow the rules for #GError strictly; -the return value both carries meaning and signals an error. To use -this function, you must pass a #GError pointer in @error, and check -whether it is not None to see if an error occurred.

    -

    Language bindings should use g_key_file_get_value() to test whether -or not a key exists.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key name

    -
    §Returns
    -

    true if @key is a part of @group_name, false otherwise

    -
    Source

    pub fn boolean_list( +) -> Result<PathBuf, Error>

    Source

    pub fn to_data(&self) -> GString

    Source

    pub fn groups(&self) -> PtrSlice<GStringPtr>

    Source

    pub fn keys(&self, group_name: &str) -> Result<PtrSlice<GStringPtr>, Error>

    Source

    pub fn boolean(&self, group_name: &str, key: &str) -> Result<bool, Error>

    Source

    pub fn has_key(&self, group_name: &str, key: &str) -> Result<bool, Error>

    Source

    pub fn boolean_list( &self, group_name: &str, key: &str, -) -> Result<Vec<bool>, Error>

    Returns the values associated with @key under @group_name as -booleans.

    -

    If @key cannot be found then None is returned and @error is set to -KeyFileError::KeyNotFound. Likewise, if the values associated -with @key cannot be interpreted as booleans then None is returned -and @error is set to KeyFileError::InvalidValue.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -

    the values associated with the key as a list of booleans, or None if the -key was not found or could not be parsed. The returned list of booleans -should be freed with g_free() when no longer needed.

    -
    Source

    pub fn string(&self, group_name: &str, key: &str) -> Result<GString, Error>

    Returns the string value associated with @key under @group_name. -Unlike g_key_file_get_value(), this function handles escape sequences -like \s.

    -

    In the event the key cannot be found, None is returned and -@error is set to KeyFileError::KeyNotFound. In the -event that the @group_name cannot be found, None is returned -and @error is set to KeyFileError::GroupNotFound.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -

    a newly allocated string or None if the specified -key cannot be found.

    -
    Source

    pub fn string_list( +) -> Result<Vec<bool>, Error>

    Source

    pub fn string(&self, group_name: &str, key: &str) -> Result<GString, Error>

    Source

    pub fn string_list( &self, group_name: &str, key: &str, -) -> Result<PtrSlice<GStringPtr>, Error>

    Returns the values associated with @key under @group_name.

    -

    In the event the key cannot be found, None is returned and -@error is set to KeyFileError::KeyNotFound. In the -event that the @group_name cannot be found, None is returned -and @error is set to KeyFileError::GroupNotFound.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §Returns
    -

    a None-terminated string array or None if the specified -key cannot be found. The array should be freed with g_strfreev().

    -
    Source

    pub fn locale_string( +) -> Result<PtrSlice<GStringPtr>, Error>

    Source

    pub fn locale_string( &self, group_name: &str, key: &str, locale: Option<&str>, -) -> Result<GString, Error>

    Returns the value associated with @key under @group_name -translated in the given @locale if available. If @locale is -None then the current locale is assumed.

    -

    If @locale is to be non-None, or if the current locale will change over -the lifetime of the #GKeyFile, it must be loaded with -KeyFileFlags::KEEP_TRANSLATIONS in order to load strings for all locales.

    -

    If @key cannot be found then None is returned and @error is set -to KeyFileError::KeyNotFound. If the value associated -with @key cannot be interpreted or no suitable translation can -be found then the untranslated value is returned.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §locale
    -

    a locale identifier or None

    -
    §Returns
    -

    a newly allocated string or None if the specified -key cannot be found.

    -
    Source

    pub fn locale_string_list( +) -> Result<GString, Error>

    Source

    pub fn locale_string_list( &self, group_name: &str, key: &str, locale: Option<&str>, -) -> Result<PtrSlice<GStringPtr>, Error>

    Returns the values associated with @key under @group_name -translated in the given @locale if available. If @locale is -None then the current locale is assumed.

    -

    If @locale is to be non-None, or if the current locale will change over -the lifetime of the #GKeyFile, it must be loaded with -KeyFileFlags::KEEP_TRANSLATIONS in order to load strings for all locales.

    -

    If @key cannot be found then None is returned and @error is set -to KeyFileError::KeyNotFound. If the values associated -with @key cannot be interpreted or no suitable translations -can be found then the untranslated values are returned. The -returned array is None-terminated, so @length may optionally -be None.

    -
    §group_name
    -

    a group name

    -
    §key
    -

    a key

    -
    §locale
    -

    a locale identifier or None

    -
    §Returns
    -

    a newly allocated None-terminated string array -or None if the key isn’t found. The string array should be freed -with g_strfreev().

    -

    Trait Implementations§

    Source§

    impl Clone for KeyFile

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +) -> Result<PtrSlice<GStringPtr>, Error>

    Trait Implementations§

    Source§

    impl Clone for KeyFile

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for KeyFile

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for KeyFile

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl From<KeyFile> for Value

    Source§

    fn from(s: KeyFile) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for KeyFile

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = KeyFile

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, KeyFile>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for KeyFile

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for KeyFile

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for KeyFile

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl From<KeyFile> for Value

    Source§

    fn from(s: KeyFile) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for KeyFile

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = KeyFile

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, KeyFile>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for KeyFile

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for KeyFile

    Source§

    fn cmp(&self, other: &KeyFile) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for KeyFile

    Source§

    fn cmp(&self, other: &KeyFile) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for KeyFile

    Source§

    fn eq(&self, other: &KeyFile) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for KeyFile

    Source§

    fn partial_cmp(&self, other: &KeyFile) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,
    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for KeyFile

    Source§

    fn eq(&self, other: &KeyFile) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for KeyFile

    Source§

    fn partial_cmp(&self, other: &KeyFile) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for KeyFile

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for KeyFile

    Source§

    impl StructuralPartialEq for KeyFile

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for KeyFile

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for KeyFile

    Source§

    impl StructuralPartialEq for KeyFile

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.KeyFileFlags.html b/git/docs/glib/struct.KeyFileFlags.html index 16b200e462db..8d927f6e61e7 100644 --- a/git/docs/glib/struct.KeyFileFlags.html +++ b/git/docs/glib/struct.KeyFileFlags.html @@ -1,4 +1,4 @@ -KeyFileFlags in glib - Rust +KeyFileFlags in glib - Rust -
    glib

    Struct KeyFileFlags

    Source
    pub struct KeyFileFlags(/* private fields */);
    Expand description

    Flags which influence the parsing.

    -

    Implementations§

    Source§

    impl KeyFileFlags

    Source

    pub const NONE: Self = _

    No flags, default behaviour

    -
    Source

    pub const KEEP_COMMENTS: Self = _

    Use this flag if you plan to write the -(possibly modified) contents of the key file back to a file; -otherwise all comments will be lost when the key file is -written back.

    -
    Source

    pub const KEEP_TRANSLATIONS: Self = _

    Use this flag if you plan to write the -(possibly modified) contents of the key file back to a file; -otherwise only the translations for the current language will be -written back.

    -
    Source§

    impl KeyFileFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct KeyFileFlags

    Source
    pub struct KeyFileFlags(/* private fields */);

    Implementations§

    Source§

    impl KeyFileFlags

    Source

    pub const NONE: Self = _

    Source

    pub const KEEP_COMMENTS: Self = _

    Source

    pub const KEEP_TRANSLATIONS: Self = _

    Source§

    impl KeyFileFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl KeyFileFlags

    Source

    pub const fn iter(&self) -> Iter<KeyFileFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl KeyFileFlags

    Source

    pub const fn iter(&self) -> Iter<KeyFileFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<KeyFileFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<KeyFileFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for KeyFileFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for KeyFileFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for KeyFileFlags

    Source§

    fn bitor(self, other: KeyFileFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for KeyFileFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for KeyFileFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for KeyFileFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for KeyFileFlags

    Source§

    fn clone(&self) -> KeyFileFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<KeyFileFlags> for KeyFileFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for KeyFileFlags

    Source§

    const FLAGS: &'static [Flag<KeyFileFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> KeyFileFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for KeyFileFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for KeyFileFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for KeyFileFlags

    Source§

    fn bitor(self, other: KeyFileFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for KeyFileFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for KeyFileFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for KeyFileFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for KeyFileFlags

    Source§

    fn clone(&self) -> KeyFileFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<KeyFileFlags> for KeyFileFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for KeyFileFlags

    Source§

    const FLAGS: &'static [Flag<KeyFileFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> KeyFileFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<KeyFileFlags> for KeyFileFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for KeyFileFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<KeyFileFlags> for KeyFileFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for KeyFileFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for KeyFileFlags

    Source§

    type Item = KeyFileFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<KeyFileFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for KeyFileFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for KeyFileFlags

    Source§

    fn eq(&self, other: &KeyFileFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for KeyFileFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for KeyFileFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for KeyFileFlags

    Source§

    type Item = KeyFileFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<KeyFileFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for KeyFileFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for KeyFileFlags

    Source§

    fn eq(&self, other: &KeyFileFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for KeyFileFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for KeyFileFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for KeyFileFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = KeyFileFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for KeyFileFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for KeyFileFlags

    Source§

    impl Eq for KeyFileFlags

    Source§

    impl StructuralPartialEq for KeyFileFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for KeyFileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for KeyFileFlags

    Source§

    impl Eq for KeyFileFlags

    Source§

    impl StructuralPartialEq for KeyFileFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.LogLevelFlags.html b/git/docs/glib/struct.LogLevelFlags.html index e3be86845e00..8632665f0513 100644 --- a/git/docs/glib/struct.LogLevelFlags.html +++ b/git/docs/glib/struct.LogLevelFlags.html @@ -1,4 +1,4 @@ -LogLevelFlags in glib - Rust +LogLevelFlags in glib - Rust -
    glib

    Struct LogLevelFlags

    Source
    pub struct LogLevelFlags(/* private fields */);
    Expand description

    Flags specifying the level of log messages.

    -

    It is possible to change how GLib treats messages of the various -levels using log_set_handler() and log_set_fatal_mask().

    -

    Implementations§

    Source§

    impl LogLevelFlags

    Source

    pub const FLAG_RECURSION: Self = _

    internal flag

    -
    Source

    pub const FLAG_FATAL: Self = _

    internal flag

    -
    Source

    pub const LEVEL_ERROR: Self = _

    log level for errors, see error(). -This level is also used for messages produced by assert().

    -
    Source

    pub const LEVEL_CRITICAL: Self = _

    log level for critical warning messages, see -critical(). This level is also used for messages produced by -return_if_fail() and return_val_if_fail().

    -
    Source

    pub const LEVEL_WARNING: Self = _

    log level for warnings, see warning()

    -
    Source

    pub const LEVEL_MESSAGE: Self = _

    log level for messages, see message()

    -
    Source

    pub const LEVEL_INFO: Self = _

    log level for informational messages, see info()

    -
    Source

    pub const LEVEL_DEBUG: Self = _

    log level for debug messages, see debug()

    -
    Source

    pub const LEVEL_MASK: Self = _

    a mask including all log levels

    -
    Source§

    impl LogLevelFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct LogLevelFlags

    Source
    pub struct LogLevelFlags(/* private fields */);

    Implementations§

    Source§

    impl LogLevelFlags

    Source

    pub const FLAG_RECURSION: Self = _

    Source

    pub const FLAG_FATAL: Self = _

    Source

    pub const LEVEL_ERROR: Self = _

    Source

    pub const LEVEL_CRITICAL: Self = _

    Source

    pub const LEVEL_WARNING: Self = _

    Source

    pub const LEVEL_MESSAGE: Self = _

    Source

    pub const LEVEL_INFO: Self = _

    Source

    pub const LEVEL_DEBUG: Self = _

    Source

    pub const LEVEL_MASK: Self = _

    Source§

    impl LogLevelFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl LogLevelFlags

    Source

    pub const fn iter(&self) -> Iter<LogLevelFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl LogLevelFlags

    Source

    pub const fn iter(&self) -> Iter<LogLevelFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<LogLevelFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<LogLevelFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for LogLevelFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for LogLevelFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for LogLevelFlags

    Source§

    fn bitor(self, other: LogLevelFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for LogLevelFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for LogLevelFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for LogLevelFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for LogLevelFlags

    Source§

    fn clone(&self) -> LogLevelFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<LogLevelFlags> for LogLevelFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for LogLevelFlags

    Source§

    const FLAGS: &'static [Flag<LogLevelFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> LogLevelFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for LogLevelFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for LogLevelFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for LogLevelFlags

    Source§

    fn bitor(self, other: LogLevelFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for LogLevelFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for LogLevelFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for LogLevelFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for LogLevelFlags

    Source§

    fn clone(&self) -> LogLevelFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<LogLevelFlags> for LogLevelFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for LogLevelFlags

    Source§

    const FLAGS: &'static [Flag<LogLevelFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> LogLevelFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<LogLevelFlags> for LogLevelFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for LogLevelFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<LogLevelFlags> for LogLevelFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for LogLevelFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for LogLevelFlags

    Source§

    type Item = LogLevelFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<LogLevelFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for LogLevelFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for LogLevelFlags

    Source§

    fn eq(&self, other: &LogLevelFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for LogLevelFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for LogLevelFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for LogLevelFlags

    Source§

    type Item = LogLevelFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<LogLevelFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for LogLevelFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for LogLevelFlags

    Source§

    fn eq(&self, other: &LogLevelFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for LogLevelFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for LogLevelFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for LogLevelFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = LogLevelFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for LogLevelFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for LogLevelFlags

    Source§

    impl Eq for LogLevelFlags

    Source§

    impl StructuralPartialEq for LogLevelFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for LogLevelFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for LogLevelFlags

    Source§

    impl Eq for LogLevelFlags

    Source§

    impl StructuralPartialEq for LogLevelFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.MainContext.html b/git/docs/glib/struct.MainContext.html index 81e015e7975e..361e5bc04091 100644 --- a/git/docs/glib/struct.MainContext.html +++ b/git/docs/glib/struct.MainContext.html @@ -1,4 +1,4 @@ -MainContext in glib - Rust +MainContext in glib - Rust -
    glib

    Struct MainContext

    Source
    pub struct MainContext { /* private fields */ }
    Expand description

    The GMainContext struct is an opaque data -type representing a set of sources to be handled in a main loop.

    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl MainContext

    Source

    pub fn as_ptr(&self) -> *mut GMainContext

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMainContext) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl MainContext

    Source

    pub fn new() -> MainContext

    Creates a new MainContext structure.

    -
    §Returns
    -

    the new #GMainContext

    -
    Source

    pub fn with_flags(flags: MainContextFlags) -> MainContext

    Available on crate feature v2_72 only.

    Creates a new MainContext structure.

    -
    §flags
    -

    a bitwise-OR combination of #GMainContextFlags flags that can only be -set at creation time.

    -
    §Returns
    -

    the new #GMainContext

    -
    Source

    pub fn dispatch(&self)

    Dispatches all pending sources.

    -

    You must have successfully acquired the context with -acquire() before you may call this function.

    -

    Since 2.76 @self can be None to use the global-default -main context.

    -
    Source

    pub fn is_owner(&self) -> bool

    Determines whether this thread holds the (recursive) -ownership of this MainContext. This is useful to -know before waiting on another thread that may be -blocking to get ownership of @self.

    -
    §Returns
    -

    true if current thread is owner of @self.

    -
    Source

    pub fn iteration(&self, may_block: bool) -> bool

    Runs a single iteration for the given main loop. This involves -checking to see if any event sources are ready to be processed, -then if no events sources are ready and @may_block is true, waiting -for a source to become ready, then dispatching the highest priority -events sources that are ready. Otherwise, if @may_block is false -sources are not waited to become ready, only those highest priority -events sources will be dispatched (if any), that are ready at this -given moment without further waiting.

    -

    Note that even when @may_block is true, it is still possible for -iteration() to return false, since the wait may -be interrupted for other reasons than an event source becoming ready.

    -
    §may_block
    -

    whether the call may block.

    -
    §Returns
    -

    true if events were dispatched.

    -
    Source

    pub fn pending(&self) -> bool

    Checks if any sources have pending events for the given context.

    -
    §Returns
    -

    true if events are pending.

    -
    Source

    pub fn wakeup(&self)

    If @self is currently blocking in iteration() -waiting for a source to become ready, cause it to stop blocking -and return. Otherwise, cause the next invocation of -iteration() to return without blocking.

    -

    This API is useful for low-level control over MainContext; for -example, integrating it with main loop implementations such as -MainLoop.

    -

    Another related use for this function is when implementing a main -loop with a termination condition, computed from multiple threads:

    -

    ⚠️ The following code is in C ⚠️

    -
      #define NUM_TASKS 10
    -  static gint tasks_remaining = NUM_TASKS;  // (atomic)
    -  ...
    -
    -  while (g_atomic_int_get (&tasks_remaining) != 0)
    -    g_main_context_iteration (NULL, TRUE);
    -

    Then in a thread:

    -

    ⚠️ The following code is in C ⚠️

    -
      perform_work();
    -
    -  if (g_atomic_int_dec_and_test (&tasks_remaining))
    -    g_main_context_wakeup (NULL);
    Source

    pub fn default() -> MainContext

    Returns the global-default main context. This is the main context -used for main loop functions when a main loop is not explicitly -specified, and corresponds to the “main” main loop. See also -thread_default().

    -
    §Returns
    -

    the global-default main context.

    -
    Source

    pub fn thread_default() -> Option<MainContext>

    Gets the thread-default #GMainContext for this thread. Asynchronous -operations that want to be able to be run in contexts other than -the default one should call this method or -ref_thread_default() to get a -MainContext to add their Sources to. (Note that -even in single-threaded programs applications may sometimes want to -temporarily push a non-default context, so it is not safe to assume that -this will always return None if you are running in the default thread.)

    -

    If you need to hold a reference on the context, use -ref_thread_default() instead.

    -
    §Returns
    -

    the thread-default #GMainContext, or -None if the thread-default context is the global-default main context.

    -
    Source

    pub fn ref_thread_default() -> MainContext

    Gets the thread-default MainContext for this thread, as with -thread_default(), but also adds a reference to -it with GLib::MainContext::ref(). In addition, unlike -thread_default(), if the thread-default context -is the global-default context, this will return that -MainContext (with a ref added to it) rather than returning -None.

    -
    §Returns
    -

    the thread-default #GMainContext. Unref -with GLib::MainContext::unref() when you are done with it.

    -
    Source§

    impl MainContext

    Source

    pub fn prepare(&self) -> (bool, i32)

    Prepares to poll sources within a main loop. The resulting information -for polling is determined by calling GLib::MainContext::query().

    -

    You must have successfully acquired the context with -acquire() before you may call this function.

    -
    §Returns
    -

    true if some source is ready to be dispatched -prior to polling.

    -
    §priority
    -

    location to store priority of highest priority -source already ready.

    -
    Source

    pub fn find_source_by_id(&self, source_id: &SourceId) -> Option<Source>

    Finds a #GSource given a pair of context and ID.

    -

    It is a programmer error to attempt to look up a non-existent source.

    -

    More specifically: source IDs can be reissued after a source has been -destroyed and therefore it is never valid to use this function with a -source ID which may have already been removed. An example is when -scheduling an idle to run in another thread with idle_add(): the -idle may already have run and been removed by the time this function -is called on its (now invalid) source ID. This source ID may have -been reissued, leading to the operation being performed against the -wrong source.

    -
    §source_id
    -

    the source ID, as returned by GLib::Source::get_id().

    -
    §Returns
    -

    the #GSource

    -
    Source

    pub fn invoke<F>(&self, func: F)
    where +
    glib

    Struct MainContext

    Source
    pub struct MainContext { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl MainContext

    Source

    pub fn as_ptr(&self) -> *mut GMainContext

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMainContext) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl MainContext

    Source

    pub fn new() -> MainContext

    Source

    pub fn with_flags(flags: MainContextFlags) -> MainContext

    Available on crate feature v2_72 only.
    Source

    pub fn dispatch(&self)

    Source

    pub fn is_owner(&self) -> bool

    Source

    pub fn iteration(&self, may_block: bool) -> bool

    Source

    pub fn pending(&self) -> bool

    Source

    pub fn wakeup(&self)

    Source

    pub fn default() -> MainContext

    Source

    pub fn thread_default() -> Option<MainContext>

    Source

    pub fn ref_thread_default() -> MainContext

    Source§

    impl MainContext

    Source

    pub fn prepare(&self) -> (bool, i32)

    Source

    pub fn find_source_by_id(&self, source_id: &SourceId) -> Option<Source>

    Source

    pub fn invoke<F>(&self, func: F)
    where F: FnOnce() + Send + 'static,

    Invokes func on the main context.

    If the current thread is the owner of the main context or the main context currently has no owner then func will be called directly from inside this function. If this behaviour is not desired and func should always be called asynchronously then use MainContext::spawn -glib::idle_add instead. -Invokes a function in such a way that @self is owned during the -invocation of @function.

    -

    If @self is None then the global-default main context — as -returned by default() — is used.

    -

    If @self is owned by the current thread, @function is called -directly. Otherwise, if @self is the thread-default main context -of the current thread and acquire() succeeds, then -@function is called and [release()][Self::release()] is called -afterwards.

    -

    In any other case, an idle source is created to call @function and -that source is attached to @self (presumably to be run in another -thread). The idle source is attached with GLib::PRIORITY_DEFAULT -priority. If you want a different priority, use -[invoke_full()][Self::invoke_full()].

    -

    Note that, as with normal idle functions, @function should probably -return false. If it returns true, it will be continuously run in a -loop (and may prevent this call from returning).

    -
    §function
    -

    function to call

    -
    Source

    pub fn invoke_with_priority<F>(&self, priority: Priority, func: F)
    where +glib::idle_add instead.

    +

    Source

    pub fn invoke_with_priority<F>(&self, priority: Priority, func: F)
    where F: FnOnce() + Send + 'static,

    Invokes func on the main context with the given priority.

    If the current thread is the owner of the main context or the main context currently has no owner then func will be called directly from inside this function. If this behaviour is not desired and func should always be called asynchronously then use MainContext::spawn glib::idle_add instead.

    -
    Source

    pub fn invoke_local<F>(&self, func: F)
    where +

    Source

    pub fn invoke_local<F>(&self, func: F)
    where F: FnOnce() + 'static,

    Invokes func on the main context.

    Different to invoke(), this does not require func to be Send but can only be called from the thread that owns the main context.

    @@ -229,7 +96,7 @@
    §functionfunc should always be called asynchronously then use MainContext::spawn_local glib::idle_add_local instead.

    -
    Source

    pub fn invoke_local_with_priority<F>(&self, _priority: Priority, func: F)
    where +

    Source

    pub fn invoke_local_with_priority<F>(&self, _priority: Priority, func: F)
    where F: FnOnce() + 'static,

    Invokes func on the main context with the given priority.

    Different to invoke_with_priority(), this does not require func to be Send but can only be called from the thread that owns the main context.

    @@ -239,31 +106,16 @@
    §functionfunc should always be called asynchronously then use MainContext::spawn_local glib::idle_add_local instead.

    -
    Source

    pub fn with_thread_default<R, F: FnOnce() -> R + Sized>( +

    Source

    pub fn with_thread_default<R, F: FnOnce() -> R + Sized>( &self, func: F, ) -> Result<R, BoolError>

    Call closure with the main context configured as the thread default one.

    The thread default main context is changed in a panic-safe manner before calling func and released again afterwards regardless of whether closure panicked or not.

    This will fail if the main context is owned already by another thread.

    -
    Source

    pub fn acquire(&self) -> Result<MainContextAcquireGuard<'_>, BoolError>

    Acquire ownership of the main context.

    +
    Source

    pub fn acquire(&self) -> Result<MainContextAcquireGuard<'_>, BoolError>

    Acquire ownership of the main context.

    Ownership will automatically be released again once the returned acquire guard is dropped.

    -

    This will fail if the main context is owned already by another thread. -Tries to become the owner of the specified context. -If some other thread is the owner of the context, -returns false immediately. Ownership is properly -recursive: the owner can require ownership again -and will release ownership when [release()][Self::release()] -is called as many times as acquire().

    -

    You must be the owner of a context before you -can call prepare(), GLib::MainContext::query(), -GLib::MainContext::check(), dispatch(), -[release()][Self::release()].

    -

    Since 2.76 @self can be None to use the global-default -main context.

    -
    §Returns
    -

    true if the operation succeeded, and -this thread is now the owner of @self.

    +

    This will fail if the main context is owned already by another thread.

    Source§

    impl MainContext

    Source

    pub fn spawn<R: Send + 'static, F: Future<Output = R> + Send + 'static>( &self, f: F, @@ -312,21 +164,21 @@

    §Returns

    The given Future does not have to be Send or 'static.

    This must only be called if no MainLoop or anything else is running on this specific main context.

    -

    Trait Implementations§

    Source§

    impl Clone for MainContext

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +

    Trait Implementations§

    Source§

    impl Clone for MainContext

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainContext

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for MainContext

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl From<MainContext> for Value

    Source§

    fn from(s: MainContext) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for MainContext

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = MainContext

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, MainContext>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for MainContext

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainContext

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for MainContext

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl From<MainContext> for Value

    Source§

    fn from(s: MainContext) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for MainContext

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = MainContext

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, MainContext>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for MainContext

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl LocalSpawn for MainContext

    Source§

    fn spawn_local_obj( &self, f: LocalFutureObj<'static, ()>, -) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status_local(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    Source§

    impl Ord for MainContext

    Source§

    fn cmp(&self, other: &MainContext) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status_local(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    Source§

    impl Ord for MainContext

    Source§

    fn cmp(&self, other: &MainContext) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MainContext

    Source§

    fn eq(&self, other: &MainContext) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MainContext

    Source§

    fn partial_cmp(&self, other: &MainContext) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MainContext

    Source§

    fn eq(&self, other: &MainContext) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MainContext

    Source§

    fn partial_cmp(&self, other: &MainContext) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Spawn for MainContext

    Source§

    fn spawn_obj(&self, f: FutureObj<'static, ()>) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    Source§

    impl StaticType for MainContext

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for MainContext

    Source§

    impl Send for MainContext

    Source§

    impl StructuralPartialEq for MainContext

    Source§

    impl Sync for MainContext

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl Spawn for MainContext

    Source§

    fn spawn_obj(&self, f: FutureObj<'static, ()>) -> Result<(), SpawnError>

    Spawns a future that will be run to completion. Read more
    §

    fn status(&self) -> Result<(), SpawnError>

    Determines whether the executor is able to spawn new tasks. Read more
    Source§

    impl StaticType for MainContext

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for MainContext

    Source§

    impl Send for MainContext

    Source§

    impl StructuralPartialEq for MainContext

    Source§

    impl Sync for MainContext

    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> CloneToUninit for T
    where @@ -365,8 +217,8 @@
    §Returns
    Fut: Future<Output = ()> + Send + 'static,

    Spawns a task that polls the given future with output () to completion. Read more
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.MainContextAcquireGuard.html b/git/docs/glib/struct.MainContextAcquireGuard.html index 33df490e08db..cbd1a8034f9e 100644 --- a/git/docs/glib/struct.MainContextAcquireGuard.html +++ b/git/docs/glib/struct.MainContextAcquireGuard.html @@ -71,7 +71,7 @@ -
    glib

    Struct MainContextAcquireGuard

    Source
    pub struct MainContextAcquireGuard<'a>(/* private fields */);

    Trait Implementations§

    Source§

    impl Drop for MainContextAcquireGuard<'_>

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +
    glib

    Struct MainContextAcquireGuard

    Source
    pub struct MainContextAcquireGuard<'a>(/* private fields */);

    Trait Implementations§

    Source§

    impl Drop for MainContextAcquireGuard<'_>

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more

    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> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/git/docs/glib/struct.MainContextFlags.html b/git/docs/glib/struct.MainContextFlags.html index 8e218c8a203b..eda9bfd0f426 100644 --- a/git/docs/glib/struct.MainContextFlags.html +++ b/git/docs/glib/struct.MainContextFlags.html @@ -1,4 +1,4 @@ -MainContextFlags in glib - Rust +MainContextFlags in glib - Rust -
    glib

    Struct MainContextFlags

    Source
    pub struct MainContextFlags(/* private fields */);
    Available on crate feature v2_72 only.
    Expand description

    Flags to pass to GLib::MainContext::new_with_flags() which affect the -behaviour of a MainContext.

    -

    Implementations§

    Source§

    impl MainContextFlags

    Source

    pub const NONE: Self = _

    Default behaviour.

    -
    Source

    pub const OWNERLESS_POLLING: Self = _

    Assume that polling for events will -free the thread to process other jobs. That’s useful if you’re using -g_main_context_{prepare,query,check,dispatch} to integrate GMainContext in -other event loops.

    -
    Source§

    impl MainContextFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct MainContextFlags

    Source
    pub struct MainContextFlags(/* private fields */);
    Available on crate feature v2_72 only.

    Implementations§

    Source§

    impl MainContextFlags

    Source

    pub const NONE: Self = _

    Source

    pub const OWNERLESS_POLLING: Self = _

    Source§

    impl MainContextFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl MainContextFlags

    Source

    pub const fn iter(&self) -> Iter<MainContextFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl MainContextFlags

    Source

    pub const fn iter(&self) -> Iter<MainContextFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<MainContextFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<MainContextFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for MainContextFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = MainContextFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for MainContextFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for MainContextFlags

    Source§

    fn bitor(self, other: MainContextFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = MainContextFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for MainContextFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for MainContextFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = MainContextFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for MainContextFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for MainContextFlags

    Source§

    fn clone(&self) -> MainContextFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<MainContextFlags> for MainContextFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for MainContextFlags

    Source§

    const FLAGS: &'static [Flag<MainContextFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> MainContextFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for MainContextFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = MainContextFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for MainContextFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for MainContextFlags

    Source§

    fn bitor(self, other: MainContextFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = MainContextFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for MainContextFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for MainContextFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = MainContextFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for MainContextFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for MainContextFlags

    Source§

    fn clone(&self) -> MainContextFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<MainContextFlags> for MainContextFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for MainContextFlags

    Source§

    const FLAGS: &'static [Flag<MainContextFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> MainContextFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<MainContextFlags> for MainContextFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for MainContextFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<MainContextFlags> for MainContextFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for MainContextFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for MainContextFlags

    Source§

    type Item = MainContextFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<MainContextFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for MainContextFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = MainContextFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for MainContextFlags

    Source§

    fn eq(&self, other: &MainContextFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for MainContextFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for MainContextFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more

    Source§

    impl IntoIterator for MainContextFlags

    Source§

    type Item = MainContextFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<MainContextFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for MainContextFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = MainContextFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for MainContextFlags

    Source§

    fn eq(&self, other: &MainContextFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for MainContextFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for MainContextFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = MainContextFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for MainContextFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = MainContextFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for MainContextFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for MainContextFlags

    Source§

    impl Eq for MainContextFlags

    Source§

    impl StructuralPartialEq for MainContextFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for MainContextFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for MainContextFlags

    Source§

    impl Eq for MainContextFlags

    Source§

    impl StructuralPartialEq for MainContextFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.MainLoop.html b/git/docs/glib/struct.MainLoop.html index f86e226d4829..21f9f238f643 100644 --- a/git/docs/glib/struct.MainLoop.html +++ b/git/docs/glib/struct.MainLoop.html @@ -1,4 +1,4 @@ -MainLoop in glib - Rust +MainLoop in glib - Rust -
    glib

    Struct MainLoop

    Source
    pub struct MainLoop { /* private fields */ }
    Expand description

    The GMainLoop struct is an opaque data type -representing the main event loop of a GLib or GTK application.

    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl MainLoop

    Source

    pub fn as_ptr(&self) -> *mut GMainLoop

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMainLoop) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl MainLoop

    Source

    pub fn new(context: Option<&MainContext>, is_running: bool) -> MainLoop

    Creates a new MainLoop structure.

    -
    §context
    -

    a #GMainContext (if None, the global-default -main context will be used).

    -
    §is_running
    -

    set to true to indicate that the loop is running. This -is not very important since calling run() will set this -to true anyway.

    -
    §Returns
    -

    a new #GMainLoop.

    -
    Source

    pub fn context(&self) -> MainContext

    Returns the MainContext of @self.

    -
    §Returns
    -

    the MainContext of @self

    -
    Source

    pub fn is_running(&self) -> bool

    Checks to see if the main loop is currently being run via -run().

    -
    §Returns
    -

    true if the mainloop is currently being run.

    -
    Source

    pub fn quit(&self)

    Stops a MainLoop from running. Any calls to -run() for the loop will return.

    -

    Note that sources that have already been dispatched when -quit() is called will still be executed.

    -
    Source

    pub fn run(&self)

    Runs a main loop until quit() is called on the loop. -If this is called for the thread of the loop’s #GMainContext, -it will process events from the loop, otherwise it will -simply wait.

    -

    Trait Implementations§

    Source§

    impl Clone for MainLoop

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +
    glib

    Struct MainLoop

    Source
    pub struct MainLoop { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl MainLoop

    Source

    pub fn as_ptr(&self) -> *mut GMainLoop

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMainLoop) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl MainLoop

    Source

    pub fn new(context: Option<&MainContext>, is_running: bool) -> MainLoop

    Source

    pub fn context(&self) -> MainContext

    Source

    pub fn is_running(&self) -> bool

    Source

    pub fn quit(&self)

    Source

    pub fn run(&self)

    Trait Implementations§

    Source§

    impl Clone for MainLoop

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainLoop

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<MainLoop> for Value

    Source§

    fn from(s: MainLoop) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for MainLoop

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = MainLoop

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, MainLoop>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for MainLoop

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MainLoop

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<MainLoop> for Value

    Source§

    fn from(s: MainLoop) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for MainLoop

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = MainLoop

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, MainLoop>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for MainLoop

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for MainLoop

    Source§

    fn cmp(&self, other: &MainLoop) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for MainLoop

    Source§

    fn cmp(&self, other: &MainLoop) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MainLoop

    Source§

    fn eq(&self, other: &MainLoop) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MainLoop

    Source§

    fn partial_cmp(&self, other: &MainLoop) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MainLoop

    Source§

    fn eq(&self, other: &MainLoop) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MainLoop

    Source§

    fn partial_cmp(&self, other: &MainLoop) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for MainLoop

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for MainLoop

    Source§

    impl Send for MainLoop

    Source§

    impl StructuralPartialEq for MainLoop

    Source§

    impl Sync for MainLoop

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for MainLoop

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for MainLoop

    Source§

    impl Send for MainLoop

    Source§

    impl StructuralPartialEq for MainLoop

    Source§

    impl Sync for MainLoop

    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> CloneToUninit for T
    where @@ -145,8 +118,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.MarkupParseContext.html b/git/docs/glib/struct.MarkupParseContext.html index 1f4f30c494e1..7e263c1ea284 100644 --- a/git/docs/glib/struct.MarkupParseContext.html +++ b/git/docs/glib/struct.MarkupParseContext.html @@ -1,4 +1,4 @@ -MarkupParseContext in glib - Rust +MarkupParseContext in glib - Rust -
    glib

    Struct MarkupParseContext

    Source
    pub struct MarkupParseContext { /* private fields */ }
    Expand description

    A parse context is used to parse a stream of bytes that -you expect to contain marked-up text.

    -

    See g_markup_parse_context_new(), #GMarkupParser, and so -on for more details.

    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl MarkupParseContext

    Source

    pub fn as_ptr(&self) -> *mut GMarkupParseContext

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMarkupParseContext) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl MarkupParseContext

    Source

    pub fn end_parse(&self) -> Result<(), Error>

    Signals to the #GMarkupParseContext that all data has been -fed into the parse context with g_markup_parse_context_parse().

    -

    This function reports an error if the document isn’t complete, -for example if elements are still open.

    -
    §Returns
    -

    true on success, false if an error was set

    -
    Source

    pub fn element(&self) -> GString

    Retrieves the name of the currently open element.

    -

    If called from the start_element or end_element handlers this will -give the element_name as passed to those functions. For the parent -elements, see g_markup_parse_context_get_element_stack().

    -
    §Returns
    -

    the name of the currently open element, or None

    -
    Source

    pub fn element_stack(&self) -> Vec<GString>

    Retrieves the element stack from the internal state of the parser.

    -

    The returned #GSList is a list of strings where the first item is -the currently open tag (as would be returned by -g_markup_parse_context_get_element()) and the next item is its -immediate parent.

    -

    This function is intended to be used in the start_element and -end_element handlers where g_markup_parse_context_get_element() -would merely return the name of the element that is being -processed.

    -
    §Returns
    -

    the element stack, which must not be modified

    -
    Source

    pub fn position(&self) -> (i32, i32)

    Retrieves the current line number and the number of the character on -that line. Intended for use in error messages; there are no strict -semantics for what constitutes the “current” line number other than -“the best number we could come up with for error messages.”

    -
    §Returns
    §line_number
    -

    return location for a line number, or None

    -
    §char_number
    -

    return location for a char-on-line number, or None

    -
    Source

    pub fn parse(&self, text: &str) -> Result<(), Error>

    Feed some data to the #GMarkupParseContext.

    -

    The data need not be valid UTF-8; an error will be signaled if -it’s invalid. The data need not be an entire document; you can -feed a document into the parser incrementally, via multiple calls -to this function. Typically, as you receive data from a network -connection or file, you feed each received chunk of data into this -function, aborting the process if an error occurs. Once an error -is reported, no further data may be fed to the #GMarkupParseContext; -all errors are fatal.

    -
    §text
    -

    chunk of text to parse

    -
    §text_len
    -

    length of @text in bytes

    -
    §Returns
    -

    false if an error occurred, true on success

    -

    Trait Implementations§

    Source§

    impl Clone for MarkupParseContext

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +
    glib

    Struct MarkupParseContext

    Source
    pub struct MarkupParseContext { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl MarkupParseContext

    Source

    pub fn as_ptr(&self) -> *mut GMarkupParseContext

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMarkupParseContext) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl MarkupParseContext

    Source

    pub fn end_parse(&self) -> Result<(), Error>

    Source

    pub fn element(&self) -> GString

    Source

    pub fn element_stack(&self) -> Vec<GString>

    Source

    pub fn position(&self) -> (i32, i32)

    Source

    pub fn parse(&self, text: &str) -> Result<(), Error>

    Trait Implementations§

    Source§

    impl Clone for MarkupParseContext

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MarkupParseContext

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<MarkupParseContext> for Value

    Source§

    fn from(s: MarkupParseContext) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for MarkupParseContext

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = MarkupParseContext

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, MarkupParseContext>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for MarkupParseContext

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for MarkupParseContext

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<MarkupParseContext> for Value

    Source§

    fn from(s: MarkupParseContext) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for MarkupParseContext

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = MarkupParseContext

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, MarkupParseContext>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for MarkupParseContext

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for MarkupParseContext

    Source§

    fn cmp(&self, other: &MarkupParseContext) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for MarkupParseContext

    Source§

    fn cmp(&self, other: &MarkupParseContext) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MarkupParseContext

    Source§

    fn eq(&self, other: &MarkupParseContext) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MarkupParseContext

    Source§

    fn partial_cmp(&self, other: &MarkupParseContext) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for MarkupParseContext

    Source§

    fn eq(&self, other: &MarkupParseContext) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for MarkupParseContext

    Source§

    fn partial_cmp(&self, other: &MarkupParseContext) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for MarkupParseContext

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for MarkupParseContext

    Source§

    impl StructuralPartialEq for MarkupParseContext

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for MarkupParseContext

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for MarkupParseContext

    Source§

    impl StructuralPartialEq for MarkupParseContext

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.OptionFlags.html b/git/docs/glib/struct.OptionFlags.html index fa3997faf183..7229bb2acd4f 100644 --- a/git/docs/glib/struct.OptionFlags.html +++ b/git/docs/glib/struct.OptionFlags.html @@ -1,4 +1,4 @@ -OptionFlags in glib - Rust +OptionFlags in glib - Rust -
    glib

    Struct OptionFlags

    Source
    pub struct OptionFlags(/* private fields */);
    Expand description

    Flags which modify individual options.

    -

    Implementations§

    Source§

    impl OptionFlags

    Source

    pub const NONE: Self = _

    No flags. Since: 2.42.

    -
    Source

    pub const HIDDEN: Self = _

    The option doesn’t appear in --help output.

    -
    Source

    pub const IN_MAIN: Self = _

    The option appears in the main section of the ---help output, even if it is defined in a group.

    -
    Source

    pub const REVERSE: Self = _

    For options of the OptionArg::None kind, this -flag indicates that the sense of the option is reversed. i.e. false will -be stored into the argument rather than true.

    -
    Source

    pub const NO_ARG: Self = _

    For options of the OptionArg::Callback kind, -this flag indicates that the callback does not take any argument -(like a OptionArg::None option). Since 2.8

    -
    Source

    pub const FILENAME: Self = _

    For options of the OptionArg::Callback -kind, this flag indicates that the argument should be passed to the -callback in the GLib filename encoding rather than UTF-8. Since 2.8

    -
    Source

    pub const OPTIONAL_ARG: Self = _

    For options of the OptionArg::Callback -kind, this flag indicates that the argument supply is optional. -If no argument is given then data of GOptionParseFunc will be -set to NULL. Since 2.8

    -
    Source

    pub const NOALIAS: Self = _

    This flag turns off the automatic conflict -resolution which prefixes long option names with groupname- if -there is a conflict. This option should only be used in situations -where aliasing is necessary to model some legacy commandline interface. -It is not safe to use this option, unless all option groups are under -your direct control. Since 2.8.

    -
    Source§

    impl OptionFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct OptionFlags

    Source
    pub struct OptionFlags(/* private fields */);

    Implementations§

    Source§

    impl OptionFlags

    Source

    pub const NONE: Self = _

    Source

    pub const HIDDEN: Self = _

    Source

    pub const IN_MAIN: Self = _

    Source

    pub const REVERSE: Self = _

    Source

    pub const NO_ARG: Self = _

    Source

    pub const FILENAME: Self = _

    Source

    pub const OPTIONAL_ARG: Self = _

    Source

    pub const NOALIAS: Self = _

    Source§

    impl OptionFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl OptionFlags

    Source

    pub const fn iter(&self) -> Iter<OptionFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl OptionFlags

    Source

    pub const fn iter(&self) -> Iter<OptionFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<OptionFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<OptionFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for OptionFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = OptionFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for OptionFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for OptionFlags

    Source§

    fn bitor(self, other: OptionFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = OptionFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for OptionFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for OptionFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = OptionFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for OptionFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for OptionFlags

    Source§

    fn clone(&self) -> OptionFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<OptionFlags> for OptionFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for OptionFlags

    Source§

    const FLAGS: &'static [Flag<OptionFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> OptionFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for OptionFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = OptionFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for OptionFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for OptionFlags

    Source§

    fn bitor(self, other: OptionFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = OptionFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for OptionFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for OptionFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = OptionFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for OptionFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for OptionFlags

    Source§

    fn clone(&self) -> OptionFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<OptionFlags> for OptionFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for OptionFlags

    Source§

    const FLAGS: &'static [Flag<OptionFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> OptionFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<OptionFlags> for OptionFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for OptionFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<OptionFlags> for OptionFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for OptionFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for OptionFlags

    Source§

    type Item = OptionFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<OptionFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for OptionFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = OptionFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for OptionFlags

    Source§

    fn eq(&self, other: &OptionFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for OptionFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for OptionFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for OptionFlags

    Source§

    type Item = OptionFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<OptionFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for OptionFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = OptionFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for OptionFlags

    Source§

    fn eq(&self, other: &OptionFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for OptionFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for OptionFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = OptionFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for OptionFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = OptionFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for OptionFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for OptionFlags

    Source§

    impl Eq for OptionFlags

    Source§

    impl StructuralPartialEq for OptionFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for OptionFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for OptionFlags

    Source§

    impl Eq for OptionFlags

    Source§

    impl StructuralPartialEq for OptionFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.ParamSpec.html b/git/docs/glib/struct.ParamSpec.html index d05d234bb196..fb5c7b0321cb 100644 --- a/git/docs/glib/struct.ParamSpec.html +++ b/git/docs/glib/struct.ParamSpec.html @@ -165,8 +165,8 @@
    §Returns

    Source§

    impl<T> IntoClosureReturnValue for T
    where T: Into<Value>,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecBoolean.html b/git/docs/glib/struct.ParamSpecBoolean.html index d66a6cfa37ac..cde71d419f9c 100644 --- a/git/docs/glib/struct.ParamSpecBoolean.html +++ b/git/docs/glib/struct.ParamSpecBoolean.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecBoxed.html b/git/docs/glib/struct.ParamSpecBoxed.html index 1b4a4936acb1..b22658091d76 100644 --- a/git/docs/glib/struct.ParamSpecBoxed.html +++ b/git/docs/glib/struct.ParamSpecBoxed.html @@ -150,8 +150,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecChar.html b/git/docs/glib/struct.ParamSpecChar.html index 8315741d0fc3..4183478ecca1 100644 --- a/git/docs/glib/struct.ParamSpecChar.html +++ b/git/docs/glib/struct.ParamSpecChar.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecDouble.html b/git/docs/glib/struct.ParamSpecDouble.html index 1dc577f58239..edefa9ded074 100644 --- a/git/docs/glib/struct.ParamSpecDouble.html +++ b/git/docs/glib/struct.ParamSpecDouble.html @@ -150,8 +150,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecEnum.html b/git/docs/glib/struct.ParamSpecEnum.html index c2aa8f8fa422..538949031bf1 100644 --- a/git/docs/glib/struct.ParamSpecEnum.html +++ b/git/docs/glib/struct.ParamSpecEnum.html @@ -156,8 +156,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecFlags.html b/git/docs/glib/struct.ParamSpecFlags.html index 9d92be6e9506..fa787b487c76 100644 --- a/git/docs/glib/struct.ParamSpecFlags.html +++ b/git/docs/glib/struct.ParamSpecFlags.html @@ -153,8 +153,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecFloat.html b/git/docs/glib/struct.ParamSpecFloat.html index 809a42223d8f..5452a52d1bac 100644 --- a/git/docs/glib/struct.ParamSpecFloat.html +++ b/git/docs/glib/struct.ParamSpecFloat.html @@ -150,8 +150,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecGType.html b/git/docs/glib/struct.ParamSpecGType.html index 5a0d50b805ad..bffce629583d 100644 --- a/git/docs/glib/struct.ParamSpecGType.html +++ b/git/docs/glib/struct.ParamSpecGType.html @@ -150,8 +150,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecInt.html b/git/docs/glib/struct.ParamSpecInt.html index afc6bf8d5840..052c30aa84fa 100644 --- a/git/docs/glib/struct.ParamSpecInt.html +++ b/git/docs/glib/struct.ParamSpecInt.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecInt64.html b/git/docs/glib/struct.ParamSpecInt64.html index 3648302ccd9b..c0dd87b66921 100644 --- a/git/docs/glib/struct.ParamSpecInt64.html +++ b/git/docs/glib/struct.ParamSpecInt64.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecLong.html b/git/docs/glib/struct.ParamSpecLong.html index 570e0c4de3fe..ddf9026aec3c 100644 --- a/git/docs/glib/struct.ParamSpecLong.html +++ b/git/docs/glib/struct.ParamSpecLong.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecObject.html b/git/docs/glib/struct.ParamSpecObject.html index 1855a7dcd0fd..b9c90fea6d10 100644 --- a/git/docs/glib/struct.ParamSpecObject.html +++ b/git/docs/glib/struct.ParamSpecObject.html @@ -152,8 +152,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecOverride.html b/git/docs/glib/struct.ParamSpecOverride.html index 3f44e6b5edd6..af23843d2df3 100644 --- a/git/docs/glib/struct.ParamSpecOverride.html +++ b/git/docs/glib/struct.ParamSpecOverride.html @@ -171,8 +171,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecParam.html b/git/docs/glib/struct.ParamSpecParam.html index a88e8c74ede7..ca1fdeaacd44 100644 --- a/git/docs/glib/struct.ParamSpecParam.html +++ b/git/docs/glib/struct.ParamSpecParam.html @@ -151,8 +151,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecPointer.html b/git/docs/glib/struct.ParamSpecPointer.html index dfc71b3b9ae7..728a08bc0b52 100644 --- a/git/docs/glib/struct.ParamSpecPointer.html +++ b/git/docs/glib/struct.ParamSpecPointer.html @@ -150,8 +150,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecString.html b/git/docs/glib/struct.ParamSpecString.html index 2b3a56602b53..8093752927c7 100644 --- a/git/docs/glib/struct.ParamSpecString.html +++ b/git/docs/glib/struct.ParamSpecString.html @@ -151,8 +151,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecUChar.html b/git/docs/glib/struct.ParamSpecUChar.html index ea0a6c71380e..b5dbb689d9b8 100644 --- a/git/docs/glib/struct.ParamSpecUChar.html +++ b/git/docs/glib/struct.ParamSpecUChar.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecUInt.html b/git/docs/glib/struct.ParamSpecUInt.html index 114dc5d2ceda..7a559289389c 100644 --- a/git/docs/glib/struct.ParamSpecUInt.html +++ b/git/docs/glib/struct.ParamSpecUInt.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecUInt64.html b/git/docs/glib/struct.ParamSpecUInt64.html index a3075e5747bc..e8ea7da43607 100644 --- a/git/docs/glib/struct.ParamSpecUInt64.html +++ b/git/docs/glib/struct.ParamSpecUInt64.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecULong.html b/git/docs/glib/struct.ParamSpecULong.html index 026eeddb7198..5ae275ccc37f 100644 --- a/git/docs/glib/struct.ParamSpecULong.html +++ b/git/docs/glib/struct.ParamSpecULong.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecUnichar.html b/git/docs/glib/struct.ParamSpecUnichar.html index 91f447c53b22..3a1ab2c35044 100644 --- a/git/docs/glib/struct.ParamSpecUnichar.html +++ b/git/docs/glib/struct.ParamSpecUnichar.html @@ -149,8 +149,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecValueArray.html b/git/docs/glib/struct.ParamSpecValueArray.html index 8ffc7c5a819e..a07236889d4d 100644 --- a/git/docs/glib/struct.ParamSpecValueArray.html +++ b/git/docs/glib/struct.ParamSpecValueArray.html @@ -150,8 +150,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.ParamSpecVariant.html b/git/docs/glib/struct.ParamSpecVariant.html index 0c5b74f78f97..db866b76bce2 100644 --- a/git/docs/glib/struct.ParamSpecVariant.html +++ b/git/docs/glib/struct.ParamSpecVariant.html @@ -158,8 +158,8 @@
    §Returns
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.Regex.html b/git/docs/glib/struct.Regex.html index 8cfa79103c7e..bb6264f3c2c9 100644 --- a/git/docs/glib/struct.Regex.html +++ b/git/docs/glib/struct.Regex.html @@ -1,4 +1,4 @@ -Regex in glib - Rust +Regex in glib - Rust -
    glib

    Struct Regex

    Source
    pub struct Regex { /* private fields */ }
    Expand description

    A GRegex is the “compiled” form of a regular expression pattern.

    -

    GRegex implements regular expression pattern matching using syntax and -semantics similar to Perl regular expression. See the -PCRE documentation for the syntax definition.

    -

    Some functions accept a @start_position argument, setting it differs -from just passing over a shortened string and setting RegexMatchFlags::NOTBOL -in the case of a pattern that begins with any kind of lookbehind assertion. -For example, consider the pattern “\Biss\B” which finds occurrences of “iss” -in the middle of words. (“\B” matches only if the current position in the -subject is not a word boundary.) When applied to the string “Mississipi” -from the fourth byte, namely “issipi”, it does not match, because “\B” is -always false at the start of the subject, which is deemed to be a word -boundary. However, if the entire string is passed , but with -@start_position set to 4, it finds the second occurrence of “iss” because -it is able to look behind the starting point to discover that it is -preceded by a letter.

    -

    Note that, unless you set the RegexCompileFlags::RAW flag, all the strings passed -to these functions must be encoded in UTF-8. The lengths and the positions -inside the strings are in bytes and not in characters, so, for instance, -“\xc3\xa0” (i.e. “à”) is two bytes long but it is treated as a -single character. If you set RegexCompileFlags::RAW the strings can be non-valid -UTF-8 strings and a byte is treated as a character, so “\xc3\xa0” is two -bytes and two characters long.

    -

    When matching a pattern, “\n” matches only against a “\n” character in -the string, and “\r” matches only a “\r” character. To match any newline -sequence use “\R”. This particular group matches either the two-character -sequence CR + LF (“\r\n”), or one of the single characters LF (linefeed, -U+000A, “\n”), VT vertical tab, U+000B, “\v”), FF (formfeed, U+000C, “\f”), -CR (carriage return, U+000D, “\r”), NEL (next line, U+0085), LS (line -separator, U+2028), or PS (paragraph separator, U+2029).

    -

    The behaviour of the dot, circumflex, and dollar metacharacters are -affected by newline characters, the default is to recognize any newline -character (the same characters recognized by “\R”). This can be changed -with G_REGEX_NEWLINE_CR, G_REGEX_NEWLINE_LF and G_REGEX_NEWLINE_CRLF -compile options, and with G_REGEX_MATCH_NEWLINE_ANY, -G_REGEX_MATCH_NEWLINE_CR, G_REGEX_MATCH_NEWLINE_LF and -G_REGEX_MATCH_NEWLINE_CRLF match options. These settings are also -relevant when compiling a pattern if G_REGEX_EXTENDED is set, and an -unescaped “#” outside a character class is encountered. This indicates -a comment that lasts until after the next newline.

    -

    Creating and manipulating the same GRegex structure from different -threads is not a problem as GRegex does not modify its internal -state between creation and destruction, on the other hand GMatchInfo -is not threadsafe.

    -

    The regular expressions low-level functionalities are obtained through -the excellent PCRE library written by Philip Hazel.

    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl Regex

    Source

    pub fn as_ptr(&self) -> *mut GRegex

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GRegex) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl Regex

    Source

    pub fn new( +
    glib

    Struct Regex

    Source
    pub struct Regex { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl Regex

    Source

    pub fn as_ptr(&self) -> *mut GRegex

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GRegex) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl Regex

    Source

    pub fn new( pattern: &str, compile_options: RegexCompileFlags, match_options: RegexMatchFlags, -) -> Result<Option<Regex>, Error>

    Compiles the regular expression to an internal form, and does -the initial setup of the #GRegex structure.

    -
    §pattern
    -

    the regular expression

    -
    §compile_options
    -

    compile options for the regular expression, or 0

    -
    §match_options
    -

    match options for the regular expression, or 0

    -
    §Returns
    -

    a #GRegex structure or None if an error occurred. Call -g_regex_unref() when you are done with it

    -
    Source

    pub fn capture_count(&self) -> i32

    Returns the number of capturing subpatterns in the pattern.

    -
    §Returns
    -

    the number of capturing subpatterns

    -
    Source

    pub fn compile_flags(&self) -> RegexCompileFlags

    Returns the compile options that @self was created with.

    -

    Depending on the version of PCRE that is used, this may or may not -include flags set by option expressions such as (?i) found at the -top-level within the compiled pattern.

    -
    §Returns
    -

    flags from #GRegexCompileFlags

    -
    Source

    pub fn has_cr_or_lf(&self) -> bool

    Checks whether the pattern contains explicit CR or LF references.

    -
    §Returns
    -

    true if the pattern contains explicit CR or LF references

    -
    Source

    pub fn match_flags(&self) -> RegexMatchFlags

    Returns the match options that @self was created with.

    -
    §Returns
    -

    flags from #GRegexMatchFlags

    -
    Source

    pub fn max_backref(&self) -> i32

    Returns the number of the highest back reference -in the pattern, or 0 if the pattern does not contain -back references.

    -
    §Returns
    -

    the number of the highest back reference

    -
    Source

    pub fn max_lookbehind(&self) -> i32

    Gets the number of characters in the longest lookbehind assertion in the -pattern. This information is useful when doing multi-segment matching using -the partial matching facilities.

    -
    §Returns
    -

    the number of characters in the longest lookbehind assertion.

    -
    Source

    pub fn pattern(&self) -> GString

    Gets the pattern string associated with @self, i.e. a copy of -the string passed to g_regex_new().

    -
    §Returns
    -

    the pattern of @self

    -
    Source§

    impl Regex

    Source

    pub fn string_number(&self, name: impl IntoGStr) -> i32

    Retrieves the number of the subexpression named @name.

    -
    §name
    -

    name of the subexpression

    -
    §Returns
    -

    The number of the subexpression or -1 if @name -does not exists

    -
    Source

    pub fn escape_nul(string: impl IntoGStr) -> GString

    Escapes the nul characters in @string to “\x00”. It can be used -to compile a regex with embedded nul characters.

    -

    For completeness, @length can be -1 for a nul-terminated string. -In this case the output string will be of course equal to @string.

    -
    §string
    -

    the string to escape

    -
    §length
    -

    the length of @string

    -
    §Returns
    -

    a newly-allocated escaped string

    -
    Source

    pub fn escape_string(string: impl IntoGStr) -> GString

    Escapes the special characters used for regular expressions -in @string, for instance “a.b*c” becomes “a.b*c”. This -function is useful to dynamically generate regular expressions.

    -

    @string can contain nul characters that are replaced with “\0”, -in this case remember to specify the correct length of @string -in @length.

    -
    §string
    -

    the string to escape

    -
    §length
    -

    the length of @string, in bytes, or -1 if @string is nul-terminated

    -
    §Returns
    -

    a newly-allocated escaped string

    -
    Source

    pub fn check_replacement(replacement: impl IntoGStr) -> Result<bool, Error>

    Checks whether @replacement is a valid replacement string -(see g_regex_replace()), i.e. that all escape sequences in -it are valid.

    -

    If @has_references is not None then @replacement is checked -for pattern references. For instance, replacement text ‘foo\n’ -does not contain references and may be evaluated without information -about actual match, but ‘\0\1’ (whole match followed by first -subpattern) requires valid #GMatchInfo object.

    -
    §replacement
    -

    the replacement string

    -
    §Returns
    -

    whether @replacement is a valid replacement string

    -
    §has_references
    -

    location to store information about -references in @replacement or None

    -
    Source

    pub fn match_simple( +) -> Result<Option<Regex>, Error>

    Source

    pub fn capture_count(&self) -> i32

    Source

    pub fn compile_flags(&self) -> RegexCompileFlags

    Source

    pub fn has_cr_or_lf(&self) -> bool

    Source

    pub fn match_flags(&self) -> RegexMatchFlags

    Source

    pub fn max_backref(&self) -> i32

    Source

    pub fn max_lookbehind(&self) -> i32

    Source

    pub fn pattern(&self) -> GString

    Source§

    impl Regex

    Source

    pub fn string_number(&self, name: impl IntoGStr) -> i32

    Source

    pub fn escape_nul(string: impl IntoGStr) -> GString

    Source

    pub fn escape_string(string: impl IntoGStr) -> GString

    Source

    pub fn check_replacement(replacement: impl IntoGStr) -> Result<bool, Error>

    Source

    pub fn match_simple( pattern: impl IntoGStr, string: impl IntoGStr, compile_options: RegexCompileFlags, match_options: RegexMatchFlags, -) -> bool

    Scans for a match in @string for @pattern.

    -

    This function is equivalent to g_regex_match() but it does not -require to compile the pattern with g_regex_new(), avoiding some -lines of code when you need just to do a match without extracting -substrings, capture counts, and so on.

    -

    If this function is to be called on the same @pattern more than -once, it’s more efficient to compile the pattern once with -g_regex_new() and then use g_regex_match().

    -
    §pattern
    -

    the regular expression

    -
    §string
    -

    the string to scan for matches

    -
    §compile_options
    -

    compile options for the regular expression, or 0

    -
    §match_options
    -

    match options, or 0

    -
    §Returns
    -

    true if the string matched, false otherwise

    -
    Source

    pub fn replace( +) -> bool

    Source

    pub fn replace( &self, string: impl IntoGStr, start_position: i32, replacement: impl IntoGStr, match_options: RegexMatchFlags, -) -> Result<GString, Error>

    Replaces all occurrences of the pattern in @self with the -replacement text. Backreferences of the form \number or -\g<number> in the replacement text are interpolated by the -number-th captured subexpression of the match, \g<name> refers -to the captured subexpression with the given name. \0 refers -to the complete match, but \0 followed by a number is the octal -representation of a character. To include a literal \ in the -replacement, write \\\\.

    -

    There are also escapes that changes the case of the following text:

    -
      -
    • \l: Convert to lower case the next character
    • -
    • \u: Convert to upper case the next character
    • -
    • \L: Convert to lower case till \E
    • -
    • \U: Convert to upper case till \E
    • -
    • \E: End case modification
    • -
    -

    If you do not need to use backreferences use g_regex_replace_literal().

    -

    The @replacement string must be UTF-8 encoded even if RegexCompileFlags::RAW was -passed to g_regex_new(). If you want to use not UTF-8 encoded strings -you can use g_regex_replace_literal().

    -

    Setting @start_position differs from just passing over a shortened -string and setting RegexMatchFlags::NOTBOL in the case of a pattern that -begins with any kind of lookbehind assertion, such as “\b”.

    -
    §string
    -

    the string to perform matches against

    -
    §start_position
    -

    starting index of the string to match, in bytes

    -
    §replacement
    -

    text to replace each match with

    -
    §match_options
    -

    options for the match

    -
    §Returns
    -

    a newly allocated string containing the replacements

    -
    Source

    pub fn match_all<'input>( +) -> Result<GString, Error>

    Source

    pub fn match_all<'input>( &self, string: &'input GStr, match_options: RegexMatchFlags, -) -> Option<MatchInfo<'input>>

    Using the standard algorithm for regular expression matching only -the longest match in the string is retrieved. This function uses -a different algorithm so it can retrieve all the possible matches. -For more documentation see g_regex_match_all_full().

    -

    A #GMatchInfo structure, used to get information on the match, is -stored in @match_info if not None. Note that if @match_info is -not None then it is created even if the function returns false, -i.e. you must free it regardless if regular expression actually -matched.

    -

    @string is not copied and is used in #GMatchInfo internally. If -you use any #GMatchInfo method (except g_match_info_free()) after -freeing or modifying @string then the behaviour is undefined.

    -
    §string
    -

    the string to scan for matches

    -
    §match_options
    -

    match options

    -
    §Returns
    -

    true is the string matched, false otherwise

    -
    §match_info
    -

    pointer to location where to store -the #GMatchInfo, or None if you do not need it

    -
    Source

    pub fn match_all_full<'input>( +) -> Option<MatchInfo<'input>>

    Source

    pub fn match_all_full<'input>( &self, string: &'input GStr, start_position: i32, match_options: RegexMatchFlags, -) -> Result<MatchInfo<'input>, Error>

    Using the standard algorithm for regular expression matching only -the longest match in the @string is retrieved, it is not possible -to obtain all the available matches. For instance matching -"<a> <b> <c>" against the pattern "<.*>" -you get "<a> <b> <c>".

    -

    This function uses a different algorithm (called DFA, i.e. deterministic -finite automaton), so it can retrieve all the possible matches, all -starting at the same point in the string. For instance matching -"<a> <b> <c>" against the pattern "<.*>" -you would obtain three matches: "<a> <b> <c>", -"<a> <b>" and "<a>".

    -

    The number of matched strings is retrieved using -g_match_info_get_match_count(). To obtain the matched strings and -their position you can use, respectively, g_match_info_fetch() and -g_match_info_fetch_pos(). Note that the strings are returned in -reverse order of length; that is, the longest matching string is -given first.

    -

    Note that the DFA algorithm is slower than the standard one and it -is not able to capture substrings, so backreferences do not work.

    -

    Setting @start_position differs from just passing over a shortened -string and setting RegexMatchFlags::NOTBOL in the case of a pattern -that begins with any kind of lookbehind assertion, such as “\b”.

    -

    Unless RegexCompileFlags::RAW is specified in the options, @string must be valid UTF-8.

    -

    A #GMatchInfo structure, used to get information on the match, is -stored in @match_info if not None. Note that if @match_info is -not None then it is created even if the function returns false, -i.e. you must free it regardless if regular expression actually -matched.

    -

    @string is not copied and is used in #GMatchInfo internally. If -you use any #GMatchInfo method (except g_match_info_free()) after -freeing or modifying @string then the behaviour is undefined.

    -
    §string
    -

    the string to scan for matches

    -
    §start_position
    -

    starting index of the string to match, in bytes

    -
    §match_options
    -

    match options

    -
    §Returns
    -

    true is the string matched, false otherwise

    -
    §match_info
    -

    pointer to location where to store -the #GMatchInfo, or None if you do not need it

    -
    Source

    pub fn match_<'input>( +) -> Result<MatchInfo<'input>, Error>

    Source

    pub fn match_<'input>( &self, string: &'input GStr, match_options: RegexMatchFlags, -) -> Option<MatchInfo<'input>>

    Scans for a match in @string for the pattern in @self. -The @match_options are combined with the match options specified -when the @self structure was created, letting you have more -flexibility in reusing #GRegex structures.

    -

    Unless RegexCompileFlags::RAW is specified in the options, @string must be valid UTF-8.

    -

    A #GMatchInfo structure, used to get information on the match, -is stored in @match_info if not None. Note that if @match_info -is not None then it is created even if the function returns false, -i.e. you must free it regardless if regular expression actually matched.

    -

    To retrieve all the non-overlapping matches of the pattern in -string you can use g_match_info_next().

    -

    ⚠️ The following code is in C ⚠️

    -
    static void
    -print_uppercase_words (const gchar *string)
    -{
    -  // Print all uppercase-only words.
    -  GRegex *regex;
    -  GMatchInfo *match_info;
    -
    -  regex = g_regex_new ("[A-Z]+", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL);
    -  g_regex_match (regex, string, 0, &match_info);
    -  while (g_match_info_matches (match_info))
    -    {
    -      gchar *word = g_match_info_fetch (match_info, 0);
    -      g_print ("Found: %s\n", word);
    -      g_free (word);
    -      g_match_info_next (match_info, NULL);
    -    }
    -  g_match_info_free (match_info);
    -  g_regex_unref (regex);
    -}
    -

    @string is not copied and is used in #GMatchInfo internally. If -you use any #GMatchInfo method (except g_match_info_free()) after -freeing or modifying @string then the behaviour is undefined.

    -
    §string
    -

    the string to scan for matches

    -
    §match_options
    -

    match options

    -
    §Returns
    -

    true is the string matched, false otherwise

    -
    §match_info
    -

    pointer to location where to store -the #GMatchInfo, or None if you do not need it

    -
    Source

    pub fn match_full<'input>( +) -> Option<MatchInfo<'input>>

    Source

    pub fn match_full<'input>( &self, string: &'input GStr, start_position: i32, match_options: RegexMatchFlags, -) -> Result<MatchInfo<'input>, Error>

    Scans for a match in @string for the pattern in @self. -The @match_options are combined with the match options specified -when the @self structure was created, letting you have more -flexibility in reusing #GRegex structures.

    -

    Setting @start_position differs from just passing over a shortened -string and setting RegexMatchFlags::NOTBOL in the case of a pattern -that begins with any kind of lookbehind assertion, such as “\b”.

    -

    Unless RegexCompileFlags::RAW is specified in the options, @string must be valid UTF-8.

    -

    A #GMatchInfo structure, used to get information on the match, is -stored in @match_info if not None. Note that if @match_info is -not None then it is created even if the function returns false, -i.e. you must free it regardless if regular expression actually -matched.

    -

    @string is not copied and is used in #GMatchInfo internally. If -you use any #GMatchInfo method (except g_match_info_free()) after -freeing or modifying @string then the behaviour is undefined.

    -

    To retrieve all the non-overlapping matches of the pattern in -string you can use g_match_info_next().

    -

    ⚠️ The following code is in C ⚠️

    -
    static void
    -print_uppercase_words (const gchar *string)
    -{
    -  // Print all uppercase-only words.
    -  GRegex *regex;
    -  GMatchInfo *match_info;
    -  GError *error = NULL;
    -
    -  regex = g_regex_new ("[A-Z]+", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL);
    -  g_regex_match_full (regex, string, -1, 0, 0, &match_info, &error);
    -  while (g_match_info_matches (match_info))
    -    {
    -      gchar *word = g_match_info_fetch (match_info, 0);
    -      g_print ("Found: %s\n", word);
    -      g_free (word);
    -      g_match_info_next (match_info, &error);
    -    }
    -  g_match_info_free (match_info);
    -  g_regex_unref (regex);
    -  if (error != NULL)
    -    {
    -      g_printerr ("Error while matching: %s\n", error->message);
    -      g_error_free (error);
    -    }
    -}
    §string
    -

    the string to scan for matches

    -
    §start_position
    -

    starting index of the string to match, in bytes

    -
    §match_options
    -

    match options

    -
    §Returns
    -

    true is the string matched, false otherwise

    -
    §match_info
    -

    pointer to location where to store -the #GMatchInfo, or None if you do not need it

    -
    Source

    pub fn replace_literal( +) -> Result<MatchInfo<'input>, Error>

    Source

    pub fn replace_literal( &self, string: impl IntoGStr, start_position: i32, replacement: impl IntoGStr, match_options: RegexMatchFlags, -) -> Result<GString, Error>

    Replaces all occurrences of the pattern in @self with the -replacement text. @replacement is replaced literally, to -include backreferences use g_regex_replace().

    -

    Setting @start_position differs from just passing over a -shortened string and setting RegexMatchFlags::NOTBOL in the -case of a pattern that begins with any kind of lookbehind -assertion, such as “\b”.

    -
    §string
    -

    the string to perform matches against

    -
    §start_position
    -

    starting index of the string to match, in bytes

    -
    §replacement
    -

    text to replace each match with

    -
    §match_options
    -

    options for the match

    -
    §Returns
    -

    a newly allocated string containing the replacements

    -
    Source

    pub fn split( +) -> Result<GString, Error>

    Source

    pub fn split( &self, string: impl IntoGStr, match_options: RegexMatchFlags, -) -> PtrSlice<GStringPtr>

    Breaks the string on the pattern, and returns an array of the tokens. -If the pattern contains capturing parentheses, then the text for each -of the substrings will also be returned. If the pattern does not match -anywhere in the string, then the whole string is returned as the first -token.

    -

    As a special case, the result of splitting the empty string “” is an -empty vector, not a vector containing a single string. The reason for -this special case is that being able to represent an empty vector is -typically more useful than consistent handling of empty elements. If -you do need to represent empty elements, you’ll need to check for the -empty string before calling this function.

    -

    A pattern that can match empty strings splits @string into separate -characters wherever it matches the empty string between characters. -For example splitting “ab c” using as a separator “\s*”, you will get -“a”, “b” and “c”.

    -
    §string
    -

    the string to split with the pattern

    -
    §match_options
    -

    match time option flags

    -
    §Returns
    -

    a None-terminated gchar ** array. Free -it using g_strfreev()

    -
    Source

    pub fn split_full( +) -> PtrSlice<GStringPtr>

    Source

    pub fn split_full( &self, string: impl IntoGStr, start_position: i32, match_options: RegexMatchFlags, max_tokens: i32, -) -> Result<PtrSlice<GStringPtr>, Error>

    Breaks the string on the pattern, and returns an array of the tokens. -If the pattern contains capturing parentheses, then the text for each -of the substrings will also be returned. If the pattern does not match -anywhere in the string, then the whole string is returned as the first -token.

    -

    As a special case, the result of splitting the empty string “” is an -empty vector, not a vector containing a single string. The reason for -this special case is that being able to represent an empty vector is -typically more useful than consistent handling of empty elements. If -you do need to represent empty elements, you’ll need to check for the -empty string before calling this function.

    -

    A pattern that can match empty strings splits @string into separate -characters wherever it matches the empty string between characters. -For example splitting “ab c” using as a separator “\s*”, you will get -“a”, “b” and “c”.

    -

    Setting @start_position differs from just passing over a shortened -string and setting RegexMatchFlags::NOTBOL in the case of a pattern -that begins with any kind of lookbehind assertion, such as “\b”.

    -
    §string
    -

    the string to split with the pattern

    -
    §start_position
    -

    starting index of the string to match, in bytes

    -
    §match_options
    -

    match time option flags

    -
    §max_tokens
    -

    the maximum number of tokens to split @string into. -If this is less than 1, the string is split completely

    -
    §Returns
    -

    a None-terminated gchar ** array. Free -it using g_strfreev()

    -
    Source

    pub fn split_simple( +) -> Result<PtrSlice<GStringPtr>, Error>

    Source

    pub fn split_simple( pattern: impl IntoGStr, string: impl IntoGStr, compile_options: RegexCompileFlags, match_options: RegexMatchFlags, -) -> PtrSlice<GStringPtr>

    Breaks the string on the pattern, and returns an array of -the tokens. If the pattern contains capturing parentheses, -then the text for each of the substrings will also be returned. -If the pattern does not match anywhere in the string, then the -whole string is returned as the first token.

    -

    This function is equivalent to g_regex_split() but it does -not require to compile the pattern with g_regex_new(), avoiding -some lines of code when you need just to do a split without -extracting substrings, capture counts, and so on.

    -

    If this function is to be called on the same @pattern more than -once, it’s more efficient to compile the pattern once with -g_regex_new() and then use g_regex_split().

    -

    As a special case, the result of splitting the empty string “” -is an empty vector, not a vector containing a single string. -The reason for this special case is that being able to represent -an empty vector is typically more useful than consistent handling -of empty elements. If you do need to represent empty elements, -you’ll need to check for the empty string before calling this -function.

    -

    A pattern that can match empty strings splits @string into -separate characters wherever it matches the empty string between -characters. For example splitting “ab c” using as a separator -“\s*”, you will get “a”, “b” and “c”.

    -
    §pattern
    -

    the regular expression

    -
    §string
    -

    the string to scan for matches

    -
    §compile_options
    -

    compile options for the regular expression, or 0

    -
    §match_options
    -

    match options, or 0

    -
    §Returns
    -

    a None-terminated array of strings. Free -it using g_strfreev()

    -

    Trait Implementations§

    Source§

    impl Clone for Regex

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +) -> PtrSlice<GStringPtr>

    Trait Implementations§

    Source§

    impl Clone for Regex

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Regex

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Regex> for Value

    Source§

    fn from(s: Regex) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Regex

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Regex

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Regex>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Regex

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Regex

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Regex> for Value

    Source§

    fn from(s: Regex) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Regex

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Regex

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Regex>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Regex

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Regex

    Source§

    fn cmp(&self, other: &Regex) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Regex

    Source§

    fn cmp(&self, other: &Regex) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Regex

    Source§

    fn eq(&self, other: &Regex) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Regex

    Source§

    fn partial_cmp(&self, other: &Regex) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,
    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Regex

    Source§

    fn eq(&self, other: &Regex) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Regex

    Source§

    fn partial_cmp(&self, other: &Regex) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for Regex

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Regex

    Source§

    impl StructuralPartialEq for Regex

    Auto Trait Implementations§

    §

    impl Freeze for Regex

    §

    impl RefUnwindSafe for Regex

    §

    impl !Send for Regex

    §

    impl !Sync for Regex

    §

    impl Unpin for Regex

    §

    impl UnwindSafe for Regex

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for Regex

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Regex

    Source§

    impl StructuralPartialEq for Regex

    Auto Trait Implementations§

    §

    impl Freeze for Regex

    §

    impl RefUnwindSafe for Regex

    §

    impl !Send for Regex

    §

    impl !Sync for Regex

    §

    impl Unpin for Regex

    §

    impl UnwindSafe for Regex

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.RegexCompileFlags.html b/git/docs/glib/struct.RegexCompileFlags.html index 392d6936fc19..6896cb7810cb 100644 --- a/git/docs/glib/struct.RegexCompileFlags.html +++ b/git/docs/glib/struct.RegexCompileFlags.html @@ -1,4 +1,4 @@ -RegexCompileFlags in glib - Rust +RegexCompileFlags in glib - Rust -
    glib

    Struct RegexCompileFlags

    Source
    pub struct RegexCompileFlags(/* private fields */);
    Expand description

    Flags specifying compile-time options.

    -

    Implementations§

    Source§

    impl RegexCompileFlags

    Source

    pub const DEFAULT: Self = _

    No special options set. Since: 2.74

    -
    Source

    pub const CASELESS: Self = _

    Letters in the pattern match both upper- and -lowercase letters. This option can be changed within a pattern -by a “(?i)” option setting.

    -
    Source

    pub const MULTILINE: Self = _

    By default, GRegex treats the strings as consisting -of a single line of characters (even if it actually contains -newlines). The “start of line” metacharacter (“^”) matches only -at the start of the string, while the “end of line” metacharacter -(“$”) matches only at the end of the string, or before a terminating -newline (unless DOLLAR_ENDONLY is set). When -MULTILINE is set, the “start of line” and “end of line” -constructs match immediately following or immediately before any -newline in the string, respectively, as well as at the very start -and end. This can be changed within a pattern by a “(?m)” option -setting.

    -
    Source

    pub const DOTALL: Self = _

    A dot metacharacter (“.”) in the pattern matches all -characters, including newlines. Without it, newlines are excluded. -This option can be changed within a pattern by a (“?s”) option setting.

    -
    Source

    pub const EXTENDED: Self = _

    Whitespace data characters in the pattern are -totally ignored except when escaped or inside a character class. -Whitespace does not include the VT character (code 11). In addition, -characters between an unescaped “#” outside a character class and -the next newline character, inclusive, are also ignored. This can -be changed within a pattern by a “(?x)” option setting.

    -
    Source

    pub const ANCHORED: Self = _

    The pattern is forced to be “anchored”, that is, -it is constrained to match only at the first matching point in the -string that is being searched. This effect can also be achieved by -appropriate constructs in the pattern itself such as the “^” -metacharacter.

    -
    Source

    pub const DOLLAR_ENDONLY: Self = _

    A dollar metacharacter (“$”) in the pattern -matches only at the end of the string. Without this option, a -dollar also matches immediately before the final character if -it is a newline (but not before any other newlines). This option -is ignored if MULTILINE is set.

    -
    Source

    pub const UNGREEDY: Self = _

    Inverts the “greediness” of the quantifiers so that -they are not greedy by default, but become greedy if followed by “?”. -It can also be set by a “(?U)” option setting within the pattern.

    -
    Source

    pub const RAW: Self = _

    Usually strings must be valid UTF-8 strings, using this -flag they are considered as a raw sequence of bytes.

    -
    Source

    pub const NO_AUTO_CAPTURE: Self = _

    Disables the use of numbered capturing -parentheses in the pattern. Any opening parenthesis that is not -followed by “?” behaves as if it were followed by “?:” but named -parentheses can still be used for capturing (and they acquire numbers -in the usual way).

    -
    Source

    pub const OPTIMIZE: Self = _

    Since 2.74 and the port to pcre2, requests JIT -compilation, which, if the just-in-time compiler is available, further -processes a compiled pattern into machine code that executes much -faster. However, it comes at the cost of extra processing before the -match is performed, so it is most beneficial to use this when the same -compiled pattern is used for matching many times. Before 2.74 this -option used the built-in non-JIT optimizations in pcre1.

    -
    Source

    pub const FIRSTLINE: Self = _

    Limits an unanchored pattern to match before (or at) the -first newline. Since: 2.34

    -
    Source

    pub const DUPNAMES: Self = _

    Names used to identify capturing subpatterns need not -be unique. This can be helpful for certain types of pattern when it -is known that only one instance of the named subpattern can ever be -matched.

    -
    Source

    pub const NEWLINE_CR: Self = _

    Usually any newline character or character sequence is -recognized. If this option is set, the only recognized newline character -is ‘\r’.

    -
    Source

    pub const NEWLINE_LF: Self = _

    Usually any newline character or character sequence is -recognized. If this option is set, the only recognized newline character -is ‘\n’.

    -
    Source

    pub const NEWLINE_CRLF: Self = _

    Usually any newline character or character sequence is -recognized. If this option is set, the only recognized newline character -sequence is ‘\r\n’.

    -
    Source

    pub const NEWLINE_ANYCRLF: Self = _

    Usually any newline character or character sequence -is recognized. If this option is set, the only recognized newline character -sequences are ‘\r’, ‘\n’, and ‘\r\n’. Since: 2.34

    -
    Source

    pub const BSR_ANYCRLF: Self = _

    Usually any newline character or character sequence -is recognised. If this option is set, then “\R” only recognizes the newline -characters ‘\r’, ‘\n’ and ‘\r\n’. Since: 2.34

    -
    Source

    pub const JAVASCRIPT_COMPAT: Self = _

    Changes behaviour so that it is compatible with -JavaScript rather than PCRE. Since GLib 2.74 this is no longer supported, -as libpcre2 does not support it. Since: 2.34 Deprecated: 2.74

    -
    Source§

    impl RegexCompileFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct RegexCompileFlags

    Source
    pub struct RegexCompileFlags(/* private fields */);

    Implementations§

    Source§

    impl RegexCompileFlags

    Source

    pub const DEFAULT: Self = _

    Source

    pub const CASELESS: Self = _

    Source

    pub const MULTILINE: Self = _

    Source

    pub const DOTALL: Self = _

    Source

    pub const EXTENDED: Self = _

    Source

    pub const ANCHORED: Self = _

    Source

    pub const DOLLAR_ENDONLY: Self = _

    Source

    pub const UNGREEDY: Self = _

    Source

    pub const RAW: Self = _

    Source

    pub const NO_AUTO_CAPTURE: Self = _

    Source

    pub const OPTIMIZE: Self = _

    Source

    pub const FIRSTLINE: Self = _

    Source

    pub const DUPNAMES: Self = _

    Source

    pub const NEWLINE_CR: Self = _

    Source

    pub const NEWLINE_LF: Self = _

    Source

    pub const NEWLINE_CRLF: Self = _

    Source

    pub const NEWLINE_ANYCRLF: Self = _

    Source

    pub const BSR_ANYCRLF: Self = _

    Source

    pub const JAVASCRIPT_COMPAT: Self = _

    Source§

    impl RegexCompileFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl RegexCompileFlags

    Source

    pub const fn iter(&self) -> Iter<RegexCompileFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl RegexCompileFlags

    Source

    pub const fn iter(&self) -> Iter<RegexCompileFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<RegexCompileFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<RegexCompileFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for RegexCompileFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for RegexCompileFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for RegexCompileFlags

    Source§

    fn bitor(self, other: RegexCompileFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for RegexCompileFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for RegexCompileFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for RegexCompileFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for RegexCompileFlags

    Source§

    fn clone(&self) -> RegexCompileFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<RegexCompileFlags> for RegexCompileFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for RegexCompileFlags

    Source§

    const FLAGS: &'static [Flag<RegexCompileFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> RegexCompileFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for RegexCompileFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for RegexCompileFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for RegexCompileFlags

    Source§

    fn bitor(self, other: RegexCompileFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for RegexCompileFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for RegexCompileFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for RegexCompileFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for RegexCompileFlags

    Source§

    fn clone(&self) -> RegexCompileFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<RegexCompileFlags> for RegexCompileFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for RegexCompileFlags

    Source§

    const FLAGS: &'static [Flag<RegexCompileFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> RegexCompileFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<RegexCompileFlags> for RegexCompileFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for RegexCompileFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<RegexCompileFlags> for RegexCompileFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for RegexCompileFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for RegexCompileFlags

    Source§

    type Item = RegexCompileFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<RegexCompileFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for RegexCompileFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for RegexCompileFlags

    Source§

    fn eq(&self, other: &RegexCompileFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for RegexCompileFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for RegexCompileFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for RegexCompileFlags

    Source§

    type Item = RegexCompileFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<RegexCompileFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for RegexCompileFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for RegexCompileFlags

    Source§

    fn eq(&self, other: &RegexCompileFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for RegexCompileFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for RegexCompileFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for RegexCompileFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = RegexCompileFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for RegexCompileFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for RegexCompileFlags

    Source§

    impl Eq for RegexCompileFlags

    Source§

    impl StructuralPartialEq for RegexCompileFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for RegexCompileFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for RegexCompileFlags

    Source§

    impl Eq for RegexCompileFlags

    Source§

    impl StructuralPartialEq for RegexCompileFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.RegexMatchFlags.html b/git/docs/glib/struct.RegexMatchFlags.html index fb99a8705f5b..fd071130c060 100644 --- a/git/docs/glib/struct.RegexMatchFlags.html +++ b/git/docs/glib/struct.RegexMatchFlags.html @@ -1,4 +1,4 @@ -RegexMatchFlags in glib - Rust +RegexMatchFlags in glib - Rust -
    glib

    Struct RegexMatchFlags

    Source
    pub struct RegexMatchFlags(/* private fields */);
    Expand description

    Flags specifying match-time options.

    -

    Implementations§

    Source§

    impl RegexMatchFlags

    Source

    pub const DEFAULT: Self = _

    No special options set. Since: 2.74

    -
    Source

    pub const ANCHORED: Self = _

    The pattern is forced to be “anchored”, that is, -it is constrained to match only at the first matching point in the -string that is being searched. This effect can also be achieved by -appropriate constructs in the pattern itself such as the “^” -metacharacter.

    -
    Source

    pub const NOTBOL: Self = _

    Specifies that first character of the string is -not the beginning of a line, so the circumflex metacharacter should -not match before it. Setting this without RegexCompileFlags::MULTILINE (at -compile time) causes circumflex never to match. This option affects -only the behaviour of the circumflex metacharacter, it does not -affect “\A”.

    -
    Source

    pub const NOTEOL: Self = _

    Specifies that the end of the subject string is -not the end of a line, so the dollar metacharacter should not match -it nor (except in multiline mode) a newline immediately before it. -Setting this without RegexCompileFlags::MULTILINE (at compile time) causes -dollar never to match. This option affects only the behaviour of -the dollar metacharacter, it does not affect “\Z” or “\z”.

    -
    Source

    pub const NOTEMPTY: Self = _

    An empty string is not considered to be a valid -match if this option is set. If there are alternatives in the pattern, -they are tried. If all the alternatives match the empty string, the -entire match fails. For example, if the pattern “a?b?” is applied to -a string not beginning with “a” or “b”, it matches the empty string -at the start of the string. With this flag set, this match is not -valid, so GRegex searches further into the string for occurrences -of “a” or “b”.

    -
    Source

    pub const PARTIAL: Self = _

    Turns on the partial matching feature, for more -documentation on partial matching see g_match_info_is_partial_match().

    -
    Source

    pub const NEWLINE_CR: Self = _

    Overrides the newline definition set when -creating a new #GRegex, setting the ‘\r’ character as line terminator.

    -
    Source

    pub const NEWLINE_LF: Self = _

    Overrides the newline definition set when -creating a new #GRegex, setting the ‘\n’ character as line terminator.

    -
    Source

    pub const NEWLINE_CRLF: Self = _

    Overrides the newline definition set when -creating a new #GRegex, setting the ‘\r\n’ characters sequence as line terminator.

    -
    Source

    pub const NEWLINE_ANY: Self = _

    Overrides the newline definition set when -creating a new #GRegex, any Unicode newline sequence -is recognised as a newline. These are ‘\r’, ‘\n’ and ‘\rn’, and the -single characters U+000B LINE TABULATION, U+000C FORM FEED (FF), -U+0085 NEXT LINE (NEL), U+2028 LINE SEPARATOR and -U+2029 PARAGRAPH SEPARATOR.

    -
    Source

    pub const NEWLINE_ANYCRLF: Self = _

    Overrides the newline definition set when -creating a new #GRegex; any ‘\r’, ‘\n’, or ‘\r\n’ character sequence -is recognized as a newline. Since: 2.34

    -
    Source

    pub const BSR_ANYCRLF: Self = _

    Overrides the newline definition for “\R” set when -creating a new #GRegex; only ‘\r’, ‘\n’, or ‘\r\n’ character sequences -are recognized as a newline by “\R”. Since: 2.34

    -
    Source

    pub const BSR_ANY: Self = _

    Overrides the newline definition for “\R” set when -creating a new #GRegex; any Unicode newline character or character sequence -are recognized as a newline by “\R”. These are ‘\r’, ‘\n’ and ‘\rn’, and the -single characters U+000B LINE TABULATION, U+000C FORM FEED (FF), -U+0085 NEXT LINE (NEL), U+2028 LINE SEPARATOR and -U+2029 PARAGRAPH SEPARATOR. Since: 2.34

    -
    Source

    pub const PARTIAL_SOFT: Self = _

    An alias for PARTIAL. Since: 2.34

    -
    Source

    pub const PARTIAL_HARD: Self = _

    Turns on the partial matching feature. In contrast to -to PARTIAL_SOFT, this stops matching as soon as a partial match -is found, without continuing to search for a possible complete match. See -g_match_info_is_partial_match() for more information. Since: 2.34

    -
    Source

    pub const NOTEMPTY_ATSTART: Self = _

    Like NOTEMPTY, but only applied to -the start of the matched string. For anchored -patterns this can only happen for pattern containing “\K”. Since: 2.34

    -
    Source§

    impl RegexMatchFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    glib

    Struct RegexMatchFlags

    Source
    pub struct RegexMatchFlags(/* private fields */);

    Implementations§

    Source§

    impl RegexMatchFlags

    Source

    pub const DEFAULT: Self = _

    Source

    pub const ANCHORED: Self = _

    Source

    pub const NOTBOL: Self = _

    Source

    pub const NOTEOL: Self = _

    Source

    pub const NOTEMPTY: Self = _

    Source

    pub const PARTIAL: Self = _

    Source

    pub const NEWLINE_CR: Self = _

    Source

    pub const NEWLINE_LF: Self = _

    Source

    pub const NEWLINE_CRLF: Self = _

    Source

    pub const NEWLINE_ANY: Self = _

    Source

    pub const NEWLINE_ANYCRLF: Self = _

    Source

    pub const BSR_ANYCRLF: Self = _

    Source

    pub const BSR_ANY: Self = _

    Source

    pub const PARTIAL_SOFT: Self = _

    Source

    pub const PARTIAL_HARD: Self = _

    Source

    pub const NOTEMPTY_ATSTART: Self = _

    Source§

    impl RegexMatchFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl RegexMatchFlags

    Source

    pub const fn iter(&self) -> Iter<RegexMatchFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl RegexMatchFlags

    Source

    pub const fn iter(&self) -> Iter<RegexMatchFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<RegexMatchFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<RegexMatchFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for RegexMatchFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for RegexMatchFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for RegexMatchFlags

    Source§

    fn bitor(self, other: RegexMatchFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for RegexMatchFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for RegexMatchFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for RegexMatchFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for RegexMatchFlags

    Source§

    fn clone(&self) -> RegexMatchFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<RegexMatchFlags> for RegexMatchFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for RegexMatchFlags

    Source§

    const FLAGS: &'static [Flag<RegexMatchFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> RegexMatchFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for RegexMatchFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for RegexMatchFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for RegexMatchFlags

    Source§

    fn bitor(self, other: RegexMatchFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for RegexMatchFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for RegexMatchFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for RegexMatchFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for RegexMatchFlags

    Source§

    fn clone(&self) -> RegexMatchFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<RegexMatchFlags> for RegexMatchFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for RegexMatchFlags

    Source§

    const FLAGS: &'static [Flag<RegexMatchFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> RegexMatchFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<RegexMatchFlags> for RegexMatchFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for RegexMatchFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<RegexMatchFlags> for RegexMatchFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for RegexMatchFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for RegexMatchFlags

    Source§

    type Item = RegexMatchFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<RegexMatchFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for RegexMatchFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for RegexMatchFlags

    Source§

    fn eq(&self, other: &RegexMatchFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for RegexMatchFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for RegexMatchFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for RegexMatchFlags

    Source§

    type Item = RegexMatchFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<RegexMatchFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for RegexMatchFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for RegexMatchFlags

    Source§

    fn eq(&self, other: &RegexMatchFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for RegexMatchFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for RegexMatchFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for RegexMatchFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = RegexMatchFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for RegexMatchFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for RegexMatchFlags

    Source§

    impl Eq for RegexMatchFlags

    Source§

    impl StructuralPartialEq for RegexMatchFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for RegexMatchFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for RegexMatchFlags

    Source§

    impl Eq for RegexMatchFlags

    Source§

    impl StructuralPartialEq for RegexMatchFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.SignalFlags.html b/git/docs/glib/struct.SignalFlags.html index 2901fb1dea20..4f6d4d21cc1b 100644 --- a/git/docs/glib/struct.SignalFlags.html +++ b/git/docs/glib/struct.SignalFlags.html @@ -71,89 +71,89 @@ -
    glib

    Struct SignalFlags

    Source
    pub struct SignalFlags(/* private fields */);
    Expand description

    The signal flags are used to specify a signal’s behaviour.

    -

    Implementations§

    Source§

    impl SignalFlags

    Source

    pub const RUN_FIRST: Self = _

    Invoke the object method handler in the first emission stage.

    -
    Source

    pub const RUN_LAST: Self = _

    Invoke the object method handler in the third emission stage.

    -
    Source

    pub const RUN_CLEANUP: Self = _

    Invoke the object method handler in the last emission stage.

    -
    Source

    pub const NO_RECURSE: Self = _

    Signals being emitted for an object while currently being in +

    glib

    Struct SignalFlags

    Source
    pub struct SignalFlags(/* private fields */);
    Expand description

    The signal flags are used to specify a signal’s behaviour.

    +

    Implementations§

    Source§

    impl SignalFlags

    Source

    pub const RUN_FIRST: Self = _

    Invoke the object method handler in the first emission stage.

    +
    Source

    pub const RUN_LAST: Self = _

    Invoke the object method handler in the third emission stage.

    +
    Source

    pub const RUN_CLEANUP: Self = _

    Invoke the object method handler in the last emission stage.

    +
    Source

    pub const NO_RECURSE: Self = _

    Signals being emitted for an object while currently being in emission for this very object will not be emitted recursively, but instead cause the first emission to be restarted.

    -
    Source

    pub const DETAILED: Self = _

    This signal supports “::detail” appendices to the signal name +

    Source

    pub const DETAILED: Self = _

    This signal supports “::detail” appendices to the signal name upon handler connections and emissions.

    -
    Source

    pub const ACTION: Self = _

    Action signals are signals that may freely be emitted on alive +

    Source

    pub const ACTION: Self = _

    Action signals are signals that may freely be emitted on alive objects from user code via g_signal_emit() and friends, without the need of being embedded into extra code that performs pre or post emission adjustments on the object. They can also be thought of as object methods which can be called generically by third-party code.

    -
    Source

    pub const NO_HOOKS: Self = _

    No emissions hooks are supported for this signal.

    -
    Source

    pub const MUST_COLLECT: Self = _

    Varargs signal emission will always collect the +

    Source

    pub const NO_HOOKS: Self = _

    No emissions hooks are supported for this signal.

    +
    Source

    pub const MUST_COLLECT: Self = _

    Varargs signal emission will always collect the arguments, even if there are no signal handlers connected. Since 2.30.

    -
    Source

    pub const DEPRECATED: Self = _

    The signal is deprecated and will be removed +

    Source

    pub const DEPRECATED: Self = _

    The signal is deprecated and will be removed in a future version. A warning will be generated if it is connected while running with G_ENABLE_DIAGNOSTIC=1. Since 2.32.

    -
    Source

    pub const ACCUMULATOR_FIRST_RUN: Self = _

    Only used in GSignalAccumulator accumulator +

    Source

    pub const ACCUMULATOR_FIRST_RUN: Self = _

    Only used in GSignalAccumulator accumulator functions for the GSignalInvocationHint::run_type field to mark the first call to the accumulator function for a signal emission. Since 2.68.

    -
    Source§

    impl SignalFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    Source§

    impl SignalFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl SignalFlags

    Source

    pub const fn iter(&self) -> Iter<SignalFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl SignalFlags

    Source

    pub const fn iter(&self) -> Iter<SignalFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<SignalFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<SignalFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for SignalFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = SignalFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for SignalFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for SignalFlags

    Source§

    fn bitor(self, other: SignalFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = SignalFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for SignalFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for SignalFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = SignalFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for SignalFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for SignalFlags

    Source§

    fn clone(&self) -> SignalFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<SignalFlags> for SignalFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for SignalFlags

    Source§

    const FLAGS: &'static [Flag<SignalFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> SignalFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for SignalFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = SignalFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for SignalFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for SignalFlags

    Source§

    fn bitor(self, other: SignalFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = SignalFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for SignalFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for SignalFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = SignalFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for SignalFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for SignalFlags

    Source§

    fn clone(&self) -> SignalFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<SignalFlags> for SignalFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for SignalFlags

    Source§

    const FLAGS: &'static [Flag<SignalFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> SignalFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<SignalFlags> for SignalFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for SignalFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<SignalFlags> for SignalFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for SignalFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for SignalFlags

    Source§

    type Item = SignalFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<SignalFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for SignalFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = SignalFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for SignalFlags

    Source§

    fn eq(&self, other: &SignalFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for SignalFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for SignalFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for SignalFlags

    Source§

    type Item = SignalFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<SignalFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for SignalFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = SignalFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for SignalFlags

    Source§

    fn eq(&self, other: &SignalFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for SignalFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for SignalFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = SignalFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for SignalFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = SignalFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for SignalFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for SignalFlags

    Source§

    impl Eq for SignalFlags

    Source§

    impl StructuralPartialEq for SignalFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for SignalFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for SignalFlags

    Source§

    impl Eq for SignalFlags

    Source§

    impl StructuralPartialEq for SignalFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.SignalGroup.html b/git/docs/glib/struct.SignalGroup.html index 2891e1968b21..fd6af63b891a 100644 --- a/git/docs/glib/struct.SignalGroup.html +++ b/git/docs/glib/struct.SignalGroup.html @@ -365,8 +365,8 @@
    §instanceHasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.Source.html b/git/docs/glib/struct.Source.html index ea1d3fc83349..c9ef38c8c61c 100644 --- a/git/docs/glib/struct.Source.html +++ b/git/docs/glib/struct.Source.html @@ -1,4 +1,4 @@ -Source in glib - Rust +Source in glib - Rust -
    glib

    Struct Source

    Source
    pub struct Source { /* private fields */ }
    Expand description

    The GSource struct is an opaque data type -representing an event source.

    -

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl Source

    Source

    pub fn as_ptr(&self) -> *mut GSource

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GSource) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl Source

    Source

    pub fn add_child_source(&self, child_source: &Source)

    Adds @child_source to @self as a “polled” source; when @self is -added to a MainContext, @child_source will be automatically -added with the same priority, when @child_source is triggered, it will -cause @self to dispatch (in addition to calling its own -callback), and when @self is destroyed, it will destroy -@child_source as well. (@self will also still be dispatched if -its own prepare/check functions indicate that it is ready.)

    -

    If you don’t need @child_source to do anything on its own when it -triggers, you can call g_source_set_dummy_callback() on it to set a -callback that does nothing (except return true if appropriate).

    -

    @self will hold a reference on @child_source while @child_source -is attached to it.

    -

    This API is only intended to be used by implementations of -Source. Do not call this API on a Source that -you did not create.

    -
    §child_source
    -

    a second #GSource that @self should “poll”

    -
    Source

    pub fn destroy(&self)

    Source

    pub fn can_recurse(&self) -> bool

    Checks whether a source is allowed to be called recursively. -see GLib::Source::set_can_recurse().

    -
    §Returns
    -

    whether recursion is allowed.

    -
    Source

    pub fn context(&self) -> Option<MainContext>

    Gets the MainContext with which the source is associated.

    -

    You can call this on a source that has been destroyed, provided -that the MainContext it was attached to still exists (in which -case it will return that MainContext). In particular, you can -always call this function on the source returned from -main_current_source(). But calling this function on a source -whose MainContext has been destroyed is an error.

    -
    §Returns
    -

    the #GMainContext with which the -source is associated, or None if the context has not -yet been added to a source.

    -
    Source

    pub fn name(&self) -> Option<GString>

    Gets a name for the source, used in debugging and profiling. The -name may be #NULL if it has never been set with GLib::Source::set_name().

    -
    §Returns
    -

    the name of the source

    -
    Source

    pub fn priority(&self) -> i32

    Gets the priority of a source.

    -
    §Returns
    -

    the priority of the source

    -
    Source

    pub fn ready_time(&self) -> i64

    Gets the “ready time” of @self, as set by -GLib::Source::set_ready_time().

    -

    Any time before or equal to the current monotonic time (including 0) -is an indication that the source will fire immediately.

    -
    §Returns
    -

    the monotonic ready time, -1 for “never”

    -
    Source

    pub fn time(&self) -> i64

    Gets the time to be used when checking this source. The advantage of -calling this function over calling monotonic_time() directly is -that when checking multiple sources, GLib can cache a single value -instead of having to repeatedly get the system monotonic time.

    -

    The time here is the system monotonic time, if available, or some -other reasonable alternative otherwise. See monotonic_time().

    -
    §Returns
    -

    the monotonic time in microseconds

    -
    Source

    pub fn is_destroyed(&self) -> bool

    Returns whether @self has been destroyed.

    -

    This is important when you operate upon your objects -from within idle handlers, but may have freed the object -before the dispatch of your idle handler.

    -

    ⚠️ The following code is in C ⚠️

    -
    static gboolean
    -idle_callback (gpointer data)
    -{
    -  SomeWidget *self = data;
    -
    -  g_mutex_lock (&self->idle_id_mutex);
    -  // do stuff with self
    -  self->idle_id = 0;
    -  g_mutex_unlock (&self->idle_id_mutex);
    -
    -  return G_SOURCE_REMOVE;
    -}
    -
    -static void
    -some_widget_do_stuff_later (SomeWidget *self)
    -{
    -  g_mutex_lock (&self->idle_id_mutex);
    -  self->idle_id = g_idle_add (idle_callback, self);
    -  g_mutex_unlock (&self->idle_id_mutex);
    -}
    -
    -static void
    -some_widget_init (SomeWidget *self)
    -{
    -  g_mutex_init (&self->idle_id_mutex);
    -
    -  // ...
    -}
    -
    -static void
    -some_widget_finalize (GObject *object)
    -{
    -  SomeWidget *self = SOME_WIDGET (object);
    -
    -  if (self->idle_id)
    -    g_source_remove (self->idle_id);
    -
    -  g_mutex_clear (&self->idle_id_mutex);
    -
    -  G_OBJECT_CLASS (parent_class)->finalize (object);
    -}
    -

    This will fail in a multi-threaded application if the -widget is destroyed before the idle handler fires due -to the use after free in the callback. A solution, to -this particular problem, is to check to if the source -has already been destroy within the callback.

    -

    ⚠️ The following code is in C ⚠️

    -
    static gboolean
    -idle_callback (gpointer data)
    -{
    -  SomeWidget *self = data;
    -
    -  g_mutex_lock (&self->idle_id_mutex);
    -  if (!g_source_is_destroyed (g_main_current_source ()))
    -    {
    -      // do stuff with self
    -    }
    -  g_mutex_unlock (&self->idle_id_mutex);
    -
    -  return FALSE;
    -}
    -

    Calls to this function from a thread other than the one acquired by the -MainContext the #GSource is attached to are typically -redundant, as the source could be destroyed immediately after this function -returns. However, once a source is destroyed it cannot be un-destroyed, so -this function can be used for opportunistic checks from any thread.

    -
    §Returns
    -

    true if the source has been destroyed

    -
    Source

    pub fn remove_child_source(&self, child_source: &Source)

    Detaches @child_source from @self and destroys it.

    -

    This API is only intended to be used by implementations of #GSource. -Do not call this API on a #GSource that you did not create.

    -
    §child_source
    -

    a #GSource previously passed to -add_child_source().

    -
    Source§

    impl Source

    Source

    pub fn attach(&self, context: Option<&MainContext>) -> SourceId

    Trait Implementations§

    Source§

    impl Clone for Source

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +
    glib

    Struct Source

    Source
    pub struct Source { /* private fields */ }
    Expand description

    GLib type: Shared boxed type with reference counted clone semantics.

    +

    Implementations§

    Source§

    impl Source

    Source

    pub fn as_ptr(&self) -> *mut GSource

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GSource) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl Source

    Source

    pub fn add_child_source(&self, child_source: &Source)

    Source

    pub fn destroy(&self)

    Source

    pub fn can_recurse(&self) -> bool

    Source

    pub fn context(&self) -> Option<MainContext>

    Source

    pub fn name(&self) -> Option<GString>

    Source

    pub fn priority(&self) -> i32

    Source

    pub fn ready_time(&self) -> i64

    Source

    pub fn time(&self) -> i64

    Source

    pub fn is_destroyed(&self) -> bool

    Source

    pub fn remove_child_source(&self, child_source: &Source)

    Source§

    impl Source

    Source

    pub fn attach(&self, context: Option<&MainContext>) -> SourceId

    Trait Implementations§

    Source§

    impl Clone for Source

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Source

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Source> for Value

    Source§

    fn from(s: Source) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Source

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Source

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Source>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Source

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Source

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Source> for Value

    Source§

    fn from(s: Source) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Source

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Source

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Source>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Source

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Source

    Source§

    fn cmp(&self, other: &Source) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Source

    Source§

    fn cmp(&self, other: &Source) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Source

    Source§

    fn eq(&self, other: &Source) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Source

    Source§

    fn partial_cmp(&self, other: &Source) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Source

    Source§

    fn eq(&self, other: &Source) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Source

    Source§

    fn partial_cmp(&self, other: &Source) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for Source

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Source

    Source§

    impl Send for Source

    Source§

    impl StructuralPartialEq for Source

    Source§

    impl Sync for Source

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for Source

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Source

    Source§

    impl Send for Source

    Source§

    impl StructuralPartialEq for Source

    Source§

    impl Sync for Source

    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> CloneToUninit for T
    where @@ -252,8 +118,8 @@
    §HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.SpawnFlags.html b/git/docs/glib/struct.SpawnFlags.html index 81ec8432c14e..5706f9f2a0dd 100644 --- a/git/docs/glib/struct.SpawnFlags.html +++ b/git/docs/glib/struct.SpawnFlags.html @@ -1,4 +1,4 @@ -SpawnFlags in glib - Rust +SpawnFlags in glib - Rust -
    glib

    Struct SpawnFlags

    Source
    pub struct SpawnFlags(/* private fields */);
    Expand description

    Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().

    -

    Implementations§

    Source§

    impl SpawnFlags

    Source

    pub const DEFAULT: Self = _

    no flags, default behaviour

    -
    Source

    pub const LEAVE_DESCRIPTORS_OPEN: Self = _

    the parent’s open file descriptors will -be inherited by the child; otherwise all descriptors except stdin, -stdout and stderr will be closed before calling exec() in the child.

    -
    Source

    pub const DO_NOT_REAP_CHILD: Self = _

    the child will not be automatically reaped; -you must use g_child_watch_add() yourself (or call waitpid() or handle -SIGCHLD yourself), or the child will become a zombie.

    -
    Source

    pub const SEARCH_PATH: Self = _

    argv[0] need not be an absolute path, it will be -looked for in the user’s PATH.

    -
    Source

    pub const STDOUT_TO_DEV_NULL: Self = _

    the child’s standard output will be discarded, -instead of going to the same location as the parent’s standard output.

    -
    Source

    pub const STDERR_TO_DEV_NULL: Self = _

    the child’s standard error will be discarded.

    -
    Source

    pub const CHILD_INHERITS_STDIN: Self = _

    the child will inherit the parent’s standard -input (by default, the child’s standard input is attached to /dev/null).

    -
    Source

    pub const FILE_AND_ARGV_ZERO: Self = _

    the first element of argv is the file to -execute, while the remaining elements are the actual argument vector -to pass to the file. Normally g_spawn_async_with_pipes() uses argv[0] -as the file to execute, and passes all of argv to the child.

    -
    Source

    pub const SEARCH_PATH_FROM_ENVP: Self = _

    if argv[0] is not an absolute path, +

    glib

    Struct SpawnFlags

    Source
    pub struct SpawnFlags(/* private fields */);

    Implementations§

    Source§

    impl SpawnFlags

    Source

    pub const DEFAULT: Self = _

    Source

    pub const LEAVE_DESCRIPTORS_OPEN: Self = _

    Source

    pub const DO_NOT_REAP_CHILD: Self = _

    Source

    pub const SEARCH_PATH: Self = _

    Source

    pub const STDOUT_TO_DEV_NULL: Self = _

    Source

    pub const STDERR_TO_DEV_NULL: Self = _

    Source

    pub const CHILD_INHERITS_STDIN: Self = _

    Source

    pub const FILE_AND_ARGV_ZERO: Self = _

    Source

    pub const SEARCH_PATH_FROM_ENVP: Self = _

    if argv[0] is not an absolute path, it will be looked for in the PATH from the passed child environment. Since: 2.34

    -
    Source

    pub const CLOEXEC_PIPES: Self = _

    create all pipes with the O_CLOEXEC flag set. +

    Source

    pub const CLOEXEC_PIPES: Self = _

    create all pipes with the O_CLOEXEC flag set. Since: 2.40

    -
    Source

    pub const CHILD_INHERITS_STDOUT: Self = _

    Available on crate feature v2_74 only.

    The child will inherit the parent’s standard output.

    -
    Source

    pub const CHILD_INHERITS_STDERR: Self = _

    Available on crate feature v2_74 only.

    The child will inherit the parent’s standard error.

    -
    Source

    pub const STDIN_FROM_DEV_NULL: Self = _

    Available on crate feature v2_74 only.

    The child’s standard input is attached to /dev/null.

    -
    Source§

    impl SpawnFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    Source

    pub const CHILD_INHERITS_STDOUT: Self = _

    Available on crate feature v2_74 only.

    The child will inherit the parent’s standard output.

    +
    Source

    pub const CHILD_INHERITS_STDERR: Self = _

    Available on crate feature v2_74 only.

    The child will inherit the parent’s standard error.

    +
    Source

    pub const STDIN_FROM_DEV_NULL: Self = _

    Available on crate feature v2_74 only.

    The child’s standard input is attached to /dev/null.

    +
    Source§

    impl SpawnFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl SpawnFlags

    Source

    pub const fn iter(&self) -> Iter<SpawnFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl SpawnFlags

    Source

    pub const fn iter(&self) -> Iter<SpawnFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<SpawnFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<SpawnFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for SpawnFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = SpawnFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for SpawnFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for SpawnFlags

    Source§

    fn bitor(self, other: SpawnFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = SpawnFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for SpawnFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for SpawnFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = SpawnFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for SpawnFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for SpawnFlags

    Source§

    fn clone(&self) -> SpawnFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<SpawnFlags> for SpawnFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for SpawnFlags

    Source§

    const FLAGS: &'static [Flag<SpawnFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> SpawnFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for SpawnFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = SpawnFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for SpawnFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for SpawnFlags

    Source§

    fn bitor(self, other: SpawnFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = SpawnFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for SpawnFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for SpawnFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = SpawnFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for SpawnFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for SpawnFlags

    Source§

    fn clone(&self) -> SpawnFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<SpawnFlags> for SpawnFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for SpawnFlags

    Source§

    const FLAGS: &'static [Flag<SpawnFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> SpawnFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<SpawnFlags> for SpawnFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for SpawnFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<SpawnFlags> for SpawnFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for SpawnFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for SpawnFlags

    Source§

    type Item = SpawnFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<SpawnFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for SpawnFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = SpawnFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for SpawnFlags

    Source§

    fn eq(&self, other: &SpawnFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for SpawnFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for SpawnFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for SpawnFlags

    Source§

    type Item = SpawnFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<SpawnFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for SpawnFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = SpawnFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for SpawnFlags

    Source§

    fn eq(&self, other: &SpawnFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for SpawnFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for SpawnFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = SpawnFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for SpawnFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = SpawnFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for SpawnFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for SpawnFlags

    Source§

    impl Eq for SpawnFlags

    Source§

    impl StructuralPartialEq for SpawnFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for SpawnFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for SpawnFlags

    Source§

    impl Eq for SpawnFlags

    Source§

    impl StructuralPartialEq for SpawnFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.ThreadHandle.html b/git/docs/glib/struct.ThreadHandle.html index 2423fff04a84..046bdb1eb030 100644 --- a/git/docs/glib/struct.ThreadHandle.html +++ b/git/docs/glib/struct.ThreadHandle.html @@ -71,15 +71,15 @@ -
    glib

    Struct ThreadHandle

    Source
    pub struct ThreadHandle<T> { /* private fields */ }
    Expand description

    A handle to a thread running on a ThreadPool.

    +
    glib

    Struct ThreadHandle

    Source
    pub struct ThreadHandle<T> { /* private fields */ }
    Expand description

    A handle to a thread running on a ThreadPool.

    Like std::thread::JoinHandle for a GLib thread. The return value from the task can be retrieved by calling ThreadHandle::join. Dropping the handle “detaches” the thread, allowing it to complete but discarding the return value.

    -

    Implementations§

    Source§

    impl<T> ThreadHandle<T>

    Source

    pub fn join(self) -> Result<T>

    Waits for the associated thread to finish.

    +

    Implementations§

    Source§

    impl<T> ThreadHandle<T>

    Source

    pub fn join(self) -> Result<T>

    Waits for the associated thread to finish.

    Blocks until the associated thread returns. Returns Ok with the value returned from the thread, or Err if the thread panicked. This function will return immediately if the associated thread has already finished.

    -

    Trait Implementations§

    Source§

    impl<T: Debug> Debug for ThreadHandle<T>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for ThreadHandle<T>

    §

    impl<T> RefUnwindSafe for ThreadHandle<T>

    §

    impl<T> Send for ThreadHandle<T>
    where +

    Trait Implementations§

    Source§

    impl<T: Debug> Debug for ThreadHandle<T>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<T> Freeze for ThreadHandle<T>

    §

    impl<T> RefUnwindSafe for ThreadHandle<T>

    §

    impl<T> Send for ThreadHandle<T>
    where T: Send,

    §

    impl<T> !Sync for ThreadHandle<T>

    §

    impl<T> Unpin for ThreadHandle<T>

    §

    impl<T> UnwindSafe for ThreadHandle<T>

    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 diff --git a/git/docs/glib/struct.ThreadPool.html b/git/docs/glib/struct.ThreadPool.html index cc95390e5082..91d487222c0d 100644 --- a/git/docs/glib/struct.ThreadPool.html +++ b/git/docs/glib/struct.ThreadPool.html @@ -71,7 +71,27 @@ -
    glib

    Struct ThreadPool

    Source
    pub struct ThreadPool(/* private fields */);
    Expand description

    The GThreadPool struct represents a thread pool.

    +
    glib

    Struct ThreadPool

    Source
    pub struct ThreadPool(/* private fields */);
    Expand description

    The GThreadPool struct represents a thread pool.

    +

    A thread pool is useful when you wish to asynchronously fork out the execution of work +and continue working in your own thread. If that will happen often, the overhead of starting +and destroying a thread each time might be too high. In such cases reusing already started +threads seems like a good idea. And it indeed is, but implementing this can be tedious +and error-prone.

    +

    Therefore GLib provides thread pools for your convenience. An added advantage is, that the +threads can be shared between the different subsystems of your program, when they are using GLib.

    +

    To create a new thread pool, you use [new()][Self::new()]. +It is destroyed by GLib::ThreadPool::free().

    +

    If you want to execute a certain task within a thread pool, use push().

    +

    To get the current number of running threads you call num_threads(). +To get the number of still unprocessed tasks you call unprocessed(). +To control the maximum number of threads for a thread pool, you use +max_threads(). and set_max_threads().

    +

    Finally you can control the number of unused threads, that are kept alive by GLib for future use. +The current number can be fetched with num_unused_threads(). +The maximum number can be controlled by max_unused_threads() and +set_max_unused_threads(). All currently unused threads +can be stopped by calling stop_unused_threads(). +The GThreadPool struct represents a thread pool.

    A thread pool is useful when you wish to asynchronously fork out the execution of work and continue working in your own thread. If that will happen often, the overhead of starting and destroying a thread each time might be too high. In such cases reusing already started @@ -91,7 +111,7 @@ The maximum number can be controlled by max_unused_threads() and set_max_unused_threads(). All currently unused threads can be stopped by calling stop_unused_threads().

    -

    Implementations§

    Source§

    impl ThreadPool

    Source

    pub fn shared(max_threads: Option<u32>) -> Result<Self, Error>

    Source

    pub fn exclusive(max_threads: u32) -> Result<Self, Error>

    Source

    pub fn push<T: Send + 'static, F: FnOnce() -> T + Send + 'static>( +

    Implementations§

    Source§

    impl ThreadPool

    Source

    pub fn shared(max_threads: Option<u32>) -> Result<Self, Error>

    Source

    pub fn exclusive(max_threads: u32) -> Result<Self, Error>

    Source

    pub fn push<T: Send + 'static, F: FnOnce() -> T + Send + 'static>( &self, func: F, ) -> Result<ThreadHandle<T>, Error>

    Inserts @data into the list of tasks to be executed by @self.

    @@ -106,11 +126,24 @@ work to do.

    Before version 2.32, this function did not return a success status.

    §Returns
    +

    true on success, false if an error occurred +Inserts @data into the list of tasks to be executed by @self.

    +

    When the number of currently running threads is lower than the +maximal allowed number of threads, a new thread is started (or +reused) with the properties given to g_thread_pool_new(). +Otherwise, @data stays in the queue until a thread in this pool +finishes its previous task and processes @data.

    +

    @error can be None to ignore errors, or non-None to report +errors. An error can only occur when a new thread couldn’t be +created. In that case @data is simply appended to the queue of +work to do.

    +

    Before version 2.32, this function did not return a success status.

    +
    §Returns

    true on success, false if an error occurred

    -
    Source

    pub fn push_future<T: Send + 'static, F: FnOnce() -> T + Send + 'static>( +

    Source

    pub fn push_future<T: Send + 'static, F: FnOnce() -> T + Send + 'static>( &self, func: F, -) -> Result<impl Future<Output = Result<T>> + Send + Sync + 'static, Error>

    Source

    pub fn set_max_threads(&self, max_threads: Option<u32>) -> Result<(), Error>

    Sets the maximal allowed number of threads for @self. +) -> Result<impl Future<Output = Result<T>> + Send + Sync + 'static, Error>

    Source

    pub fn set_max_threads(&self, max_threads: Option<u32>) -> Result<(), Error>

    Sets the maximal allowed number of threads for @self. A value of -1 means that the maximal number of threads is unlimited. If @self is an exclusive thread pool, setting the maximal number of threads to -1 is not allowed.

    @@ -129,33 +162,78 @@
    §Returns
    §max_threads

    a new maximal number of threads for @self, or -1 for unlimited

    -
    §Returns
    -

    true on success, false if an error occurred

    -
    Source

    pub fn max_threads(&self) -> Option<u32>

    Returns the maximal number of threads for @self.

    §Returns
    -

    the maximal number of threads

    -
    Source

    pub fn num_threads(&self) -> u32

    Returns the number of threads currently running in @self.

    +

    true on success, false if an error occurred +Sets the maximal allowed number of threads for @self. +A value of -1 means that the maximal number of threads +is unlimited. If @self is an exclusive thread pool, setting +the maximal number of threads to -1 is not allowed.

    +

    Setting @max_threads to 0 means stopping all work for @self. +It is effectively frozen until @max_threads is set to a non-zero +value again.

    +

    A thread is never terminated while calling @func, as supplied by +g_thread_pool_new(). Instead the maximal number of threads only +has effect for the allocation of new threads in g_thread_pool_push(). +A new thread is allocated, whenever the number of currently +running threads in @self is smaller than the maximal number.

    +

    @error can be None to ignore errors, or non-None to report +errors. An error can only occur when a new thread couldn’t be +created.

    +

    Before version 2.32, this function did not return a success status.

    +
    §max_threads
    +

    a new maximal number of threads for @self, +or -1 for unlimited

    §Returns
    -

    the number of threads currently running

    -
    Source

    pub fn unprocessed(&self) -> u32

    Returns the number of tasks still unprocessed in @self.

    +

    true on success, false if an error occurred

    +
    Source

    pub fn max_threads(&self) -> Option<u32>

    Returns the maximal number of threads for @self.

    §Returns
    +

    the maximal number of threads +Returns the maximal number of threads for @self.

    +
    §Returns
    +

    the maximal number of threads

    +
    Source

    pub fn num_threads(&self) -> u32

    Returns the number of threads currently running in @self.

    +
    §Returns
    +

    the number of threads currently running +Returns the number of threads currently running in @self.

    +
    §Returns
    +

    the number of threads currently running

    +
    Source

    pub fn unprocessed(&self) -> u32

    Returns the number of tasks still unprocessed in @self.

    +
    §Returns
    +

    the number of unprocessed tasks +Returns the number of tasks still unprocessed in @self.

    +
    §Returns

    the number of unprocessed tasks

    -
    Source

    pub fn set_max_unused_threads(max_threads: Option<u32>)

    Sets the maximal number of unused threads to @max_threads. +

    Source

    pub fn set_max_unused_threads(max_threads: Option<u32>)

    Sets the maximal number of unused threads to @max_threads. If @max_threads is -1, no limit is imposed on the number of unused threads.

    The default value is 2.

    -
    §max_threads
    +
    §max_threads
    +

    maximal number of unused threads +Sets the maximal number of unused threads to @max_threads. +If @max_threads is -1, no limit is imposed on the number +of unused threads.

    +

    The default value is 2.

    +
    §max_threads

    maximal number of unused threads

    -
    Source

    pub fn max_unused_threads() -> Option<u32>

    Returns the maximal allowed number of unused threads.

    -
    §Returns
    +
    Source

    pub fn max_unused_threads() -> Option<u32>

    Returns the maximal allowed number of unused threads.

    +
    §Returns
    +

    the maximal number of unused threads +Returns the maximal allowed number of unused threads.

    +
    §Returns

    the maximal number of unused threads

    -
    Source

    pub fn num_unused_threads() -> u32

    Returns the number of currently unused threads.

    -
    §Returns
    +
    Source

    pub fn num_unused_threads() -> u32

    Returns the number of currently unused threads.

    +
    §Returns
    +

    the number of currently unused threads +Returns the number of currently unused threads.

    +
    §Returns

    the number of currently unused threads

    -
    Source

    pub fn stop_unused_threads()

    Stops all currently unused threads. This does not change the +

    Source

    pub fn stop_unused_threads()

    Stops all currently unused threads. This does not change the +maximal number of unused threads. This function can be used to +regularly stop all unused threads e.g. from g_timeout_add(). +Stops all currently unused threads. This does not change the maximal number of unused threads. This function can be used to regularly stop all unused threads e.g. from g_timeout_add().

    -
    Source

    pub fn set_max_idle_time(max_idle_time: u32)

    This function will set the maximum @interval that a thread +

    Source

    pub fn set_max_idle_time(max_idle_time: u32)

    This function will set the maximum @interval that a thread waiting in the pool for new tasks can be idle for before being stopped. This function is similar to calling g_thread_pool_stop_unused_threads() on a regular timeout, @@ -164,17 +242,36 @@

    §Returns

    The default value is 15000 (15 seconds).

    §interval

    the maximum @interval (in milliseconds) +a thread can be idle +This function will set the maximum @interval that a thread +waiting in the pool for new tasks can be idle for before +being stopped. This function is similar to calling +g_thread_pool_stop_unused_threads() on a regular timeout, +except this is done on a per thread basis.

    +

    By setting @interval to 0, idle threads will not be stopped.

    +

    The default value is 15000 (15 seconds).

    +
    §interval
    +

    the maximum @interval (in milliseconds) a thread can be idle

    -
    Source

    pub fn max_idle_time() -> u32

    This function will return the maximum @interval that a +

    Source

    pub fn max_idle_time() -> u32

    This function will return the maximum @interval that a thread will wait in the thread pool for new tasks before being stopped.

    If this function returns 0, threads waiting in the thread pool for new work are not stopped.

    -
    §Returns
    +
    §Returns
    +

    the maximum @interval (milliseconds) to wait +for new tasks in the thread pool before stopping the +thread +This function will return the maximum @interval that a +thread will wait in the thread pool for new tasks before +being stopped.

    +

    If this function returns 0, threads waiting in the thread +pool for new work are not stopped.

    +
    §Returns

    the maximum @interval (milliseconds) to wait for new tasks in the thread pool before stopping the thread

    -

    Trait Implementations§

    Source§

    impl Debug for ThreadPool

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for ThreadPool

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl Send for ThreadPool

    Source§

    impl Sync for ThreadPool

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl Debug for ThreadPool

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for ThreadPool

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl Send for ThreadPool

    Source§

    impl Sync for ThreadPool

    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> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/git/docs/glib/struct.TimeZone.html b/git/docs/glib/struct.TimeZone.html index 228067fc94ee..0ab1bd8f07a1 100644 --- a/git/docs/glib/struct.TimeZone.html +++ b/git/docs/glib/struct.TimeZone.html @@ -71,7 +71,28 @@ -
    glib

    Struct TimeZone

    Source
    pub struct TimeZone { /* private fields */ }
    Expand description

    A GTimeZone represents a time zone, at no particular point in time.

    +
    glib

    Struct TimeZone

    Source
    pub struct TimeZone { /* private fields */ }
    Expand description

    A GTimeZone represents a time zone, at no particular point in time.

    +

    The GTimeZone struct is refcounted and immutable.

    +

    Each time zone has an identifier (for example, ‘Europe/London’) which is +platform dependent. See GLib::TimeZone::new() for information on the +identifier formats. The identifier of a time zone can be retrieved using +identifier().

    +

    A time zone contains a number of intervals. Each interval has an abbreviation +to describe it (for example, ‘PDT’), an offset to UTC and a flag indicating +if the daylight savings time is in effect during that interval. A time zone +always has at least one interval — interval 0. Note that interval abbreviations +are not the same as time zone identifiers (apart from ‘UTC’), and cannot be +passed to GLib::TimeZone::new().

    +

    Every UTC time is contained within exactly one interval, but a given +local time may be contained within zero, one or two intervals (due to +incontinuities associated with daylight savings time).

    +

    An interval may refer to a specific period of time (eg: the duration +of daylight savings time during 2010) or it may refer to many periods +of time that share the same properties (eg: all periods of daylight +savings time). It is also possible (usually for political reasons) +that some properties (like the abbreviation) change between intervals +without other properties changing. +A GTimeZone represents a time zone, at no particular point in time.

    The GTimeZone struct is refcounted and immutable.

    Each time zone has an identifier (for example, ‘Europe/London’) which is platform dependent. See GLib::TimeZone::new() for information on the @@ -93,9 +114,9 @@ that some properties (like the abbreviation) change between intervals without other properties changing.

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl TimeZone

    Source

    pub fn as_ptr(&self) -> *mut GTimeZone

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GTimeZone) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl TimeZone

    Source

    pub fn new(identifier: Option<&str>) -> TimeZone

    👎Deprecated: Since 2.68

    A version of g_time_zone_new_identifier() which returns the UTC time zone +

    Implementations§

    Source§

    impl TimeZone

    Source

    pub fn as_ptr(&self) -> *mut GTimeZone

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GTimeZone) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl TimeZone

    Source

    pub fn new(identifier: Option<&str>) -> TimeZone

    👎Deprecated: Since 2.68

    A version of g_time_zone_new_identifier() which returns the UTC time zone if @identifier could not be parsed or loaded.

    If you need to check whether @identifier was loaded successfully, use g_time_zone_new_identifier().

    @@ -106,8 +127,20 @@
    §identifier

    a timezone identifier

    §Returns
    +

    the requested timezone +A version of g_time_zone_new_identifier() which returns the UTC time zone +if @identifier could not be parsed or loaded.

    +

    If you need to check whether @identifier was loaded successfully, use +g_time_zone_new_identifier().

    +
    §Deprecated since 2.68
    +

    Use g_time_zone_new_identifier() instead, as it provides +error reporting. Change your code to handle a potentially None return +value.

    +
    §identifier
    +

    a timezone identifier

    +
    §Returns

    the requested timezone

    -
    Source

    pub fn from_identifier(identifier: Option<&str>) -> Option<TimeZone>

    Available on crate feature v2_68 only.

    Creates a #GTimeZone corresponding to @identifier. If @identifier cannot be +

    Source

    pub fn from_identifier(identifier: Option<&str>) -> Option<TimeZone>

    Available on crate feature v2_68 only.

    Creates a #GTimeZone corresponding to @identifier. If @identifier cannot be parsed or loaded, None is returned.

    @identifier can either be an RFC3339/ISO 8601 time offset or something that would pass as a valid value for the TZ environment @@ -163,21 +196,91 @@

    §Returns
    for the list of time zones on Windows.

    You should release the return value by calling g_time_zone_unref() when you are done with it.

    -
    §identifier
    +
    §identifier

    a timezone identifier

    -
    §Returns
    +
    §Returns
    +

    the requested timezone, or None on +failure +Creates a #GTimeZone corresponding to @identifier. If @identifier cannot be +parsed or loaded, None is returned.

    +

    @identifier can either be an RFC3339/ISO 8601 time offset or +something that would pass as a valid value for the TZ environment +variable (including None).

    +

    In Windows, @identifier can also be the unlocalized name of a time +zone for standard time, for example “Pacific Standard Time”.

    +

    Valid RFC3339 time offsets are "Z" (for UTC) or +"±hh:mm". ISO 8601 additionally specifies +"±hhmm" and "±hh". Offsets are +time values to be added to Coordinated Universal Time (UTC) to get +the local time.

    +

    In UNIX, the TZ environment variable typically corresponds +to the name of a file in the zoneinfo database, an absolute path to a file +somewhere else, or a string in +“std offset [dst [offset],start[/time],end[/time]]” (POSIX) format. +There are no spaces in the specification. The name of standard +and daylight savings time zone must be three or more alphabetic +characters. Offsets are time values to be added to local time to +get Coordinated Universal Time (UTC) and should be +"[±]hh[[:]mm[:ss]]". Dates are either +"Jn" (Julian day with n between 1 and 365, leap +years not counted), "n" (zero-based Julian day +with n between 0 and 365) or "Mm.w.d" (day d +(0 <= d <= 6) of week w (1 <= w <= 5) of month m (1 <= m <= 12), day +0 is a Sunday). Times are in local wall clock time, the default is +02:00:00.

    +

    In Windows, the “tzn[+|–]hh[:mm[:ss]][dzn]” format is used, but also +accepts POSIX format. The Windows format uses US rules for all time +zones; daylight savings time is 60 minutes behind the standard time +with date and time of change taken from Pacific Standard Time. +Offsets are time values to be added to the local time to get +Coordinated Universal Time (UTC).

    +

    g_time_zone_new_local() calls this function with the value of the +TZ environment variable. This function itself is independent of +the value of TZ, but if @identifier is None then /etc/localtime +will be consulted to discover the correct time zone on UNIX and the +registry will be consulted or GetTimeZoneInformation() will be used +to get the local time zone on Windows.

    +

    If intervals are not available, only time zone rules from TZ +environment variable or other means, then they will be computed +from year 1900 to 2037. If the maximum year for the rules is +available and it is greater than 2037, then it will followed +instead.

    +

    See +RFC3339 §5.6 +for a precise definition of valid RFC3339 time offsets +(the time-offset expansion) and ISO 8601 for the +full list of valid time offsets. See +The GNU C Library manual +for an explanation of the possible +values of the TZ environment variable. See +Microsoft Time Zone Index Values +for the list of time zones on Windows.

    +

    You should release the return value by calling g_time_zone_unref() +when you are done with it.

    +
    §identifier
    +

    a timezone identifier

    +
    §Returns

    the requested timezone, or None on failure

    -
    Source

    pub fn local() -> TimeZone

    Creates a #GTimeZone corresponding to local time. The local time +

    Source

    pub fn local() -> TimeZone

    Creates a #GTimeZone corresponding to local time. The local time zone may change between invocations to this function; for example, if the system administrator changes it.

    This is equivalent to calling g_time_zone_new() with the value of the TZ environment variable (including the possibility of None).

    You should release the return value by calling g_time_zone_unref() when you are done with it.

    -
    §Returns
    +
    §Returns
    +

    the local timezone +Creates a #GTimeZone corresponding to local time. The local time +zone may change between invocations to this function; for example, +if the system administrator changes it.

    +

    This is equivalent to calling g_time_zone_new() with the value of +the TZ environment variable (including the possibility of None).

    +

    You should release the return value by calling g_time_zone_unref() +when you are done with it.

    +
    §Returns

    the local timezone

    -
    Source

    pub fn from_offset(seconds: i32) -> TimeZone

    Available on crate feature v2_58 only.

    Creates a #GTimeZone corresponding to the given constant offset from UTC, +

    Source

    pub fn from_offset(seconds: i32) -> TimeZone

    Available on crate feature v2_58 only.

    Creates a #GTimeZone corresponding to the given constant offset from UTC, in seconds.

    This is equivalent to calling g_time_zone_new() with a string in the form [+|-]hh[:mm[:ss]].

    @@ -187,17 +290,37 @@
    §Returns
    g_time_zone_new_identifier() directly.

    §seconds

    offset to UTC, in seconds

    -
    §Returns
    +
    §Returns
    +

    a timezone at the given offset from UTC, or UTC on +failure +Creates a #GTimeZone corresponding to the given constant offset from UTC, +in seconds.

    +

    This is equivalent to calling g_time_zone_new() with a string in the form +[+|-]hh[:mm[:ss]].

    +

    It is possible for this function to fail if @seconds is too big (greater than +24 hours), in which case this function will return the UTC timezone for +backwards compatibility. To detect failures like this, use +g_time_zone_new_identifier() directly.

    +
    §seconds
    +

    offset to UTC, in seconds

    +
    §Returns

    a timezone at the given offset from UTC, or UTC on failure

    -
    Source

    pub fn utc() -> TimeZone

    Creates a #GTimeZone corresponding to UTC.

    +
    Source

    pub fn utc() -> TimeZone

    Creates a #GTimeZone corresponding to UTC.

    This is equivalent to calling g_time_zone_new() with a value like “Z”, “UTC”, “+00”, etc.

    You should release the return value by calling g_time_zone_unref() when you are done with it.

    -
    §Returns
    +
    §Returns
    +

    the universal timezone +Creates a #GTimeZone corresponding to UTC.

    +

    This is equivalent to calling g_time_zone_new() with a value like +“Z”, “UTC”, “+00”, etc.

    +

    You should release the return value by calling g_time_zone_unref() +when you are done with it.

    +
    §Returns

    the universal timezone

    -
    Source

    pub fn find_interval(&self, type_: TimeType, time_: i64) -> i32

    Finds an interval within @self that corresponds to the given @time_. +

    Source

    pub fn find_interval(&self, type_: TimeType, time_: i64) -> i32

    Finds an interval within @self that corresponds to the given @time_. The meaning of @time_ depends on @type_.

    If @type_ is TimeType::Universal then this function will always succeed (since universal time is monotonic and continuous).

    @@ -216,43 +339,98 @@
    §type_

    the #GTimeType of @time_

    §time_

    a number of seconds since January 1, 1970

    -
    §Returns
    +
    §Returns
    +

    the interval containing @time_, or -1 in case of failure +Finds an interval within @self that corresponds to the given @time_. +The meaning of @time_ depends on @type_.

    +

    If @type_ is TimeType::Universal then this function will always +succeed (since universal time is monotonic and continuous).

    +

    Otherwise @time_ is treated as local time. The distinction between +TimeType::Standard and TimeType::Daylight is ignored except in +the case that the given @time_ is ambiguous. In Toronto, for example, +01:30 on November 7th 2010 occurred twice (once inside of daylight +savings time and the next, an hour later, outside of daylight savings +time). In this case, the different value of @type_ would result in a +different interval being returned.

    +

    It is still possible for this function to fail. In Toronto, for +example, 02:00 on March 14th 2010 does not exist (due to the leap +forward to begin daylight savings time). -1 is returned in that +case.

    +
    §type_
    +

    the #GTimeType of @time_

    +
    §time_
    +

    a number of seconds since January 1, 1970

    +
    §Returns

    the interval containing @time_, or -1 in case of failure

    -
    Source

    pub fn abbreviation(&self, interval: i32) -> GString

    Determines the time zone abbreviation to be used during a particular +

    Source

    pub fn abbreviation(&self, interval: i32) -> GString

    Determines the time zone abbreviation to be used during a particular @interval of time in the time zone @self.

    For example, in Toronto this is currently “EST” during the winter months and “EDT” during the summer months when daylight savings time is in effect.

    §interval

    an interval within the timezone

    -
    §Returns
    +
    §Returns
    +

    the time zone abbreviation, which belongs to @self +Determines the time zone abbreviation to be used during a particular +@interval of time in the time zone @self.

    +

    For example, in Toronto this is currently “EST” during the winter +months and “EDT” during the summer months when daylight savings time +is in effect.

    +
    §interval
    +

    an interval within the timezone

    +
    §Returns

    the time zone abbreviation, which belongs to @self

    -
    Source

    pub fn identifier(&self) -> GString

    Available on crate feature v2_58 only.

    Get the identifier of this #GTimeZone, as passed to g_time_zone_new(). +

    Source

    pub fn identifier(&self) -> GString

    Available on crate feature v2_58 only.

    Get the identifier of this #GTimeZone, as passed to g_time_zone_new(). If the identifier passed at construction time was not recognised, UTC will be returned. If it was None, the identifier of the local timezone at construction time will be returned.

    The identifier will be returned in the same format as provided at construction time: if provided as a time offset, that will be returned by this function.

    -
    §Returns
    +
    §Returns
    +

    identifier for this timezone +Get the identifier of this #GTimeZone, as passed to g_time_zone_new(). +If the identifier passed at construction time was not recognised, UTC will +be returned. If it was None, the identifier of the local timezone at +construction time will be returned.

    +

    The identifier will be returned in the same format as provided at +construction time: if provided as a time offset, that will be returned by +this function.

    +
    §Returns

    identifier for this timezone

    -
    Source

    pub fn offset(&self, interval: i32) -> i32

    Determines the offset to UTC in effect during a particular @interval +

    Source

    pub fn offset(&self, interval: i32) -> i32

    Determines the offset to UTC in effect during a particular @interval of time in the time zone @self.

    The offset is the number of seconds that you add to UTC time to arrive at local time for @self (ie: negative numbers for time zones west of GMT, positive numbers for east).

    -
    §interval
    +
    §interval

    an interval within the timezone

    -
    §Returns
    +
    §Returns
    +

    the number of seconds that should be added to UTC to get the +local time in @self +Determines the offset to UTC in effect during a particular @interval +of time in the time zone @self.

    +

    The offset is the number of seconds that you add to UTC time to +arrive at local time for @self (ie: negative numbers for time zones +west of GMT, positive numbers for east).

    +
    §interval
    +

    an interval within the timezone

    +
    §Returns

    the number of seconds that should be added to UTC to get the local time in @self

    -
    Source

    pub fn is_dst(&self, interval: i32) -> bool

    Determines if daylight savings time is in effect during a particular +

    Source

    pub fn is_dst(&self, interval: i32) -> bool

    Determines if daylight savings time is in effect during a particular @interval of time in the time zone @self.

    -
    §interval
    +
    §interval

    an interval within the timezone

    -
    §Returns
    +
    §Returns
    +

    true if daylight savings time is in effect +Determines if daylight savings time is in effect during a particular +@interval of time in the time zone @self.

    +
    §interval
    +

    an interval within the timezone

    +
    §Returns

    true if daylight savings time is in effect

    -
    Source§

    impl TimeZone

    Source

    pub fn adjust_time(&self, type_: TimeType, time: i64) -> (i32, i64)

    Finds an interval within @self that corresponds to the given @time_, +

    Source§

    impl TimeZone

    Source

    pub fn adjust_time(&self, type_: TimeType, time: i64) -> (i32, i64)

    Finds an interval within @self that corresponds to the given @time_, possibly adjusting @time_ if required to fit into an interval. The meaning of @time_ depends on @type_.

    This function is similar to g_time_zone_find_interval(), with the @@ -265,24 +443,43 @@

    §Returns
    requested on March 14th 2010 in Toronto then this function would adjust @time_ to be 03:00 and return the interval containing the adjusted time.

    -
    §type_
    +
    §type_

    the #GTimeType of @time_

    -
    §time_
    +
    §time_

    a pointer to a number of seconds since January 1, 1970

    -
    §Returns
    +
    §Returns
    +

    the interval containing @time_, never -1 +Finds an interval within @self that corresponds to the given @time_, +possibly adjusting @time_ if required to fit into an interval. +The meaning of @time_ depends on @type_.

    +

    This function is similar to g_time_zone_find_interval(), with the +difference that it always succeeds (by making the adjustments +described below).

    +

    In any of the cases where g_time_zone_find_interval() succeeds then +this function returns the same value, without modifying @time_.

    +

    This function may, however, modify @time_ in order to deal with +non-existent times. If the non-existent local @time_ of 02:30 were +requested on March 14th 2010 in Toronto then this function would +adjust @time_ to be 03:00 and return the interval containing the +adjusted time.

    +
    §type_
    +

    the #GTimeType of @time_

    +
    §time_
    +

    a pointer to a number of seconds since January 1, 1970

    +
    §Returns

    the interval containing @time_, never -1

    -

    Trait Implementations§

    Source§

    impl Clone for TimeZone

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +

    Trait Implementations§

    Source§

    impl Clone for TimeZone

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TimeZone

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<TimeZone> for Value

    Source§

    fn from(s: TimeZone) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for TimeZone

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = TimeZone

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, TimeZone>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for TimeZone

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TimeZone

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<TimeZone> for Value

    Source§

    fn from(s: TimeZone) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for TimeZone

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = TimeZone

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, TimeZone>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for TimeZone

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for TimeZone

    Source§

    fn cmp(&self, other: &TimeZone) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for TimeZone

    Source§

    fn cmp(&self, other: &TimeZone) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for TimeZone

    Source§

    fn eq(&self, other: &TimeZone) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for TimeZone

    Source§

    fn partial_cmp(&self, other: &TimeZone) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,
    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for TimeZone

    Source§

    fn eq(&self, other: &TimeZone) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for TimeZone

    Source§

    fn partial_cmp(&self, other: &TimeZone) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for TimeZone

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for TimeZone

    Source§

    impl Send for TimeZone

    Source§

    impl StructuralPartialEq for TimeZone

    Source§

    impl Sync for TimeZone

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for TimeZone

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for TimeZone

    Source§

    impl Send for TimeZone

    Source§

    impl StructuralPartialEq for TimeZone

    Source§

    impl Sync for TimeZone

    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> CloneToUninit for T
    where @@ -315,8 +512,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/struct.TypeFlags.html b/git/docs/glib/struct.TypeFlags.html index 0d9c8605b1b6..e0d08329ebd6 100644 --- a/git/docs/glib/struct.TypeFlags.html +++ b/git/docs/glib/struct.TypeFlags.html @@ -71,77 +71,77 @@ -
    glib

    Struct TypeFlags

    Source
    pub struct TypeFlags(/* private fields */);
    Expand description

    Bit masks used to check or determine characteristics of a type.

    -

    Implementations§

    Source§

    impl TypeFlags

    Source

    pub const NONE: Self = _

    No special flags. Since: 2.74

    -
    Source

    pub const ABSTRACT: Self = _

    Indicates an abstract type. No instances can be +

    glib

    Struct TypeFlags

    Source
    pub struct TypeFlags(/* private fields */);
    Expand description

    Bit masks used to check or determine characteristics of a type.

    +

    Implementations§

    Source§

    impl TypeFlags

    Source

    pub const NONE: Self = _

    No special flags. Since: 2.74

    +
    Source

    pub const ABSTRACT: Self = _

    Indicates an abstract type. No instances can be created for an abstract type

    -
    Source

    pub const VALUE_ABSTRACT: Self = _

    Indicates an abstract value type, i.e. a type +

    Source

    pub const VALUE_ABSTRACT: Self = _

    Indicates an abstract value type, i.e. a type that introduces a value table, but can’t be used for [Value::init()][crate::Value::init()]

    -
    Source

    pub const FINAL: Self = _

    Indicates a final type. A final type is a non-derivable +

    Source

    pub const FINAL: Self = _

    Indicates a final type. A final type is a non-derivable leaf node in a deep derivable type hierarchy tree. Since: 2.70

    -
    Source

    pub const DEPRECATED: Self = _

    The type is deprecated and may be removed in a +

    Source

    pub const DEPRECATED: Self = _

    The type is deprecated and may be removed in a future version. A warning will be emitted if it is instantiated while running with G_ENABLE_DIAGNOSTIC=1. Since 2.76

    -
    Source§

    impl TypeFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    Source§

    impl TypeFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl TypeFlags

    Source

    pub const fn iter(&self) -> Iter<TypeFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl TypeFlags

    Source

    pub const fn iter(&self) -> Iter<TypeFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<TypeFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<TypeFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for TypeFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = TypeFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for TypeFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for TypeFlags

    Source§

    fn bitor(self, other: TypeFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = TypeFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for TypeFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for TypeFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = TypeFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for TypeFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for TypeFlags

    Source§

    fn clone(&self) -> TypeFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<TypeFlags> for TypeFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for TypeFlags

    Source§

    const FLAGS: &'static [Flag<TypeFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> TypeFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for TypeFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = TypeFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for TypeFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for TypeFlags

    Source§

    fn bitor(self, other: TypeFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = TypeFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for TypeFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for TypeFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = TypeFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for TypeFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for TypeFlags

    Source§

    fn clone(&self) -> TypeFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<TypeFlags> for TypeFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for TypeFlags

    Source§

    const FLAGS: &'static [Flag<TypeFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> TypeFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<TypeFlags> for TypeFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for TypeFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<TypeFlags> for TypeFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for TypeFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for TypeFlags

    Source§

    type Item = TypeFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<TypeFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for TypeFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = TypeFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for TypeFlags

    Source§

    fn eq(&self, other: &TypeFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for TypeFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for TypeFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for TypeFlags

    Source§

    type Item = TypeFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<TypeFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for TypeFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = TypeFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for TypeFlags

    Source§

    fn eq(&self, other: &TypeFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for TypeFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for TypeFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = TypeFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for TypeFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = TypeFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for TypeFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for TypeFlags

    Source§

    impl Eq for TypeFlags

    Source§

    impl StructuralPartialEq for TypeFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for TypeFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for TypeFlags

    Source§

    impl Eq for TypeFlags

    Source§

    impl StructuralPartialEq for TypeFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.Uri.html b/git/docs/glib/struct.Uri.html index 71b155d1a605..3f94276c1f00 100644 --- a/git/docs/glib/struct.Uri.html +++ b/git/docs/glib/struct.Uri.html @@ -71,7 +71,7 @@ -
    glib

    Struct Uri

    Source
    pub struct Uri { /* private fields */ }
    Available on crate feature v2_66 only.
    Expand description

    The GUri type and related functions can be used to parse URIs into +

    glib

    Struct Uri

    Source
    pub struct Uri { /* private fields */ }
    Available on crate feature v2_66 only.
    Expand description

    The GUri type and related functions can be used to parse URIs into their components, and build valid URIs from individual components.

    Since GUri only represents absolute URIs, all GUris will have a URI scheme, so scheme() will always return a non-NULL @@ -195,26 +195,166 @@

    §URI Equal however it is not comprehensive. For example, data:,foo and data:;base64,Zm9v resolve to the same thing according to the data: URI specification which GLib does not +handle. +The GUri type and related functions can be used to parse URIs into +their components, and build valid URIs from individual components.

    +

    Since GUri only represents absolute URIs, all GUris will have a +URI scheme, so scheme() will always return a non-NULL +answer. Likewise, by definition, all URIs have a path component, so +path() will always return a non-NULL string (which may +be empty).

    +

    If the URI string has an +‘authority’ component (that +is, if the scheme is followed by :// rather than just :), then the +GUri will contain a hostname, and possibly a port and ‘userinfo’. +Additionally, depending on how the GUri was constructed/parsed (for example, +using the G_URI_FLAGS_HAS_PASSWORD and G_URI_FLAGS_HAS_AUTH_PARAMS flags), +the userinfo may be split out into a username, password, and +additional authorization-related parameters.

    +

    Normally, the components of a GUri will have all %-encoded +characters decoded. However, if you construct/parse a GUri with +G_URI_FLAGS_ENCODED, then the %-encoding will be preserved instead in +the userinfo, path, and query fields (and in the host field if also +created with G_URI_FLAGS_NON_DNS). In particular, this is necessary if +the URI may contain binary data or non-UTF-8 text, or if decoding +the components might change the interpretation of the URI.

    +

    For example, with the encoded flag:

    +

    ⚠️ The following code is in c ⚠️

    +
    g_autoptr(GUri) uri = g_uri_parse ("http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fparam%3Dvalue", G_URI_FLAGS_ENCODED, &err);
    +g_assert_cmpstr (g_uri_get_query (uri), ==, "query=http%3A%2F%2Fhost%2Fpath%3Fparam%3Dvalue");
    +

    While the default %-decoding behaviour would give:

    +

    ⚠️ The following code is in c ⚠️

    +
    g_autoptr(GUri) uri = g_uri_parse ("http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fparam%3Dvalue", G_URI_FLAGS_NONE, &err);
    +g_assert_cmpstr (g_uri_get_query (uri), ==, "query=http://host/path?param=value");
    +

    During decoding, if an invalid UTF-8 string is encountered, parsing will fail +with an error indicating the bad string location:

    +

    ⚠️ The following code is in c ⚠️

    +
    g_autoptr(GUri) uri = g_uri_parse ("http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fbad%3D%00alue", G_URI_FLAGS_NONE, &err);
    +g_assert_error (err, G_URI_ERROR, G_URI_ERROR_BAD_QUERY);
    +

    You should pass G_URI_FLAGS_ENCODED or G_URI_FLAGS_ENCODED_QUERY if you +need to handle that case manually. In particular, if the query string +contains = characters that are %-encoded, you should let +GLib::Uri::parse_params() do the decoding once of the query.

    +

    GUri is immutable once constructed, and can safely be accessed from +multiple threads. Its reference counting is atomic.

    +

    Note that the scope of GUri is to help manipulate URIs in various applications, +following RFC 3986. In particular, +it doesn’t intend to cover web browser needs, and doesn’t implement the +WHATWG URL standard. No APIs are provided to +help prevent +homograph attacks, so +GUri is not suitable for formatting URIs for display to the user for making +security-sensitive decisions.

    +

    §Relative and absolute URIs

    +

    As defined in RFC 3986, the +hierarchical nature of URIs means that they can either be ‘relative +references’ (sometimes referred to as ‘relative URIs’) or ‘URIs’ (for +clarity, ‘URIs’ are referred to in this documentation as +‘absolute URIs’ — although +in contrast to RFC 3986, +fragment identifiers are always allowed).

    +

    Relative references have one or more components of the URI missing. In +particular, they have no scheme. Any other component, such as hostname, +query, etc. may be missing, apart from a path, which has to be specified (but +may be empty). The path may be relative, starting with ./ rather than /.

    +

    For example, a valid relative reference is ./path?query, +/?query#fragment or //example.com.

    +

    Absolute URIs have a scheme specified. Any other components of the URI which +are missing are specified as explicitly unset in the URI, rather than being +resolved relative to a base URI using parse_relative().

    +

    For example, a valid absolute URI is file:///home/bob or +https://search.com?query=string.

    +

    A GUri instance is always an absolute URI. A string may be an absolute URI +or a relative reference; see the documentation for individual functions as to +what forms they accept.

    +

    §Parsing URIs

    +

    The most minimalist APIs for parsing URIs are split() and +split_with_user(). These split a URI into its component +parts, and return the parts; the difference between the two is that +split() treats the ‘userinfo’ component of the URI as a +single element, while split_with_user() can (depending on the +UriFlags you pass) treat it as containing a username, password, +and authentication parameters. Alternatively, split_network() +can be used when you are only interested in the components that are +needed to initiate a network connection to the service (scheme, +host, and port).

    +

    parse() is similar to split(), but instead of +returning individual strings, it returns a GUri structure (and it requires +that the URI be an absolute URI).

    +

    resolve_relative() and parse_relative() allow +you to resolve a relative URI relative to a base URI. +resolve_relative() takes two strings and returns a string, +and parse_relative() takes a GUri and a string and returns a +GUri.

    +

    All of the parsing functions take a UriFlags argument describing +exactly how to parse the URI; see the documentation for that type +for more details on the specific flags that you can pass. If you +need to choose different flags based on the type of URI, you can +use peek_scheme() on the URI string to check the scheme +first, and use that to decide what flags to parse it with.

    +

    For example, you might want to use G_URI_PARAMS_WWW_FORM when parsing the +params for a web URI, so compare the result of peek_scheme() +against http and https.

    +

    §Building URIs

    +

    join() and join_with_user() can be used to construct +valid URI strings from a set of component strings. They are the +inverse of split() and split_with_user().

    +

    Similarly, build() and build_with_user() can be +used to construct a GUri from a set of component strings.

    +

    As with the parsing functions, the building functions take a +UriFlags argument. In particular, it is important to keep in mind +whether the URI components you are using are already %-encoded. If so, +you must pass the G_URI_FLAGS_ENCODED flag.

    +

    §file:// URIs

    +

    Note that Windows and Unix both define special rules for parsing +file:// URIs (involving non-UTF-8 character sets on Unix, and the +interpretation of path separators on Windows). GUri does not +implement these rules. Use filename_from_uri() and +filename_to_uri() if you want to properly convert between +file:// URIs and local filenames.

    +

    §URI Equality

    +

    Note that there is no g_uri_equal () function, because comparing +URIs usefully requires scheme-specific knowledge that GUri does +not have. GUri can help with normalization if you use the various +encoded UriFlags as well as G_URI_FLAGS_SCHEME_NORMALIZE +however it is not comprehensive. +For example, data:,foo and data:;base64,Zm9v resolve to the same +thing according to the data: URI specification which GLib does not handle.

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl Uri

    Source

    pub fn as_ptr(&self) -> *mut GUri

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GUri) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl Uri

    Source

    pub fn auth_params(&self) -> Option<GString>

    Gets @self’s authentication parameters, which may contain +

    Implementations§

    Source§

    impl Uri

    Source

    pub fn as_ptr(&self) -> *mut GUri

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GUri) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl Uri

    Source

    pub fn auth_params(&self) -> Option<GString>

    Gets @self’s authentication parameters, which may contain %-encoding, depending on the flags with which @self was created. (If @self was not created with UriFlags::HAS_AUTH_PARAMS then this will be None.)

    Depending on the URI scheme, g_uri_parse_params() may be useful for further parsing this information.

    §Returns
    -

    @self’s authentication parameters.

    -
    Source

    pub fn flags(&self) -> UriFlags

    Gets @self’s flags set upon construction.

    +

    @self’s authentication parameters. +Gets @self’s authentication parameters, which may contain +%-encoding, depending on the flags with which @self was created. +(If @self was not created with UriFlags::HAS_AUTH_PARAMS then this will +be None.)

    +

    Depending on the URI scheme, g_uri_parse_params() may be useful for +further parsing this information.

    §Returns
    +

    @self’s authentication parameters.

    +
    Source

    pub fn flags(&self) -> UriFlags

    Gets @self’s flags set upon construction.

    +
    §Returns
    +

    @self’s flags. +Gets @self’s flags set upon construction.

    +
    §Returns

    @self’s flags.

    -
    Source

    pub fn fragment(&self) -> Option<GString>

    Gets @self’s fragment, which may contain %-encoding, depending on +

    Source

    pub fn fragment(&self) -> Option<GString>

    Gets @self’s fragment, which may contain %-encoding, depending on the flags with which @self was created.

    -
    §Returns
    +
    §Returns
    +

    @self’s fragment. +Gets @self’s fragment, which may contain %-encoding, depending on +the flags with which @self was created.

    +
    §Returns

    @self’s fragment.

    -
    Source

    pub fn host(&self) -> Option<GString>

    Gets @self’s host. This will never have %-encoded characters, +

    Source

    pub fn host(&self) -> Option<GString>

    Gets @self’s host. This will never have %-encoded characters, unless it is non-UTF-8 (which can only be the case if @self was created with UriFlags::NON_DNS).

    If @self contained an IPv6 address literal, this value will be just @@ -222,41 +362,83 @@

    §Returns
    the string form of the URI. Note that in this case there may also be a scope ID attached to the address. Eg, fe80::1234%``em1 (or fe80::1234%``25em1 if the string is still encoded).

    -
    §Returns
    +
    §Returns
    +

    @self’s host. +Gets @self’s host. This will never have %-encoded characters, +unless it is non-UTF-8 (which can only be the case if @self was +created with UriFlags::NON_DNS).

    +

    If @self contained an IPv6 address literal, this value will be just +that address, without the brackets around it that are necessary in +the string form of the URI. Note that in this case there may also +be a scope ID attached to the address. Eg, fe80::1234%``em1 (or +fe80::1234%``25em1 if the string is still encoded).

    +
    §Returns

    @self’s host.

    -
    Source

    pub fn password(&self) -> Option<GString>

    Gets @self’s password, which may contain %-encoding, depending on +

    Source

    pub fn password(&self) -> Option<GString>

    Gets @self’s password, which may contain %-encoding, depending on the flags with which @self was created. (If @self was not created with UriFlags::HAS_PASSWORD then this will be None.)

    -
    §Returns
    +
    §Returns
    +

    @self’s password. +Gets @self’s password, which may contain %-encoding, depending on +the flags with which @self was created. (If @self was not created +with UriFlags::HAS_PASSWORD then this will be None.)

    +
    §Returns

    @self’s password.

    -
    Source

    pub fn path(&self) -> GString

    Gets @self’s path, which may contain %-encoding, depending on the +

    Source

    pub fn path(&self) -> GString

    Gets @self’s path, which may contain %-encoding, depending on the flags with which @self was created.

    -
    §Returns
    +
    §Returns
    +

    @self’s path. +Gets @self’s path, which may contain %-encoding, depending on the +flags with which @self was created.

    +
    §Returns

    @self’s path.

    -
    Source

    pub fn port(&self) -> i32

    Gets @self’s port.

    -
    §Returns
    +
    Source

    pub fn port(&self) -> i32

    Gets @self’s port.

    +
    §Returns
    +

    @self’s port, or -1 if no port was specified. +Gets @self’s port.

    +
    §Returns

    @self’s port, or -1 if no port was specified.

    -
    Source

    pub fn query(&self) -> Option<GString>

    Gets @self’s query, which may contain %-encoding, depending on the +

    Source

    pub fn query(&self) -> Option<GString>

    Gets @self’s query, which may contain %-encoding, depending on the flags with which @self was created.

    For queries consisting of a series of name=value parameters, #GUriParamsIter or g_uri_parse_params() may be useful.

    -
    §Returns
    +
    §Returns
    +

    @self’s query. +Gets @self’s query, which may contain %-encoding, depending on the +flags with which @self was created.

    +

    For queries consisting of a series of name=value parameters, +#GUriParamsIter or g_uri_parse_params() may be useful.

    +
    §Returns

    @self’s query.

    -
    Source

    pub fn scheme(&self) -> GString

    Gets @self’s scheme. Note that this will always be all-lowercase, +

    Source

    pub fn scheme(&self) -> GString

    Gets @self’s scheme. Note that this will always be all-lowercase, regardless of the string or strings that @self was created from.

    -
    §Returns
    +
    §Returns
    +

    @self’s scheme. +Gets @self’s scheme. Note that this will always be all-lowercase, +regardless of the string or strings that @self was created from.

    +
    §Returns

    @self’s scheme.

    -
    Source

    pub fn user(&self) -> Option<GString>

    Gets the ‘username’ component of @self’s userinfo, which may contain +

    Source

    pub fn user(&self) -> Option<GString>

    Gets the ‘username’ component of @self’s userinfo, which may contain %-encoding, depending on the flags with which @self was created. If @self was not created with UriFlags::HAS_PASSWORD or UriFlags::HAS_AUTH_PARAMS, this is the same as g_uri_get_userinfo().

    -
    §Returns
    +
    §Returns
    +

    @self’s user. +Gets the ‘username’ component of @self’s userinfo, which may contain +%-encoding, depending on the flags with which @self was created. +If @self was not created with UriFlags::HAS_PASSWORD or +UriFlags::HAS_AUTH_PARAMS, this is the same as g_uri_get_userinfo().

    +
    §Returns

    @self’s user.

    -
    Source

    pub fn userinfo(&self) -> Option<GString>

    Gets @self’s userinfo, which may contain %-encoding, depending on +

    Source

    pub fn userinfo(&self) -> Option<GString>

    Gets @self’s userinfo, which may contain %-encoding, depending on the flags with which @self was created.

    -
    §Returns
    +
    §Returns
    +

    @self’s userinfo. +Gets @self’s userinfo, which may contain %-encoding, depending on +the flags with which @self was created.

    +
    §Returns

    @self’s userinfo.

    -
    Source

    pub fn parse_relative( +

    Source

    pub fn parse_relative( &self, uri_ref: &str, flags: UriFlags, @@ -268,9 +450,19 @@

    §uri_refa string representing a relative or absolute URI

    §flags

    flags describing how to parse @uri_ref

    -
    §Returns
    +
    §Returns
    +

    a new #GUri, or NULL on error. +Parses @uri_ref according to @flags and, if it is a +relative URI, resolves it relative to @self. +If the result is not a valid absolute URI, it will be discarded, and an error +returned.

    +
    §uri_ref
    +

    a string representing a relative or absolute URI

    +
    §flags
    +

    flags describing how to parse @uri_ref

    +
    §Returns

    a new #GUri, or NULL on error.

    -
    Source

    pub fn to_str(&self) -> GString

    Returns a string representing @self.

    +
    Source

    pub fn to_str(&self) -> GString

    Returns a string representing @self.

    This is not guaranteed to return a string which is identical to the string that @self was parsed from. However, if the source URI was syntactically correct (according to RFC 3986), and it was parsed @@ -280,17 +472,37 @@

    §Returns

    If @self might contain sensitive details, such as authentication parameters, or private data in its query string, and the returned string is going to be logged, then consider using g_uri_to_string_partial() to redact parts.

    -
    §Returns
    +
    §Returns
    +

    a string representing @self, +which the caller must free. +Returns a string representing @self.

    +

    This is not guaranteed to return a string which is identical to the +string that @self was parsed from. However, if the source URI was +syntactically correct (according to RFC 3986), and it was parsed +with UriFlags::ENCODED, then g_uri_to_string() is guaranteed to return +a string which is at least semantically equivalent to the source +URI (according to RFC 3986).

    +

    If @self might contain sensitive details, such as authentication parameters, +or private data in its query string, and the returned string is going to be +logged, then consider using g_uri_to_string_partial() to redact parts.

    +
    §Returns

    a string representing @self, which the caller must free.

    -
    Source

    pub fn to_string_partial(&self, flags: UriHideFlags) -> GString

    Returns a string representing @self, subject to the options in +

    Source

    pub fn to_string_partial(&self, flags: UriHideFlags) -> GString

    Returns a string representing @self, subject to the options in @flags. See g_uri_to_string() and #GUriHideFlags for more details.

    -
    §flags
    +
    §flags

    flags describing what parts of @self to hide

    -
    §Returns
    +
    §Returns
    +

    a string representing +@self, which the caller must free. +Returns a string representing @self, subject to the options in +@flags. See g_uri_to_string() and #GUriHideFlags for more details.

    +
    §flags
    +

    flags describing what parts of @self to hide

    +
    §Returns

    a string representing @self, which the caller must free.

    -
    Source

    pub fn build( +

    Source

    pub fn build( flags: UriFlags, scheme: &str, userinfo: Option<&str>, @@ -302,7 +514,7 @@

    §Returns
    ) -> Uri

    Creates a new #GUri from the given components according to @flags.

    See also g_uri_build_with_user(), which allows specifying the components of the “userinfo” separately.

    -
    §flags
    +
    §flags

    flags describing how to build the #GUri

    §scheme

    the URI scheme

    @@ -318,9 +530,30 @@
    §query

    the query component, or None

    §fragment

    the fragment, or None

    -
    §Returns
    +
    §Returns
    +

    a new #GUri +Creates a new #GUri from the given components according to @flags.

    +

    See also g_uri_build_with_user(), which allows specifying the +components of the “userinfo” separately.

    +
    §flags
    +

    flags describing how to build the #GUri

    +
    §scheme
    +

    the URI scheme

    +
    §userinfo
    +

    the userinfo component, or None

    +
    §host
    +

    the host component, or None

    +
    §port
    +

    the port, or -1

    +
    §path
    +

    the path component

    +
    §query
    +

    the query component, or None

    +
    §fragment
    +

    the fragment, or None

    +
    §Returns

    a new #GUri

    -
    Source

    pub fn build_with_user( +

    Source

    pub fn build_with_user( flags: UriFlags, scheme: &str, user: Option<&str>, @@ -338,9 +571,9 @@

    §Returns

    In contrast to g_uri_build(), this allows specifying the components of the ‘userinfo’ field separately. Note that @user must be non-None if either @password or @auth_params is non-None.

    -
    §flags
    +
    §flags

    flags describing how to build the #GUri

    -
    §scheme
    +
    §scheme

    the URI scheme

    §user

    the user component of the userinfo, or None

    @@ -348,19 +581,48 @@
    §passwordthe password component of the userinfo, or None

    §auth_params

    the auth params of the userinfo, or None

    -
    §host
    +
    §host

    the host component, or None

    -
    §port
    +
    §port

    the port, or -1

    -
    §path
    +
    §path

    the path component

    -
    §query
    +
    §query

    the query component, or None

    -
    §fragment
    +
    §fragment

    the fragment, or None

    -
    §Returns
    +
    §Returns
    +

    a new #GUri +Creates a new #GUri from the given components according to @flags +(UriFlags::HAS_PASSWORD is added unconditionally). The @flags must be +coherent with the passed values, in particular use %-encoded values with +UriFlags::ENCODED.

    +

    In contrast to g_uri_build(), this allows specifying the components +of the ‘userinfo’ field separately. Note that @user must be non-None +if either @password or @auth_params is non-None.

    +
    §flags
    +

    flags describing how to build the #GUri

    +
    §scheme
    +

    the URI scheme

    +
    §user
    +

    the user component of the userinfo, or None

    +
    §password
    +

    the password component of the userinfo, or None

    +
    §auth_params
    +

    the auth params of the userinfo, or None

    +
    §host
    +

    the host component, or None

    +
    §port
    +

    the port, or -1

    +
    §path
    +

    the path component

    +
    §query
    +

    the query component, or None

    +
    §fragment
    +

    the fragment, or None

    +
    §Returns

    a new #GUri

    -
    Source

    pub fn escape_bytes( +

    Source

    pub fn escape_bytes( unescaped: &[u8], reserved_chars_allowed: Option<&str>, ) -> GString

    Escapes arbitrary data for use in a URI.

    @@ -377,10 +639,27 @@
    §unescaped
    §reserved_chars_allowed

    a string of reserved characters that are allowed to be used, or None.

    -
    §Returns
    +
    §Returns
    +

    an escaped version of @unescaped. +The returned string should be freed when no longer needed. +Escapes arbitrary data for use in a URI.

    +

    Normally all characters that are not ‘unreserved’ (i.e. ASCII +alphanumerical characters plus dash, dot, underscore and tilde) are +escaped. But if you specify characters in @reserved_chars_allowed +they are not escaped. This is useful for the ‘reserved’ characters +in the URI specification, since those are allowed unescaped in some +portions of a URI.

    +

    Though technically incorrect, this will also allow escaping nul +bytes as %``00.

    +
    §unescaped
    +

    the unescaped input data.

    +
    §reserved_chars_allowed
    +

    a string of reserved +characters that are allowed to be used, or None.

    +
    §Returns

    an escaped version of @unescaped. The returned string should be freed when no longer needed.

    -
    Source

    pub fn escape_string( +

    Source

    pub fn escape_string( unescaped: &str, reserved_chars_allowed: Option<&str>, allow_utf8: bool, @@ -391,17 +670,34 @@

    §Returns
    they are not escaped. This is useful for the “reserved” characters in the URI specification, since those are allowed unescaped in some portions of a URI.

    -
    §unescaped
    +
    §unescaped

    the unescaped input string.

    -
    §reserved_chars_allowed
    +
    §reserved_chars_allowed

    a string of reserved characters that are allowed to be used, or None.

    §allow_utf8

    true if the result can include UTF-8 characters.

    -
    §Returns
    +
    §Returns
    +

    an escaped version of @unescaped. The +returned string should be freed when no longer needed. +Escapes a string for use in a URI.

    +

    Normally all characters that are not “unreserved” (i.e. ASCII +alphanumerical characters plus dash, dot, underscore and tilde) are +escaped. But if you specify characters in @reserved_chars_allowed +they are not escaped. This is useful for the “reserved” characters +in the URI specification, since those are allowed unescaped in some +portions of a URI.

    +
    §unescaped
    +

    the unescaped input string.

    +
    §reserved_chars_allowed
    +

    a string of reserved +characters that are allowed to be used, or None.

    +
    §allow_utf8
    +

    true if the result can include UTF-8 characters.

    +
    §Returns

    an escaped version of @unescaped. The returned string should be freed when no longer needed.

    -
    Source

    pub fn is_valid(uri_string: &str, flags: UriFlags) -> Result<(), Error>

    Parses @uri_string according to @flags, to determine whether it is a valid +

    Source

    pub fn is_valid(uri_string: &str, flags: UriFlags) -> Result<(), Error>

    Parses @uri_string according to @flags, to determine whether it is a valid absolute URI, i.e. it does not need to be resolved relative to another URI using g_uri_parse_relative().

    If it’s not a valid URI, an error is returned explaining how it’s invalid.

    @@ -409,11 +705,23 @@
    §Returns
    information on the effect of @flags.

    §uri_string

    a string containing an absolute URI

    -
    §flags
    +
    §flags

    flags for parsing @uri_string

    -
    §Returns
    +
    §Returns
    +

    true if @uri_string is a valid absolute URI, false on error. +Parses @uri_string according to @flags, to determine whether it is a valid +absolute URI, i.e. it does not need to be resolved +relative to another URI using g_uri_parse_relative().

    +

    If it’s not a valid URI, an error is returned explaining how it’s invalid.

    +

    See g_uri_split(), and the definition of #GUriFlags, for more +information on the effect of @flags.

    +
    §uri_string
    +

    a string containing an absolute URI

    +
    §flags
    +

    flags for parsing @uri_string

    +
    §Returns

    true if @uri_string is a valid absolute URI, false on error.

    -
    Source

    pub fn join( +

    Source

    pub fn join( flags: UriFlags, scheme: Option<&str>, userinfo: Option<&str>, @@ -433,25 +741,54 @@

    §Returns
    components of the ‘userinfo’ separately.

    UriFlags::HAS_PASSWORD and UriFlags::HAS_AUTH_PARAMS are ignored if set in @flags.

    -
    §flags
    +
    §flags
    +

    flags describing how to build the URI string

    +
    §scheme
    +

    the URI scheme, or None

    +
    §userinfo
    +

    the userinfo component, or None

    +
    §host
    +

    the host component, or None

    +
    §port
    +

    the port, or -1

    +
    §path
    +

    the path component

    +
    §query
    +

    the query component, or None

    +
    §fragment
    +

    the fragment, or None

    +
    §Returns
    +

    an absolute URI string +Joins the given components together according to @flags to create +an absolute URI string. @path may not be None (though it may be the empty +string).

    +

    When @host is present, @path must either be empty or begin with a slash (/) +character. When @host is not present, @path cannot begin with two slash +characters (//). See +RFC 3986, section 3.

    +

    See also g_uri_join_with_user(), which allows specifying the +components of the ‘userinfo’ separately.

    +

    UriFlags::HAS_PASSWORD and UriFlags::HAS_AUTH_PARAMS are ignored if set +in @flags.

    +
    §flags

    flags describing how to build the URI string

    -
    §scheme
    +
    §scheme

    the URI scheme, or None

    -
    §userinfo
    +
    §userinfo

    the userinfo component, or None

    -
    §host
    +
    §host

    the host component, or None

    -
    §port
    +
    §port

    the port, or -1

    -
    §path
    +
    §path

    the path component

    -
    §query
    +
    §query

    the query component, or None

    -
    §fragment
    +
    §fragment

    the fragment, or None

    -
    §Returns
    +
    §Returns

    an absolute URI string

    -
    Source

    pub fn join_with_user( +

    Source

    pub fn join_with_user( flags: UriFlags, scheme: Option<&str>, user: Option<&str>, @@ -469,72 +806,144 @@

    §Returns
    of the ‘userinfo’ separately. It otherwise behaves the same.

    UriFlags::HAS_PASSWORD and UriFlags::HAS_AUTH_PARAMS are ignored if set in @flags.

    -
    §flags
    +
    §flags

    flags describing how to build the URI string

    -
    §scheme
    +
    §scheme

    the URI scheme, or None

    -
    §user
    +
    §user

    the user component of the userinfo, or None

    -
    §password
    +
    §password

    the password component of the userinfo, or None

    -
    §auth_params
    +
    §auth_params

    the auth params of the userinfo, or None

    -
    §host
    +
    §host

    the host component, or None

    -
    §port
    +
    §port

    the port, or -1

    -
    §path
    +
    §path

    the path component

    -
    §query
    +
    §query

    the query component, or None

    -
    §fragment
    +
    §fragment

    the fragment, or None

    -
    §Returns
    +
    §Returns
    +

    an absolute URI string +Joins the given components together according to @flags to create +an absolute URI string. @path may not be None (though it may be the empty +string).

    +

    In contrast to g_uri_join(), this allows specifying the components +of the ‘userinfo’ separately. It otherwise behaves the same.

    +

    UriFlags::HAS_PASSWORD and UriFlags::HAS_AUTH_PARAMS are ignored if set +in @flags.

    +
    §flags
    +

    flags describing how to build the URI string

    +
    §scheme
    +

    the URI scheme, or None

    +
    §user
    +

    the user component of the userinfo, or None

    +
    §password
    +

    the password component of the userinfo, or +None

    +
    §auth_params
    +

    the auth params of the userinfo, or +None

    +
    §host
    +

    the host component, or None

    +
    §port
    +

    the port, or -1

    +
    §path
    +

    the path component

    +
    §query
    +

    the query component, or None

    +
    §fragment
    +

    the fragment, or None

    +
    §Returns

    an absolute URI string

    -
    Source

    pub fn list_extract_uris(uri_list: &str) -> Vec<GString>

    Splits an URI list conforming to the text/uri-list +

    Source

    pub fn list_extract_uris(uri_list: &str) -> Vec<GString>

    Splits an URI list conforming to the text/uri-list mime type defined in RFC 2483 into individual URIs, discarding any comments. The URIs are not validated.

    §uri_list

    an URI list

    -
    §Returns
    +
    §Returns
    +

    a newly allocated None-terminated list +of strings holding the individual URIs. The array should be freed +with g_strfreev(). +Splits an URI list conforming to the text/uri-list +mime type defined in RFC 2483 into individual URIs, +discarding any comments. The URIs are not validated.

    +
    §uri_list
    +

    an URI list

    +
    §Returns

    a newly allocated None-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().

    -
    Source

    pub fn parse(uri_string: &str, flags: UriFlags) -> Result<Uri, Error>

    Parses @uri_string according to @flags. If the result is not a +

    Source

    pub fn parse(uri_string: &str, flags: UriFlags) -> Result<Uri, Error>

    Parses @uri_string according to @flags. If the result is not a valid absolute URI, it will be discarded, and an error returned.

    -
    §uri_string
    +
    §uri_string

    a string representing an absolute URI

    -
    §flags
    +
    §flags

    flags describing how to parse @uri_string

    -
    §Returns
    +
    §Returns
    +

    a new #GUri, or NULL on error. +Parses @uri_string according to @flags. If the result is not a +valid absolute URI, it will be discarded, and an +error returned.

    +
    §uri_string
    +

    a string representing an absolute URI

    +
    §flags
    +

    flags describing how to parse @uri_string

    +
    §Returns

    a new #GUri, or NULL on error.

    -
    Source

    pub fn parse_scheme(uri: &str) -> Option<GString>

    Gets the scheme portion of a URI string. +

    Source

    pub fn parse_scheme(uri: &str) -> Option<GString>

    Gets the scheme portion of a URI string. RFC 3986 decodes the scheme as:

    URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

    Common schemes include file, https, svn+ssh, etc.

    §uri

    a valid URI.

    -
    §Returns
    +
    §Returns
    +

    The ‘scheme’ component of the URI, or +None on error. The returned string should be freed when no longer needed. +Gets the scheme portion of a URI string. +RFC 3986 decodes the scheme +as:

    +
    URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
    +

    Common schemes include file, https, svn+ssh, etc.

    +
    §uri
    +

    a valid URI.

    +
    §Returns

    The ‘scheme’ component of the URI, or None on error. The returned string should be freed when no longer needed.

    -
    Source

    pub fn peek_scheme(uri: &str) -> Option<GString>

    Gets the scheme portion of a URI string. +

    Source

    pub fn peek_scheme(uri: &str) -> Option<GString>

    Gets the scheme portion of a URI string. RFC 3986 decodes the scheme as:

    URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

    Common schemes include file, https, svn+ssh, etc.

    Unlike g_uri_parse_scheme(), the returned scheme is normalized to all-lowercase and does not need to be freed.

    -
    §uri
    +
    §uri

    a valid URI.

    -
    §Returns
    +
    §Returns
    +

    The ‘scheme’ component of the URI, or +None on error. The returned string is normalized to all-lowercase, and +interned via g_intern_string(), so it does not need to be freed. +Gets the scheme portion of a URI string. +RFC 3986 decodes the scheme +as:

    +
    URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
    +

    Common schemes include file, https, svn+ssh, etc.

    +

    Unlike g_uri_parse_scheme(), the returned scheme is normalized to +all-lowercase and does not need to be freed.

    +
    §uri
    +

    a valid URI.

    +
    §Returns

    The ‘scheme’ component of the URI, or None on error. The returned string is normalized to all-lowercase, and interned via g_intern_string(), so it does not need to be freed.

    -
    Source

    pub fn resolve_relative( +

    Source

    pub fn resolve_relative( base_uri_string: Option<&str>, uri_ref: &str, flags: UriFlags, @@ -546,14 +955,29 @@

    §Returns
    None if @uri_ref is invalid or not absolute.)

    §base_uri_string

    a string representing a base URI

    -
    §uri_ref
    +
    §uri_ref

    a string representing a relative or absolute URI

    -
    §flags
    +
    §flags

    flags describing how to parse @uri_ref

    -
    §Returns
    +
    §Returns
    +

    the resolved URI string, +or NULL on error. +Parses @uri_ref according to @flags and, if it is a +relative URI, resolves it relative to +@base_uri_string. If the result is not a valid absolute URI, it will be +discarded, and an error returned.

    +

    (If @base_uri_string is None, this just returns @uri_ref, or +None if @uri_ref is invalid or not absolute.)

    +
    §base_uri_string
    +

    a string representing a base URI

    +
    §uri_ref
    +

    a string representing a relative or absolute URI

    +
    §flags
    +

    flags describing how to parse @uri_ref

    +
    §Returns

    the resolved URI string, or NULL on error.

    -
    Source

    pub fn split( +

    Source

    pub fn split( uri_ref: &str, flags: UriFlags, ) -> Result<(Option<GString>, Option<GString>, Option<GString>, i32, GString, Option<GString>, Option<GString>), Error>

    Parses @uri_ref (which can be an @@ -570,35 +994,77 @@

    §Returns
    UriFlags::HAS_AUTH_PARAMS @flags are ignored by g_uri_split(), since it always returns only the full userinfo; use g_uri_split_with_user() if you want it split up.

    -
    §uri_ref
    +
    §uri_ref

    a string containing a relative or absolute URI

    -
    §flags
    +
    §flags

    flags for parsing @uri_ref

    -
    §Returns
    +
    §Returns

    true if @uri_ref parsed successfully, false on error.

    -
    §scheme
    +
    §scheme

    on return, contains the scheme (converted to lowercase), or None

    -
    §userinfo
    +
    §userinfo

    on return, contains the userinfo, or None

    -
    §host
    +
    §host

    on return, contains the host, or None

    -
    §port
    +
    §port

    on return, contains the port, or -1

    -
    §path
    +
    §path

    on return, contains the path

    -
    §query
    +
    §query

    on return, contains the query, or None

    -
    §fragment
    +
    §fragment
    +

    on return, contains +the fragment, or None +Parses @uri_ref (which can be an +absolute or relative URI) according to @flags, and +returns the pieces. Any component that doesn’t appear in @uri_ref will be +returned as None (but note that all URIs always have a path component, +though it may be the empty string).

    +

    If @flags contains UriFlags::ENCODED, then %-encoded characters in +@uri_ref will remain encoded in the output strings. (If not, +then all such characters will be decoded.) Note that decoding will +only work if the URI components are ASCII or UTF-8, so you will +need to use UriFlags::ENCODED if they are not.

    +

    Note that the UriFlags::HAS_PASSWORD and +UriFlags::HAS_AUTH_PARAMS @flags are ignored by g_uri_split(), +since it always returns only the full userinfo; use +g_uri_split_with_user() if you want it split up.

    +
    §uri_ref
    +

    a string containing a relative or absolute URI

    +
    §flags
    +

    flags for parsing @uri_ref

    +
    §Returns
    +

    true if @uri_ref parsed successfully, false +on error.

    +
    §scheme
    +

    on return, contains +the scheme (converted to lowercase), or None

    +
    §userinfo
    +

    on return, contains +the userinfo, or None

    +
    §host
    +

    on return, contains the +host, or None

    +
    §port
    +

    on return, contains the +port, or -1

    +
    §path
    +

    on return, contains the +path

    +
    §query
    +

    on return, contains the +query, or None

    +
    §fragment

    on return, contains the fragment, or None

    -
    Source

    pub fn split_network( +

    Source

    pub fn split_network( uri_string: &str, flags: UriFlags, ) -> Result<(Option<GString>, Option<GString>, i32), Error>

    Parses @uri_string (which must be an absolute URI) @@ -607,23 +1073,45 @@

    §fragmen mostly a wrapper around that function with simpler arguments. However, it will return an error if @uri_string is a relative URI, or does not contain a hostname component.

    -
    §uri_string
    +
    §uri_string

    a string containing an absolute URI

    -
    §flags
    +
    §flags

    flags for parsing @uri_string

    -
    §Returns
    +
    §Returns

    true if @uri_string parsed successfully, false on error.

    -
    §scheme
    +
    §scheme

    on return, contains the scheme (converted to lowercase), or None

    -
    §host
    +
    §host

    on return, contains the host, or None

    -
    §port
    +
    §port
    +

    on return, contains the +port, or -1 +Parses @uri_string (which must be an absolute URI) +according to @flags, and returns the pieces relevant to connecting to a host. +See the documentation for g_uri_split() for more details; this is +mostly a wrapper around that function with simpler arguments. +However, it will return an error if @uri_string is a relative URI, +or does not contain a hostname component.

    +
    §uri_string
    +

    a string containing an absolute URI

    +
    §flags
    +

    flags for parsing @uri_string

    +
    §Returns
    +

    true if @uri_string parsed successfully, +false on error.

    +
    §scheme
    +

    on return, contains +the scheme (converted to lowercase), or None

    +
    §host
    +

    on return, contains the +host, or None

    +
    §port

    on return, contains the port, or -1

    -
    Source

    pub fn split_with_user( +

    Source

    pub fn split_with_user( uri_ref: &str, flags: UriFlags, ) -> Result<(Option<GString>, Option<GString>, Option<GString>, Option<GString>, Option<GString>, i32, GString, Option<GString>, Option<GString>), Error>

    Parses @uri_ref (which can be an @@ -636,41 +1124,85 @@

    §port
    UriFlags::HAS_PASSWORD, and @auth_params will only be parsed out if @flags contains UriFlags::HAS_AUTH_PARAMS.

    -
    §uri_ref
    +
    §uri_ref

    a string containing a relative or absolute URI

    -
    §flags
    +
    §flags

    flags for parsing @uri_ref

    -
    §Returns
    +
    §Returns

    true if @uri_ref parsed successfully, false on error.

    -
    §scheme
    +
    §scheme

    on return, contains the scheme (converted to lowercase), or None

    -
    §user
    +
    §user

    on return, contains the user, or None

    -
    §password
    +
    §password

    on return, contains the password, or None

    -
    §auth_params
    +
    §auth_params

    on return, contains the auth_params, or None

    -
    §host
    +
    §host

    on return, contains the host, or None

    -
    §port
    +
    §port

    on return, contains the port, or -1

    -
    §path
    +
    §path

    on return, contains the path

    -
    §query
    +
    §query

    on return, contains the query, or None

    -
    §fragment
    +
    §fragment
    +

    on return, contains +the fragment, or None +Parses @uri_ref (which can be an +absolute or relative URI) according to @flags, and +returns the pieces. Any component that doesn’t appear in @uri_ref will be +returned as None (but note that all URIs always have a path component, +though it may be the empty string).

    +

    See g_uri_split(), and the definition of #GUriFlags, for more +information on the effect of @flags. Note that @password will only +be parsed out if @flags contains UriFlags::HAS_PASSWORD, and +@auth_params will only be parsed out if @flags contains +UriFlags::HAS_AUTH_PARAMS.

    +
    §uri_ref
    +

    a string containing a relative or absolute URI

    +
    §flags
    +

    flags for parsing @uri_ref

    +
    §Returns
    +

    true if @uri_ref parsed successfully, false +on error.

    +
    §scheme
    +

    on return, contains +the scheme (converted to lowercase), or None

    +
    §user
    +

    on return, contains +the user, or None

    +
    §password
    +

    on return, contains +the password, or None

    +
    §auth_params
    +

    on return, contains +the auth_params, or None

    +
    §host
    +

    on return, contains the +host, or None

    +
    §port
    +

    on return, contains the +port, or -1

    +
    §path
    +

    on return, contains the +path

    +
    §query
    +

    on return, contains the +query, or None

    +
    §fragment

    on return, contains the fragment, or None

    -
    Source

    pub fn unescape_bytes( +

    Source

    pub fn unescape_bytes( escaped_string: &str, illegal_characters: Option<&str>, ) -> Result<Bytes, Error>

    Unescapes a segment of an escaped string as binary data.

    @@ -689,11 +1221,31 @@
    §length§illegal_characters

    a string of illegal characters not to be allowed, or None.

    -
    §Returns
    +
    §Returns
    +

    an unescaped version of @escaped_string +or None on error (if decoding failed, using UriError::Failed error +code). The returned #GBytes should be unreffed when no longer needed. +Unescapes a segment of an escaped string as binary data.

    +

    Note that in contrast to g_uri_unescape_string(), this does allow +nul bytes to appear in the output.

    +

    If any of the characters in @illegal_characters appears as an escaped +character in @escaped_string, then that is an error and None will be +returned. This is useful if you want to avoid for instance having a slash +being expanded in an escaped path element, which might confuse pathname +handling.

    +
    §escaped_string
    +

    A URI-escaped string

    +
    §length
    +

    the length (in bytes) of @escaped_string to escape, or -1 if it +is nul-terminated.

    +
    §illegal_characters
    +

    a string of illegal characters +not to be allowed, or None.

    +
    §Returns

    an unescaped version of @escaped_string or None on error (if decoding failed, using UriError::Failed error code). The returned #GBytes should be unreffed when no longer needed.

    -
    Source

    pub fn unescape_segment( +

    Source

    pub fn unescape_segment( escaped_string: Option<&str>, escaped_string_end: Option<&str>, illegal_characters: Option<&str>, @@ -705,20 +1257,41 @@

    §Returns
    escaped path element, which might confuse pathname handling.

    Note: NUL byte is not accepted in the output, in contrast to g_uri_unescape_bytes().

    -
    §escaped_string
    +
    §escaped_string

    A string, may be None

    §escaped_string_end

    Pointer to end of @escaped_string, may be None

    -
    §illegal_characters
    +
    §illegal_characters

    An optional string of illegal characters not to be allowed, may be None

    -
    §Returns
    +
    §Returns
    +

    an unescaped version of @escaped_string, +or None on error. The returned string should be freed when no longer +needed. As a special case if None is given for @escaped_string, this +function will return None. +Unescapes a segment of an escaped string.

    +

    If any of the characters in @illegal_characters or the NUL +character appears as an escaped character in @escaped_string, then +that is an error and None will be returned. This is useful if you +want to avoid for instance having a slash being expanded in an +escaped path element, which might confuse pathname handling.

    +

    Note: NUL byte is not accepted in the output, in contrast to +g_uri_unescape_bytes().

    +
    §escaped_string
    +

    A string, may be None

    +
    §escaped_string_end
    +

    Pointer to end of @escaped_string, +may be None

    +
    §illegal_characters
    +

    An optional string of illegal +characters not to be allowed, may be None

    +
    §Returns

    an unescaped version of @escaped_string, or None on error. The returned string should be freed when no longer needed. As a special case if None is given for @escaped_string, this function will return None.

    -
    Source

    pub fn unescape_string( +

    Source

    pub fn unescape_string( escaped_string: &str, illegal_characters: Option<&str>, ) -> Option<GString>

    Unescapes a whole escaped string.

    @@ -727,26 +1300,40 @@
    §Returns
    that is an error and None will be returned. This is useful if you want to avoid for instance having a slash being expanded in an escaped path element, which might confuse pathname handling.

    -
    §escaped_string
    +
    §escaped_string

    an escaped string to be unescaped.

    -
    §illegal_characters
    +
    §illegal_characters

    a string of illegal characters not to be allowed, or None.

    -
    §Returns
    +
    §Returns
    +

    an unescaped version of @escaped_string. +The returned string should be freed when no longer needed. +Unescapes a whole escaped string.

    +

    If any of the characters in @illegal_characters or the NUL +character appears as an escaped character in @escaped_string, then +that is an error and None will be returned. This is useful if you +want to avoid for instance having a slash being expanded in an +escaped path element, which might confuse pathname handling.

    +
    §escaped_string
    +

    an escaped string to be unescaped.

    +
    §illegal_characters
    +

    a string of illegal characters +not to be allowed, or None.

    +
    §Returns

    an unescaped version of @escaped_string. The returned string should be freed when no longer needed.

    -

    Trait Implementations§

    Source§

    impl Clone for Uri

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +

    Trait Implementations§

    Source§

    impl Clone for Uri

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Uri

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Uri

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Uri> for Value

    Source§

    fn from(s: Uri) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Uri

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Uri

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Uri>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Uri

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Uri

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Uri

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Uri> for Value

    Source§

    fn from(s: Uri) -> Self

    Converts to this type from the input type.
    Source§

    impl HasParamSpec for Uri

    Source§

    type ParamSpec = ParamSpecBoxed

    Source§

    type SetValue = Uri

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, Uri>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Uri

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Uri

    Source§

    fn cmp(&self, other: &Uri) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Uri

    Source§

    fn cmp(&self, other: &Uri) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Uri

    Source§

    fn eq(&self, other: &Uri) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Uri

    Source§

    fn partial_cmp(&self, other: &Uri) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,
    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Uri

    Source§

    fn eq(&self, other: &Uri) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Uri

    Source§

    fn partial_cmp(&self, other: &Uri) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for Uri

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Uri

    Source§

    impl Send for Uri

    Source§

    impl StructuralPartialEq for Uri

    Source§

    impl Sync for Uri

    Auto Trait Implementations§

    §

    impl Freeze for Uri

    §

    impl RefUnwindSafe for Uri

    §

    impl Unpin for Uri

    §

    impl UnwindSafe for Uri

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for Uri

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for Uri

    Source§

    impl Send for Uri

    Source§

    impl StructuralPartialEq for Uri

    Source§

    impl Sync for Uri

    Auto Trait Implementations§

    §

    impl Freeze for Uri

    §

    impl RefUnwindSafe for Uri

    §

    impl Unpin for Uri

    §

    impl UnwindSafe for Uri

    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> CloneToUninit for T
    where @@ -779,8 +1366,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    Source§

    impl<T> TransparentType for T

    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where diff --git a/git/docs/glib/struct.UriFlags.html b/git/docs/glib/struct.UriFlags.html index 67d95ec5b073..eaee47cb7a1e 100644 --- a/git/docs/glib/struct.UriFlags.html +++ b/git/docs/glib/struct.UriFlags.html @@ -71,99 +71,99 @@ -
    glib

    Struct UriFlags

    Source
    pub struct UriFlags(/* private fields */);
    Available on crate feature v2_66 only.
    Expand description

    Flags that describe a URI.

    +
    glib

    Struct UriFlags

    Source
    pub struct UriFlags(/* private fields */);
    Available on crate feature v2_66 only.
    Expand description

    Flags that describe a URI.

    When parsing a URI, if you need to choose different flags based on the type of URI, you can use g_uri_peek_scheme() on the URI string to check the scheme first, and use that to decide what flags to parse it with.

    -

    Implementations§

    Source§

    impl UriFlags

    Source

    pub const NONE: Self = _

    No flags set.

    -
    Source

    pub const PARSE_RELAXED: Self = _

    Parse the URI more relaxedly than the +

    Implementations§

    Source§

    impl UriFlags

    Source

    pub const NONE: Self = _

    No flags set.

    +
    Source

    pub const PARSE_RELAXED: Self = _

    Parse the URI more relaxedly than the RFC 3986 grammar specifies, fixing up or ignoring common mistakes in URIs coming from external sources. This is also needed for some obscure URI schemes where ; separates the host from the path. Don’t use this flag unless you need to.

    -
    Source

    pub const HAS_PASSWORD: Self = _

    The userinfo field may contain a password, +

    Source

    pub const HAS_PASSWORD: Self = _

    The userinfo field may contain a password, which will be separated from the username by :.

    -
    Source

    pub const HAS_AUTH_PARAMS: Self = _

    The userinfo may contain additional +

    Source

    pub const HAS_AUTH_PARAMS: Self = _

    The userinfo may contain additional authentication-related parameters, which will be separated from the username and/or password by ;.

    -
    Source

    pub const ENCODED: Self = _

    When parsing a URI, this indicates that %-encoded +

    Source

    pub const ENCODED: Self = _

    When parsing a URI, this indicates that %-encoded characters in the userinfo, path, query, and fragment fields should not be decoded. (And likewise the host field if NON_DNS is also set.) When building a URI, it indicates that you have already %-encoded the components, and so #GUri should not do any encoding itself.

    -
    Source

    pub const NON_DNS: Self = _

    The host component should not be assumed to be a +

    Source

    pub const NON_DNS: Self = _

    The host component should not be assumed to be a DNS hostname or IP address (for example, for smb URIs with NetBIOS hostnames).

    -
    Source

    pub const ENCODED_QUERY: Self = _

    Same as ENCODED, for the query +

    Source

    pub const ENCODED_QUERY: Self = _

    Same as ENCODED, for the query field only.

    -
    Source

    pub const ENCODED_PATH: Self = _

    Same as ENCODED, for the path only.

    -
    Source

    pub const ENCODED_FRAGMENT: Self = _

    Same as ENCODED, for the +

    Source

    pub const ENCODED_PATH: Self = _

    Same as ENCODED, for the path only.

    +
    Source

    pub const ENCODED_FRAGMENT: Self = _

    Same as ENCODED, for the fragment only.

    -
    Source

    pub const SCHEME_NORMALIZE: Self = _

    A scheme-based normalization will be applied. +

    Source

    pub const SCHEME_NORMALIZE: Self = _

    A scheme-based normalization will be applied. For example, when parsing an HTTP URI changing omitted path to / and omitted port to 80; and when building a URI, changing empty path to / and default port 80). This only supports a subset of known schemes. (Since: 2.68)

    -
    Source§

    impl UriFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    Source§

    impl UriFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl UriFlags

    Source

    pub const fn iter(&self) -> Iter<UriFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl UriFlags

    Source

    pub const fn iter(&self) -> Iter<UriFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<UriFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<UriFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for UriFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = UriFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for UriFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for UriFlags

    Source§

    fn bitor(self, other: UriFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = UriFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for UriFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for UriFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = UriFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for UriFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for UriFlags

    Source§

    fn clone(&self) -> UriFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<UriFlags> for UriFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for UriFlags

    Source§

    const FLAGS: &'static [Flag<UriFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> UriFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for UriFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = UriFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for UriFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for UriFlags

    Source§

    fn bitor(self, other: UriFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = UriFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for UriFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for UriFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = UriFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for UriFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for UriFlags

    Source§

    fn clone(&self) -> UriFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<UriFlags> for UriFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for UriFlags

    Source§

    const FLAGS: &'static [Flag<UriFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> UriFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<UriFlags> for UriFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for UriFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<UriFlags> for UriFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for UriFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for UriFlags

    Source§

    type Item = UriFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<UriFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for UriFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = UriFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for UriFlags

    Source§

    fn eq(&self, other: &UriFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for UriFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for UriFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for UriFlags

    Source§

    type Item = UriFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<UriFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for UriFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = UriFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for UriFlags

    Source§

    fn eq(&self, other: &UriFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for UriFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for UriFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = UriFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for UriFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = UriFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for UriFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for UriFlags

    Source§

    impl Eq for UriFlags

    Source§

    impl StructuralPartialEq for UriFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for UriFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for UriFlags

    Source§

    impl Eq for UriFlags

    Source§

    impl StructuralPartialEq for UriFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.UriHideFlags.html b/git/docs/glib/struct.UriHideFlags.html index e3ee4f479e41..903a7acf1e41 100644 --- a/git/docs/glib/struct.UriHideFlags.html +++ b/git/docs/glib/struct.UriHideFlags.html @@ -71,75 +71,75 @@ -
    glib

    Struct UriHideFlags

    Source
    pub struct UriHideFlags(/* private fields */);
    Available on crate feature v2_66 only.
    Expand description

    Flags describing what parts of the URI to hide in +

    glib

    Struct UriHideFlags

    Source
    pub struct UriHideFlags(/* private fields */);
    Available on crate feature v2_66 only.
    Expand description

    Flags describing what parts of the URI to hide in g_uri_to_string_partial(). Note that PASSWORD and AUTH_PARAMS will only work if the #GUri was parsed with the corresponding flags.

    -

    Implementations§

    Source§

    impl UriHideFlags

    Source

    pub const NONE: Self = _

    No flags set.

    -
    Source

    pub const USERINFO: Self = _

    Hide the userinfo.

    -
    Source

    pub const PASSWORD: Self = _

    Hide the password.

    -
    Source

    pub const AUTH_PARAMS: Self = _

    Hide the auth_params.

    -
    Source

    pub const QUERY: Self = _

    Hide the query.

    -
    Source

    pub const FRAGMENT: Self = _

    Hide the fragment.

    -
    Source§

    impl UriHideFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +

    Implementations§

    Source§

    impl UriHideFlags

    Source

    pub const NONE: Self = _

    No flags set.

    +
    Source

    pub const USERINFO: Self = _

    Hide the userinfo.

    +
    Source

    pub const PASSWORD: Self = _

    Hide the password.

    +
    Source

    pub const AUTH_PARAMS: Self = _

    Hide the auth_params.

    +
    Source

    pub const QUERY: Self = _

    Hide the query.

    +
    Source

    pub const FRAGMENT: Self = _

    Hide the fragment.

    +
    Source§

    impl UriHideFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl UriHideFlags

    Source

    pub const fn iter(&self) -> Iter<UriHideFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl UriHideFlags

    Source

    pub const fn iter(&self) -> Iter<UriHideFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<UriHideFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<UriHideFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for UriHideFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = UriHideFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for UriHideFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for UriHideFlags

    Source§

    fn bitor(self, other: UriHideFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = UriHideFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for UriHideFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for UriHideFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = UriHideFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for UriHideFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for UriHideFlags

    Source§

    fn clone(&self) -> UriHideFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<UriHideFlags> for UriHideFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for UriHideFlags

    Source§

    const FLAGS: &'static [Flag<UriHideFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> UriHideFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for UriHideFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = UriHideFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for UriHideFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for UriHideFlags

    Source§

    fn bitor(self, other: UriHideFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = UriHideFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for UriHideFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for UriHideFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = UriHideFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for UriHideFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for UriHideFlags

    Source§

    fn clone(&self) -> UriHideFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<UriHideFlags> for UriHideFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for UriHideFlags

    Source§

    const FLAGS: &'static [Flag<UriHideFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> UriHideFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<UriHideFlags> for UriHideFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for UriHideFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<UriHideFlags> for UriHideFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for UriHideFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for UriHideFlags

    Source§

    type Item = UriHideFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<UriHideFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for UriHideFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = UriHideFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for UriHideFlags

    Source§

    fn eq(&self, other: &UriHideFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for UriHideFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for UriHideFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for UriHideFlags

    Source§

    type Item = UriHideFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<UriHideFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for UriHideFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = UriHideFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for UriHideFlags

    Source§

    fn eq(&self, other: &UriHideFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for UriHideFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for UriHideFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = UriHideFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for UriHideFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = UriHideFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for UriHideFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for UriHideFlags

    Source§

    impl Eq for UriHideFlags

    Source§

    impl StructuralPartialEq for UriHideFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for UriHideFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for UriHideFlags

    Source§

    impl Eq for UriHideFlags

    Source§

    impl StructuralPartialEq for UriHideFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.UriParamsFlags.html b/git/docs/glib/struct.UriParamsFlags.html index af4d66d6be0b..71dabfd36e0d 100644 --- a/git/docs/glib/struct.UriParamsFlags.html +++ b/git/docs/glib/struct.UriParamsFlags.html @@ -71,72 +71,72 @@ -
    glib

    Struct UriParamsFlags

    Source
    pub struct UriParamsFlags(/* private fields */);
    Available on crate feature v2_66 only.
    Expand description

    Flags modifying the way parameters are handled by g_uri_parse_params() and +

    glib

    Struct UriParamsFlags

    Source
    pub struct UriParamsFlags(/* private fields */);
    Available on crate feature v2_66 only.
    Expand description

    Flags modifying the way parameters are handled by g_uri_parse_params() and #GUriParamsIter.

    -

    Implementations§

    Source§

    impl UriParamsFlags

    Source

    pub const NONE: Self = _

    No flags set.

    -
    Source

    pub const CASE_INSENSITIVE: Self = _

    Parameter names are case insensitive.

    -
    Source

    pub const WWW_FORM: Self = _

    Replace + with space character. Only useful for +

    Implementations§

    Source§

    impl UriParamsFlags

    Source

    pub const NONE: Self = _

    No flags set.

    +
    Source

    pub const CASE_INSENSITIVE: Self = _

    Parameter names are case insensitive.

    +
    Source

    pub const WWW_FORM: Self = _

    Replace + with space character. Only useful for URLs on the web, using the https or http schemas.

    -
    Source

    pub const PARSE_RELAXED: Self = _

    Source§

    impl UriParamsFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    -
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    -
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    +
    Source

    pub const PARSE_RELAXED: Self = _

    Source§

    impl UriParamsFlags

    Source

    pub const fn empty() -> Self

    Get a flags value with all bits unset.

    +
    Source

    pub const fn all() -> Self

    Get a flags value with all known bits set.

    +
    Source

    pub const fn bits(&self) -> u32

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    +
    Source

    pub const fn from_bits(bits: u32) -> Option<Self>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    -
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    -
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    +
    Source

    pub const fn from_bits_truncate(bits: u32) -> Self

    Convert from a bits value, unsetting any unknown bits.

    +
    Source

    pub const fn from_bits_retain(bits: u32) -> Self

    Convert from a bits value exactly.

    +
    Source

    pub fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    Source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    Source

    pub const fn intersects(&self, other: Self) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub const fn contains(&self, other: Self) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    Source

    pub fn insert(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub fn remove(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    -
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source

    pub fn toggle(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub fn set(&mut self, other: Self, value: bool)

    Call insert when value is true or remove when value is false.

    +
    Source

    pub const fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source

    pub const fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source

    pub const fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    impl UriParamsFlags

    Source

    pub const fn iter(&self) -> Iter<UriParamsFlags>

    Yield a set of contained flags values.

    +
    Source

    pub const fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source

    pub const fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    impl UriParamsFlags

    Source

    pub const fn iter(&self) -> Iter<UriParamsFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -
    Source

    pub const fn iter_names(&self) -> IterNames<UriParamsFlags>

    Yield a set of contained named flags values.

    +
    Source

    pub const fn iter_names(&self) -> IterNames<UriParamsFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    Source§

    impl Binary for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for UriParamsFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for UriParamsFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    -
    Source§

    impl BitOr for UriParamsFlags

    Source§

    fn bitor(self, other: UriParamsFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for UriParamsFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    -
    Source§

    impl BitXor for UriParamsFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for UriParamsFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    Source§

    impl Clone for UriParamsFlags

    Source§

    fn clone(&self) -> UriParamsFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<UriParamsFlags> for UriParamsFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for UriParamsFlags

    Source§

    const FLAGS: &'static [Flag<UriParamsFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> UriParamsFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    Trait Implementations§

    Source§

    impl Binary for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl BitAnd for UriParamsFlags

    Source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the & operator.
    Source§

    impl BitAndAssign for UriParamsFlags

    Source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    +
    Source§

    impl BitOr for UriParamsFlags

    Source§

    fn bitor(self, other: UriParamsFlags) -> Self

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the | operator.
    Source§

    impl BitOrAssign for UriParamsFlags

    Source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    +
    Source§

    impl BitXor for UriParamsFlags

    Source§

    fn bitxor(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the ^ operator.
    Source§

    impl BitXorAssign for UriParamsFlags

    Source§

    fn bitxor_assign(&mut self, other: Self)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    Source§

    impl Clone for UriParamsFlags

    Source§

    fn clone(&self) -> UriParamsFlags

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Extend<UriParamsFlags> for UriParamsFlags

    Source§

    fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl Flags for UriParamsFlags

    Source§

    const FLAGS: &'static [Flag<UriParamsFlags>] = _

    The set of defined flags.
    Source§

    type Bits = u32

    The underlying bits type.
    Source§

    fn bits(&self) -> u32

    Get the underlying bits value. Read more
    Source§

    fn from_bits_retain(bits: u32) -> UriParamsFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<UriParamsFlags> for UriParamsFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    -
    Source§

    impl Hash for UriParamsFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    Source§

    impl FromIterator<UriParamsFlags> for UriParamsFlags

    Source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    +
    Source§

    impl Hash for UriParamsFlags

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for UriParamsFlags

    Source§

    type Item = UriParamsFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<UriParamsFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for UriParamsFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for UriParamsFlags

    Source§

    fn eq(&self, other: &UriParamsFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PublicFlags for UriParamsFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for UriParamsFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl IntoIterator for UriParamsFlags

    Source§

    type Item = UriParamsFlags

    The type of the elements being iterated over.
    Source§

    type IntoIter = Iter<UriParamsFlags>

    Which kind of iterator are we turning this into?
    Source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    Source§

    impl LowerHex for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Not for UriParamsFlags

    Source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the ! operator.
    Source§

    impl Octal for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for UriParamsFlags

    Source§

    fn eq(&self, other: &UriParamsFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PublicFlags for UriParamsFlags

    Source§

    type Primitive = u32

    The type of the underlying storage.
    Source§

    type Internal = InternalBitFlags

    The type of the internal field on the generated flags type.
    Source§

    impl Sub for UriParamsFlags

    Source§

    fn sub(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for UriParamsFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    Source§

    type Output = UriParamsFlags

    The resulting type after applying the - operator.
    Source§

    impl SubAssign for UriParamsFlags

    Source§

    fn sub_assign(&mut self, other: Self)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    Source§

    impl UpperHex for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for UriParamsFlags

    Source§

    impl Eq for UriParamsFlags

    Source§

    impl StructuralPartialEq for UriParamsFlags

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source§

    impl UpperHex for UriParamsFlags

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Copy for UriParamsFlags

    Source§

    impl Eq for UriParamsFlags

    Source§

    impl StructuralPartialEq for UriParamsFlags

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.VariantTy.html b/git/docs/glib/struct.VariantTy.html index 55ab84bc8bef..a18e7bbaa11f 100644 --- a/git/docs/glib/struct.VariantTy.html +++ b/git/docs/glib/struct.VariantTy.html @@ -71,88 +71,88 @@ -
    glib

    Struct VariantTy

    Source
    pub struct VariantTy { /* private fields */ }
    Expand description

    Describes Variant types.

    +
    glib

    Struct VariantTy

    Source
    pub struct VariantTy { /* private fields */ }
    Expand description

    Describes Variant types.

    This is a borrowed counterpart of VariantType. Essentially it’s a str statically guaranteed to be a valid type string.

    -

    Implementations§

    Source§

    impl VariantTy

    Source

    pub const BOOLEAN: &'static VariantTy = _

    bool.

    -
    Source

    pub const BYTE: &'static VariantTy = _

    u8.

    -
    Source

    pub const INT16: &'static VariantTy = _

    i16.

    -
    Source

    pub const UINT16: &'static VariantTy = _

    u16.

    -
    Source

    pub const INT32: &'static VariantTy = _

    i32.

    -
    Source

    pub const UINT32: &'static VariantTy = _

    u32.

    -
    Source

    pub const INT64: &'static VariantTy = _

    i64.

    -
    Source

    pub const UINT64: &'static VariantTy = _

    u64.

    -
    Source

    pub const DOUBLE: &'static VariantTy = _

    f64.

    -
    Source

    pub const STRING: &'static VariantTy = _

    &str.

    -
    Source

    pub const OBJECT_PATH: &'static VariantTy = _

    DBus object path.

    -
    Source

    pub const SIGNATURE: &'static VariantTy = _

    Type signature.

    -
    Source

    pub const VARIANT: &'static VariantTy = _

    Variant.

    -
    Source

    pub const HANDLE: &'static VariantTy = _

    Handle.

    -
    Source

    pub const UNIT: &'static VariantTy = _

    Unit, i.e. ().

    -
    Source

    pub const ANY: &'static VariantTy = _

    An indefinite type that is a supertype of every type (including itself).

    -
    Source

    pub const BASIC: &'static VariantTy = _

    Any basic type.

    -
    Source

    pub const MAYBE: &'static VariantTy = _

    Any maybe type, i.e. Option<T>.

    -
    Source

    pub const ARRAY: &'static VariantTy = _

    Any array type, i.e. [T].

    -
    Source

    pub const TUPLE: &'static VariantTy = _

    Any tuple type, i.e. (T), (T, T), etc.

    -
    Source

    pub const DICT_ENTRY: &'static VariantTy = _

    Any dict entry type, i.e. DictEntry<K, V>.

    -
    Source

    pub const DICTIONARY: &'static VariantTy = _

    Any dictionary type, i.e. HashMap<K, V>, BTreeMap<K, V>.

    -
    Source

    pub const STRING_ARRAY: &'static VariantTy = _

    String array, i.e. [&str].

    -
    Source

    pub const OBJECT_PATH_ARRAY: &'static VariantTy = _

    Object path array, i.e. [&str].

    -
    Source

    pub const BYTE_STRING: &'static VariantTy = _

    Byte string, i.e. [u8].

    -
    Source

    pub const BYTE_STRING_ARRAY: &'static VariantTy = _

    Byte string array, i.e. [[u8]].

    -
    Source

    pub const VARDICT: &'static VariantTy = _

    Variant dictionary, i.e. HashMap<String, Variant>, BTreeMap<String, Variant>, etc.

    -
    Source

    pub fn new(type_string: &str) -> Result<&VariantTy, BoolError>

    Tries to create a &VariantTy from a string slice.

    +

    Implementations§

    Source§

    impl VariantTy

    Source

    pub const BOOLEAN: &'static VariantTy = _

    bool.

    +
    Source

    pub const BYTE: &'static VariantTy = _

    u8.

    +
    Source

    pub const INT16: &'static VariantTy = _

    i16.

    +
    Source

    pub const UINT16: &'static VariantTy = _

    u16.

    +
    Source

    pub const INT32: &'static VariantTy = _

    i32.

    +
    Source

    pub const UINT32: &'static VariantTy = _

    u32.

    +
    Source

    pub const INT64: &'static VariantTy = _

    i64.

    +
    Source

    pub const UINT64: &'static VariantTy = _

    u64.

    +
    Source

    pub const DOUBLE: &'static VariantTy = _

    f64.

    +
    Source

    pub const STRING: &'static VariantTy = _

    &str.

    +
    Source

    pub const OBJECT_PATH: &'static VariantTy = _

    DBus object path.

    +
    Source

    pub const SIGNATURE: &'static VariantTy = _

    Type signature.

    +
    Source

    pub const VARIANT: &'static VariantTy = _

    Variant.

    +
    Source

    pub const HANDLE: &'static VariantTy = _

    Handle.

    +
    Source

    pub const UNIT: &'static VariantTy = _

    Unit, i.e. ().

    +
    Source

    pub const ANY: &'static VariantTy = _

    An indefinite type that is a supertype of every type (including itself).

    +
    Source

    pub const BASIC: &'static VariantTy = _

    Any basic type.

    +
    Source

    pub const MAYBE: &'static VariantTy = _

    Any maybe type, i.e. Option<T>.

    +
    Source

    pub const ARRAY: &'static VariantTy = _

    Any array type, i.e. [T].

    +
    Source

    pub const TUPLE: &'static VariantTy = _

    Any tuple type, i.e. (T), (T, T), etc.

    +
    Source

    pub const DICT_ENTRY: &'static VariantTy = _

    Any dict entry type, i.e. DictEntry<K, V>.

    +
    Source

    pub const DICTIONARY: &'static VariantTy = _

    Any dictionary type, i.e. HashMap<K, V>, BTreeMap<K, V>.

    +
    Source

    pub const STRING_ARRAY: &'static VariantTy = _

    String array, i.e. [&str].

    +
    Source

    pub const OBJECT_PATH_ARRAY: &'static VariantTy = _

    Object path array, i.e. [&str].

    +
    Source

    pub const BYTE_STRING: &'static VariantTy = _

    Byte string, i.e. [u8].

    +
    Source

    pub const BYTE_STRING_ARRAY: &'static VariantTy = _

    Byte string array, i.e. [[u8]].

    +
    Source

    pub const VARDICT: &'static VariantTy = _

    Variant dictionary, i.e. HashMap<String, Variant>, BTreeMap<String, Variant>, etc.

    +
    Source

    pub fn new(type_string: &str) -> Result<&VariantTy, BoolError>

    Tries to create a &VariantTy from a string slice.

    Returns Ok if the string is a valid type string, Err otherwise.

    -
    Source

    pub const unsafe fn from_str_unchecked(type_string: &str) -> &VariantTy

    Converts a type string into &VariantTy without any checks.

    +
    Source

    pub const unsafe fn from_str_unchecked(type_string: &str) -> &VariantTy

    Converts a type string into &VariantTy without any checks.

    §Safety

    The caller is responsible for passing in only a valid variant type string.

    -
    Source

    pub fn as_str(&self) -> &str

    Converts to a string slice.

    -
    Source

    pub fn is_definite(&self) -> bool

    Check if this variant type is a definite type.

    -
    Source

    pub fn is_container(&self) -> bool

    Check if this variant type is a container type.

    -
    Source

    pub fn is_basic(&self) -> bool

    Check if this variant type is a basic type.

    -
    Source

    pub fn is_maybe(&self) -> bool

    Check if this variant type is a maybe type.

    -
    Source

    pub fn is_array(&self) -> bool

    Check if this variant type is an array type.

    -
    Source

    pub fn is_tuple(&self) -> bool

    Check if this variant type is a tuple type.

    -
    Source

    pub fn is_dict_entry(&self) -> bool

    Check if this variant type is a dict entry type.

    -
    Source

    pub fn is_variant(&self) -> bool

    Check if this variant type is a variant.

    -
    Source

    pub fn is_subtype_of(&self, supertype: &Self) -> bool

    Check if this variant type is a subtype of another.

    -
    Source

    pub fn element(&self) -> &VariantTy

    Return the element type of this variant type.

    +
    Source

    pub fn as_str(&self) -> &str

    Converts to a string slice.

    +
    Source

    pub fn is_definite(&self) -> bool

    Check if this variant type is a definite type.

    +
    Source

    pub fn is_container(&self) -> bool

    Check if this variant type is a container type.

    +
    Source

    pub fn is_basic(&self) -> bool

    Check if this variant type is a basic type.

    +
    Source

    pub fn is_maybe(&self) -> bool

    Check if this variant type is a maybe type.

    +
    Source

    pub fn is_array(&self) -> bool

    Check if this variant type is an array type.

    +
    Source

    pub fn is_tuple(&self) -> bool

    Check if this variant type is a tuple type.

    +
    Source

    pub fn is_dict_entry(&self) -> bool

    Check if this variant type is a dict entry type.

    +
    Source

    pub fn is_variant(&self) -> bool

    Check if this variant type is a variant.

    +
    Source

    pub fn is_subtype_of(&self, supertype: &Self) -> bool

    Check if this variant type is a subtype of another.

    +
    Source

    pub fn element(&self) -> &VariantTy

    Return the element type of this variant type.

    §Panics

    This function panics if not called with an array or maybe type.

    -
    Source

    pub fn tuple_types(&self) -> VariantTyIterator<'_>

    Iterate over the types of this variant type.

    +
    Source

    pub fn tuple_types(&self) -> VariantTyIterator<'_>

    Iterate over the types of this variant type.

    §Panics

    This function panics if not called with a tuple or dictionary entry type.

    -
    Source

    pub fn first(&self) -> Option<&VariantTy>

    Return the first type of this variant type.

    +
    Source

    pub fn first(&self) -> Option<&VariantTy>

    Return the first type of this variant type.

    §Panics

    This function panics if not called with a tuple or dictionary entry type.

    -
    Source

    pub fn next(&self) -> Option<&VariantTy>

    Return the next type of this variant type.

    -
    Source

    pub fn n_items(&self) -> usize

    Return the number of items in this variant type.

    -
    Source

    pub fn key(&self) -> &VariantTy

    Return the key type of this variant type.

    +
    Source

    pub fn next(&self) -> Option<&VariantTy>

    Return the next type of this variant type.

    +
    Source

    pub fn n_items(&self) -> usize

    Return the number of items in this variant type.

    +
    Source

    pub fn key(&self) -> &VariantTy

    Return the key type of this variant type.

    §Panics

    This function panics if not called with a dictionary entry type.

    -
    Source

    pub fn value(&self) -> &VariantTy

    Return the value type of this variant type.

    +
    Source

    pub fn value(&self) -> &VariantTy

    Return the value type of this variant type.

    §Panics

    This function panics if not called with a dictionary entry type.

    -

    Trait Implementations§

    Source§

    impl AsRef<VariantTy> for VariantTy

    Source§

    fn as_ref(&self) -> &Self

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl AsRef<VariantTy> for VariantType

    Source§

    fn as_ref(&self) -> &VariantTy

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Borrow<VariantTy> for VariantType

    Source§

    fn borrow(&self) -> &VariantTy

    Immutably borrows from an owned value. Read more
    Source§

    impl Debug for VariantTy

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for VariantTy

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<'a> From<&'a VariantTy> for Cow<'a, VariantTy>

    Source§

    fn from(ty: &'a VariantTy) -> Cow<'a, VariantTy>

    Converts to this type from the input type.
    Source§

    impl Hash for VariantTy

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for Cow<'b, VariantTy>

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for String

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for str

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a str> for VariantTy

    Source§

    fn eq(&self, other: &&'a str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Cow<'b, VariantTy>> for &'a VariantTy

    Source§

    fn eq(&self, other: &Cow<'b, VariantTy>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<String> for &'a VariantTy

    Source§

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<String> for VariantTy

    Source§

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for &'a str

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for String

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for VariantType

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for str

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<str> for &'a VariantTy

    Source§

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<str> for VariantTy

    Source§

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialEq for VariantTy

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl StaticType for VariantTy

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToOwned for VariantTy

    Source§

    type Owned = VariantType

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> VariantType

    Creates owned data from borrowed data, usually by cloning. Read more
    1.63.0 · Source§

    fn clone_into(&self, target: &mut Self::Owned)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl Eq for VariantTy

    Source§

    impl StructuralPartialEq for VariantTy

    Source§

    impl Sync for VariantTy

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    Source§

    impl AsRef<VariantTy> for VariantTy

    Source§

    fn as_ref(&self) -> &Self

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl AsRef<VariantTy> for VariantType

    Source§

    fn as_ref(&self) -> &VariantTy

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Borrow<VariantTy> for VariantType

    Source§

    fn borrow(&self) -> &VariantTy

    Immutably borrows from an owned value. Read more
    Source§

    impl Debug for VariantTy

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for VariantTy

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<'a> From<&'a VariantTy> for Cow<'a, VariantTy>

    Source§

    fn from(ty: &'a VariantTy) -> Cow<'a, VariantTy>

    Converts to this type from the input type.
    Source§

    impl Hash for VariantTy

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for Cow<'b, VariantTy>

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for String

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for str

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a str> for VariantTy

    Source§

    fn eq(&self, other: &&'a str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Cow<'b, VariantTy>> for &'a VariantTy

    Source§

    fn eq(&self, other: &Cow<'b, VariantTy>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<String> for &'a VariantTy

    Source§

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<String> for VariantTy

    Source§

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for &'a str

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for String

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for VariantType

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for str

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<str> for &'a VariantTy

    Source§

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<str> for VariantTy

    Source§

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialEq for VariantTy

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl StaticType for VariantTy

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToOwned for VariantTy

    Source§

    type Owned = VariantType

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> VariantType

    Creates owned data from borrowed data, usually by cloning. Read more
    1.63.0 · Source§

    fn clone_into(&self, target: &mut Self::Owned)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl Eq for VariantTy

    Source§

    impl StructuralPartialEq for VariantTy

    Source§

    impl Sync for VariantTy

    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> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    \ No newline at end of file diff --git a/git/docs/glib/struct.VariantTyIterator.html b/git/docs/glib/struct.VariantTyIterator.html index e12be4bb1a3e..35d3e88d5f8c 100644 --- a/git/docs/glib/struct.VariantTyIterator.html +++ b/git/docs/glib/struct.VariantTyIterator.html @@ -71,12 +71,12 @@ -
    glib

    Struct VariantTyIterator

    Source
    pub struct VariantTyIterator<'a> { /* private fields */ }
    Expand description

    An iterator over the individual components of a tuple VariantTy.

    +
    glib

    Struct VariantTyIterator

    Source
    pub struct VariantTyIterator<'a> { /* private fields */ }
    Expand description

    An iterator over the individual components of a tuple VariantTy.

    This can be conveniently constructed using VariantTy::tuple_types.

    -

    Implementations§

    Source§

    impl<'a> VariantTyIterator<'a>

    Source

    pub fn new(ty: &'a VariantTy) -> Result<Self, BoolError>

    Creates a new iterator over the types of the specified VariantTy.

    +

    Implementations§

    Source§

    impl<'a> VariantTyIterator<'a>

    Source

    pub fn new(ty: &'a VariantTy) -> Result<Self, BoolError>

    Creates a new iterator over the types of the specified VariantTy.

    Returns Ok if the type is a definite tuple or dictionary entry type, Err otherwise.

    -

    Trait Implementations§

    Source§

    impl<'a> Clone for VariantTyIterator<'a>

    Source§

    fn clone(&self) -> VariantTyIterator<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<'a> Debug for VariantTyIterator<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<'a> Iterator for VariantTyIterator<'a>

    Source§

    type Item = &'a VariantTy

    The type of the elements being iterated over.
    Source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    Source§

    fn next_chunk<const N: usize>( +

    Trait Implementations§

    Source§

    impl<'a> Clone for VariantTyIterator<'a>

    Source§

    fn clone(&self) -> VariantTyIterator<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<'a> Debug for VariantTyIterator<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<'a> Iterator for VariantTyIterator<'a>

    Source§

    type Item = &'a VariantTy

    The type of the elements being iterated over.
    Source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    Source§

    fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
    where Self: Sized,

    🔬This is a nightly-only experimental API. (iter_next_chunk)
    Advances the iterator and returns an array containing the next N values. Read more
    1.0.0 · Source§

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the iterator. Read more
    1.0.0 · Source§

    fn count(self) -> usize
    where @@ -255,7 +255,7 @@ Self: Sized, F: FnMut(Self::Item) -> K, K: PartialOrd,

    Checks if the elements of this iterator are sorted using the given key extraction -function. Read more
    Source§

    impl<'a> Copy for VariantTyIterator<'a>

    Source§

    impl FusedIterator for VariantTyIterator<'_>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for VariantTyIterator<'a>

    §

    impl<'a> RefUnwindSafe for VariantTyIterator<'a>

    §

    impl<'a> Send for VariantTyIterator<'a>

    §

    impl<'a> Sync for VariantTyIterator<'a>

    §

    impl<'a> Unpin for VariantTyIterator<'a>

    §

    impl<'a> UnwindSafe for VariantTyIterator<'a>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +function. Read more

    Source§

    impl<'a> Copy for VariantTyIterator<'a>

    Source§

    impl FusedIterator for VariantTyIterator<'_>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for VariantTyIterator<'a>

    §

    impl<'a> RefUnwindSafe for VariantTyIterator<'a>

    §

    impl<'a> Send for VariantTyIterator<'a>

    §

    impl<'a> Sync for VariantTyIterator<'a>

    §

    impl<'a> Unpin for VariantTyIterator<'a>

    §

    impl<'a> UnwindSafe for VariantTyIterator<'a>

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/struct.VariantType.html b/git/docs/glib/struct.VariantType.html index 87dc9ab1552c..da6c14f3861b 100644 --- a/git/docs/glib/struct.VariantType.html +++ b/git/docs/glib/struct.VariantType.html @@ -71,7 +71,7 @@ -
    glib

    Struct VariantType

    Source
    pub struct VariantType { /* private fields */ }
    Expand description

    Describes Variant types.

    +
    glib

    Struct VariantType

    Source
    pub struct VariantType { /* private fields */ }
    Expand description

    Describes Variant types.

    The Variant type system (based on the D-Bus one) describes types with “type strings”. VariantType is an owned immutable type string (you can think of it as a Box<str> statically guaranteed to be a valid type @@ -254,8 +254,187 @@

    D-Bus specification, +therefore, provides a significant amount of +information that is useful when working with [type@GLib.Variant].

    +

    The first major change with respect to the D-Bus type system is the +introduction of maybe (or ‘nullable’) types. Any type in [type@GLib.Variant] +can be converted to a maybe type, in which case, nothing (or null) +becomes a valid value. Maybe types have been added by introducing the +character m to type strings.

    +

    The second major change is that the [type@GLib.Variant] type system supports +the concept of ‘indefinite types’ — types that are less specific than +the normal types found in D-Bus. For example, it is possible to speak +of ‘an array of any type’ in [type@GLib.Variant], where the D-Bus type system +would require you to speak of ‘an array of integers’ or ‘an array of +strings’. Indefinite types have been added by introducing the +characters *, ? and r to type strings.

    +

    Finally, all arbitrary restrictions relating to the complexity of +types are lifted along with the restriction that dictionary entries +may only appear nested inside of arrays.

    +

    Just as in D-Bus, [type@GLib.Variant] types are described with strings (‘type +strings’). Subject to the differences mentioned above, these strings +are of the same form as those found in D-Bus. Note, however: D-Bus +always works in terms of messages and therefore individual type +strings appear nowhere in its interface. Instead, ‘signatures’ +are a concatenation of the strings of the type of each argument in a +message. [type@GLib.Variant] deals with single values directly so +[type@GLib.Variant] type strings always describe the type of exactly one +value. This means that a D-Bus signature string is generally not a valid +[type@GLib.Variant] type string — except in the case that it is the signature +of a message containing exactly one argument.

    +

    An indefinite type is similar in spirit to what may be called an +abstract type in other type systems. No value can exist that has an +indefinite type as its type, but values can exist that have types +that are subtypes of indefinite types. That is to say, +Variant::type_() will never return an indefinite type, but +calling [Variant::is_of_type()][crate::Variant::is_of_type()] with an indefinite type may return +true. For example, you cannot have a value that represents ‘an +array of no particular type’, but you can have an ‘array of integers’ +which certainly matches the type of ‘an array of no particular type’, +since ‘array of integers’ is a subtype of ‘array of no particular +type’.

    +

    This is similar to how instances of abstract classes may not +directly exist in other type systems, but instances of their +non-abstract subtypes may. For example, in GTK, no object that has +the type of GtkWidget can +exist (since GtkWidget is an abstract class), but a GtkWindow +can certainly be instantiated, and you would say that a GtkWindow is a +GtkWidget (since GtkWindow is a subclass of GtkWidget).

    +

    Two types may not be compared by value; use GLib::VariantType::equal() +or [is_subtype_of()][Self::is_subtype_of()] May be copied using +GLib::VariantType::copy() and freed using GLib::VariantType::free().

    +

    §GVariant Type Strings

    +

    A [type@GLib.Variant] type string can be any of the following:

    +
      +
    • any basic type string (listed below)
    • +
    • v, r or *
    • +
    • one of the characters a or m, followed by another type string
    • +
    • the character (, followed by a concatenation of zero or more other +type strings, followed by the character )
    • +
    • the character {, followed by a basic type string (see below), +followed by another type string, followed by the character }
    • +
    +

    A basic type string describes a basic type (as per +[is_basic()][Self::is_basic()]) and is always a single character in +length. The valid basic type strings are b, y, n, q, i, u, x, +t, h, d, s, o, g and ?.

    +

    The above definition is recursive to arbitrary depth. aaaaai and +(ui(nq((y)))s) are both valid type strings, as is +a(aa(ui)(qna{ya(yd)})). In order to not hit memory limits, +[type@GLib.Variant] imposes a limit on recursion depth of 65 nested +containers. This is the limit in the D-Bus specification (64) plus one to +allow a GDBusMessage to be nested in +a top-level tuple.

    +

    The meaning of each of the characters is as follows:

    +
      +
    • +

      b: the type string of G_VARIANT_TYPE_BOOLEAN; a boolean value.

      +
    • +
    • +

      y: the type string of G_VARIANT_TYPE_BYTE; a byte.

      +
    • +
    • +

      n: the type string of G_VARIANT_TYPE_INT16; a signed 16 bit integer.

      +
    • +
    • +

      q: the type string of G_VARIANT_TYPE_UINT16; an unsigned 16 bit integer.

      +
    • +
    • +

      i: the type string of G_VARIANT_TYPE_INT32; a signed 32 bit integer.

      +
    • +
    • +

      u: the type string of G_VARIANT_TYPE_UINT32; an unsigned 32 bit integer.

      +
    • +
    • +

      x: the type string of G_VARIANT_TYPE_INT64; a signed 64 bit integer.

      +
    • +
    • +

      t: the type string of G_VARIANT_TYPE_UINT64; an unsigned 64 bit integer.

      +
    • +
    • +

      h: the type string of G_VARIANT_TYPE_HANDLE; a signed 32 bit value +that, by convention, is used as an index into an array of file +descriptors that are sent alongside a D-Bus message.

      +
    • +
    • +

      d: the type string of G_VARIANT_TYPE_DOUBLE; a double precision +floating point value.

      +
    • +
    • +

      s: the type string of G_VARIANT_TYPE_STRING; a string.

      +
    • +
    • +

      o: the type string of G_VARIANT_TYPE_OBJECT_PATH; a string in the form +of a D-Bus object path.

      +
    • +
    • +

      g: the type string of G_VARIANT_TYPE_SIGNATURE; a string in the form of +a D-Bus type signature.

      +
    • +
    • +

      ?: the type string of G_VARIANT_TYPE_BASIC; an indefinite type that +is a supertype of any of the basic types.

      +
    • +
    • +

      v: the type string of G_VARIANT_TYPE_VARIANT; a container type that +contain any other type of value.

      +
    • +
    • +

      a: used as a prefix on another type string to mean an array of that +type; the type string ai, for example, is the type of an array of +signed 32-bit integers.

      +
    • +
    • +

      m: used as a prefix on another type string to mean a ‘maybe’, or +‘nullable’, version of that type; the type string ms, for example, +is the type of a value that maybe contains a string, or maybe contains +nothing.

      +
    • +
    • +

      (): used to enclose zero or more other concatenated type strings to +create a tuple type; the type string (is), for example, is the type of +a pair of an integer and a string.

      +
    • +
    • +

      r: the type string of G_VARIANT_TYPE_TUPLE; an indefinite type that is +a supertype of any tuple type, regardless of the number of items.

      +
    • +
    • +

      {}: used to enclose a basic type string concatenated with another type +string to create a dictionary entry type, which usually appears inside of +an array to form a dictionary; the type string a{sd}, for example, is +the type of a dictionary that maps strings to double precision floating +point values.

      +

      The first type (the basic type) is the key type and the second type is +the value type. The reason that the first type is restricted to being a +basic type is so that it can easily be hashed.

      +
    • +
    • +

      *: the type string of G_VARIANT_TYPE_ANY; the indefinite type that is +a supertype of all types. Note that, as with all type strings, this +character represents exactly one type. It cannot be used inside of tuples +to mean ‘any number of items’.

      +
    • +
    +

    Any type string of a container that contains an indefinite type is, +itself, an indefinite type. For example, the type string a* +(corresponding to G_VARIANT_TYPE_ARRAY) is an indefinite type +that is a supertype of every array type. (*s) is a supertype +of all tuples that contain exactly two items where the second +item is a string.

    +

    a{?*} is an indefinite type that is a supertype of all arrays +containing dictionary entries where the key is any basic type and +the value is any type at all. This is, by definition, a dictionary, +so this type string corresponds to G_VARIANT_TYPE_DICTIONARY. Note +that, due to the restriction that the key of a dictionary entry must be a basic type, {**} is not a valid type string.

    -

    Implementations§

    Source§

    impl VariantType

    Source

    pub fn new(type_string: &str) -> Result<VariantType, BoolError>

    Tries to create a VariantType from a string slice.

    +

    Implementations§

    Source§

    impl VariantType

    Source

    pub fn new(type_string: &str) -> Result<VariantType, BoolError>

    Tries to create a VariantType from a string slice.

    Returns Ok if the string is a valid type string, Err otherwise. Creates a new [type@GLib.VariantType] corresponding to the type string given by @type_string.

    @@ -265,8 +444,17 @@

    §type_string

    a valid GVariant type string

    §Returns
    +

    a new [type@GLib.VariantType] +Creates a new [type@GLib.VariantType] corresponding to the type string given +by @type_string.

    +

    It is appropriate to call GLib::VariantType::free() on the return value.

    +

    It is a programmer error to call this function with an invalid type +string. Use [string_is_valid()][Self::string_is_valid()] if you are unsure.

    +
    §type_string
    +

    a valid GVariant type string

    +
    §Returns

    a new [type@GLib.VariantType]

    -
    Source

    pub fn new_dict_entry( +

    Source

    pub fn new_dict_entry( key_type: &VariantTy, value_type: &VariantTy, ) -> VariantType

    Creates a VariantType from a key and value type. @@ -277,28 +465,54 @@

    §key

    a basic type to use for the key

    §value

    a type to use for the value

    -
    §Returns
    +
    §Returns
    +

    a new dictionary entry type +Since 2.24 +Constructs the type corresponding to a dictionary entry with a key +of type @key and a value of type @value.

    +

    It is appropriate to call GLib::VariantType::free() on the return value.

    +
    §key
    +

    a basic type to use for the key

    +
    §value
    +

    a type to use for the value

    +
    §Returns

    a new dictionary entry type Since 2.24

    -
    Source

    pub fn new_array(elem_type: &VariantTy) -> VariantType

    Creates a VariantType from an array element type. +

    Source

    pub fn new_array(elem_type: &VariantTy) -> VariantType

    Creates a VariantType from an array element type. Constructs the type corresponding to an array of elements of the type @type_.

    It is appropriate to call [first()][Self::first()] on the return value.

    §element

    an element type

    -
    §Returns
    +
    §Returns
    +

    a new array type +Since 2.24 +Constructs the type corresponding to an array of elements of the +type @type_.

    +

    It is appropriate to call [first()][Self::first()] on the return value.

    +
    §element
    +

    an element type

    +
    §Returns

    a new array type Since 2.24

    -
    Source

    pub fn new_maybe(child_type: &VariantTy) -> VariantType

    Creates a VariantType from a maybe element type. +

    Source

    pub fn new_maybe(child_type: &VariantTy) -> VariantType

    Creates a VariantType from a maybe element type. Constructs the type corresponding to a ‘maybe’ instance containing type @type_ or Nothing.

    It is appropriate to call GLib::VariantType::free() on the return value.

    -
    §element
    +
    §element

    an element type

    -
    §Returns
    +
    §Returns
    +

    a new ‘maybe’ type +Since 2.24 +Constructs the type corresponding to a ‘maybe’ instance containing +type @type_ or Nothing.

    +

    It is appropriate to call GLib::VariantType::free() on the return value.

    +
    §element
    +

    an element type

    +
    §Returns

    a new ‘maybe’ type Since 2.24

    -
    Source

    pub fn new_tuple( +

    Source

    pub fn new_tuple( items: impl IntoIterator<Item = impl AsRef<VariantTy>>, ) -> VariantType

    Creates a VariantType from a maybe element type. Constructs a new tuple type, from @items.

    @@ -307,56 +521,65 @@
    §Returns

    It is appropriate to call GLib::VariantType::free() on the return value.

    §items

    an array of types, one for each item

    -
    §Returns
    +
    §Returns
    +

    a new tuple type +Since 2.24 +Constructs a new tuple type, from @items.

    +

    @length is the number of items in @items, or -1 to indicate that +@items is NULL-terminated.

    +

    It is appropriate to call GLib::VariantType::free() on the return value.

    +
    §items
    +

    an array of types, one for each item

    +
    §Returns

    a new tuple type Since 2.24

    -
    Source

    pub fn from_string( +

    Source

    pub fn from_string( type_string: impl Into<GString>, ) -> Result<VariantType, BoolError>

    Tries to create a VariantType from an owned string.

    Returns Ok if the string is a valid type string, Err otherwise.

    -

    Methods from Deref<Target = VariantTy>§

    Source

    pub const BOOLEAN: &'static VariantTy = _

    Source

    pub const BYTE: &'static VariantTy = _

    Source

    pub const INT16: &'static VariantTy = _

    Source

    pub const UINT16: &'static VariantTy = _

    Source

    pub const INT32: &'static VariantTy = _

    Source

    pub const UINT32: &'static VariantTy = _

    Source

    pub const INT64: &'static VariantTy = _

    Source

    pub const UINT64: &'static VariantTy = _

    Source

    pub const DOUBLE: &'static VariantTy = _

    Source

    pub const STRING: &'static VariantTy = _

    Source

    pub const OBJECT_PATH: &'static VariantTy = _

    Source

    pub const SIGNATURE: &'static VariantTy = _

    Source

    pub const VARIANT: &'static VariantTy = _

    Source

    pub const HANDLE: &'static VariantTy = _

    Source

    pub const UNIT: &'static VariantTy = _

    Source

    pub const ANY: &'static VariantTy = _

    Source

    pub const BASIC: &'static VariantTy = _

    Source

    pub const MAYBE: &'static VariantTy = _

    Source

    pub const ARRAY: &'static VariantTy = _

    Source

    pub const TUPLE: &'static VariantTy = _

    Source

    pub const DICT_ENTRY: &'static VariantTy = _

    Source

    pub const DICTIONARY: &'static VariantTy = _

    Source

    pub const STRING_ARRAY: &'static VariantTy = _

    Source

    pub const OBJECT_PATH_ARRAY: &'static VariantTy = _

    Source

    pub const BYTE_STRING: &'static VariantTy = _

    Source

    pub const BYTE_STRING_ARRAY: &'static VariantTy = _

    Source

    pub const VARDICT: &'static VariantTy = _

    Source

    pub fn as_str(&self) -> &str

    Converts to a string slice.

    -
    Source

    pub fn is_definite(&self) -> bool

    Check if this variant type is a definite type.

    -
    Source

    pub fn is_container(&self) -> bool

    Check if this variant type is a container type.

    -
    Source

    pub fn is_basic(&self) -> bool

    Check if this variant type is a basic type.

    -
    Source

    pub fn is_maybe(&self) -> bool

    Check if this variant type is a maybe type.

    -
    Source

    pub fn is_array(&self) -> bool

    Check if this variant type is an array type.

    -
    Source

    pub fn is_tuple(&self) -> bool

    Check if this variant type is a tuple type.

    -
    Source

    pub fn is_dict_entry(&self) -> bool

    Check if this variant type is a dict entry type.

    -
    Source

    pub fn is_variant(&self) -> bool

    Check if this variant type is a variant.

    -
    Source

    pub fn is_subtype_of(&self, supertype: &Self) -> bool

    Check if this variant type is a subtype of another.

    -
    Source

    pub fn element(&self) -> &VariantTy

    Return the element type of this variant type.

    +

    Methods from Deref<Target = VariantTy>§

    Source

    pub const BOOLEAN: &'static VariantTy = _

    Source

    pub const BYTE: &'static VariantTy = _

    Source

    pub const INT16: &'static VariantTy = _

    Source

    pub const UINT16: &'static VariantTy = _

    Source

    pub const INT32: &'static VariantTy = _

    Source

    pub const UINT32: &'static VariantTy = _

    Source

    pub const INT64: &'static VariantTy = _

    Source

    pub const UINT64: &'static VariantTy = _

    Source

    pub const DOUBLE: &'static VariantTy = _

    Source

    pub const STRING: &'static VariantTy = _

    Source

    pub const OBJECT_PATH: &'static VariantTy = _

    Source

    pub const SIGNATURE: &'static VariantTy = _

    Source

    pub const VARIANT: &'static VariantTy = _

    Source

    pub const HANDLE: &'static VariantTy = _

    Source

    pub const UNIT: &'static VariantTy = _

    Source

    pub const ANY: &'static VariantTy = _

    Source

    pub const BASIC: &'static VariantTy = _

    Source

    pub const MAYBE: &'static VariantTy = _

    Source

    pub const ARRAY: &'static VariantTy = _

    Source

    pub const TUPLE: &'static VariantTy = _

    Source

    pub const DICT_ENTRY: &'static VariantTy = _

    Source

    pub const DICTIONARY: &'static VariantTy = _

    Source

    pub const STRING_ARRAY: &'static VariantTy = _

    Source

    pub const OBJECT_PATH_ARRAY: &'static VariantTy = _

    Source

    pub const BYTE_STRING: &'static VariantTy = _

    Source

    pub const BYTE_STRING_ARRAY: &'static VariantTy = _

    Source

    pub const VARDICT: &'static VariantTy = _

    Source

    pub fn as_str(&self) -> &str

    Converts to a string slice.

    +
    Source

    pub fn is_definite(&self) -> bool

    Check if this variant type is a definite type.

    +
    Source

    pub fn is_container(&self) -> bool

    Check if this variant type is a container type.

    +
    Source

    pub fn is_basic(&self) -> bool

    Check if this variant type is a basic type.

    +
    Source

    pub fn is_maybe(&self) -> bool

    Check if this variant type is a maybe type.

    +
    Source

    pub fn is_array(&self) -> bool

    Check if this variant type is an array type.

    +
    Source

    pub fn is_tuple(&self) -> bool

    Check if this variant type is a tuple type.

    +
    Source

    pub fn is_dict_entry(&self) -> bool

    Check if this variant type is a dict entry type.

    +
    Source

    pub fn is_variant(&self) -> bool

    Check if this variant type is a variant.

    +
    Source

    pub fn is_subtype_of(&self, supertype: &Self) -> bool

    Check if this variant type is a subtype of another.

    +
    Source

    pub fn element(&self) -> &VariantTy

    Return the element type of this variant type.

    §Panics

    This function panics if not called with an array or maybe type.

    -
    Source

    pub fn tuple_types(&self) -> VariantTyIterator<'_>

    Iterate over the types of this variant type.

    +
    Source

    pub fn tuple_types(&self) -> VariantTyIterator<'_>

    Iterate over the types of this variant type.

    §Panics

    This function panics if not called with a tuple or dictionary entry type.

    -
    Source

    pub fn first(&self) -> Option<&VariantTy>

    Return the first type of this variant type.

    +
    Source

    pub fn first(&self) -> Option<&VariantTy>

    Return the first type of this variant type.

    §Panics

    This function panics if not called with a tuple or dictionary entry type.

    -
    Source

    pub fn next(&self) -> Option<&VariantTy>

    Return the next type of this variant type.

    -
    Source

    pub fn n_items(&self) -> usize

    Return the number of items in this variant type.

    -
    Source

    pub fn key(&self) -> &VariantTy

    Return the key type of this variant type.

    +
    Source

    pub fn next(&self) -> Option<&VariantTy>

    Return the next type of this variant type.

    +
    Source

    pub fn n_items(&self) -> usize

    Return the number of items in this variant type.

    +
    Source

    pub fn key(&self) -> &VariantTy

    Return the key type of this variant type.

    §Panics

    This function panics if not called with a dictionary entry type.

    -
    Source

    pub fn value(&self) -> &VariantTy

    Return the value type of this variant type.

    +
    Source

    pub fn value(&self) -> &VariantTy

    Return the value type of this variant type.

    §Panics

    This function panics if not called with a dictionary entry type.

    -

    Trait Implementations§

    Source§

    impl AsRef<VariantTy> for VariantType

    Source§

    fn as_ref(&self) -> &VariantTy

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Borrow<VariantTy> for VariantType

    Source§

    fn borrow(&self) -> &VariantTy

    Immutably borrows from an owned value. Read more
    Source§

    impl Clone for VariantType

    Source§

    fn clone(&self) -> VariantType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for VariantType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for VariantType

    Source§

    type Target = VariantTy

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &VariantTy

    Dereferences the value.
    Source§

    impl Display for VariantType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for VariantType

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl<'a> From<VariantType> for Cow<'a, VariantTy>

    Source§

    fn from(ty: VariantType) -> Cow<'a, VariantTy>

    Converts to this type from the input type.
    Source§

    impl FromStr for VariantType

    Source§

    type Err = BoolError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl Hash for VariantType

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Trait Implementations§

    Source§

    impl AsRef<VariantTy> for VariantType

    Source§

    fn as_ref(&self) -> &VariantTy

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Borrow<VariantTy> for VariantType

    Source§

    fn borrow(&self) -> &VariantTy

    Immutably borrows from an owned value. Read more
    Source§

    impl Clone for VariantType

    Source§

    fn clone(&self) -> VariantType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for VariantType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for VariantType

    Source§

    type Target = VariantTy

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &VariantTy

    Dereferences the value.
    Source§

    impl Display for VariantType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for VariantType

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl<'a> From<VariantType> for Cow<'a, VariantTy>

    Source§

    fn from(ty: VariantType) -> Cow<'a, VariantTy>

    Converts to this type from the input type.
    Source§

    impl FromStr for VariantType

    Source§

    type Err = BoolError

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl Hash for VariantType

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a str> for VariantType

    Source§

    fn eq(&self, other: &&'a str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType

    Source§

    fn eq(&self, other: &Cow<'a, VariantTy>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<String> for VariantType

    Source§

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for VariantType

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for &'a str

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for String

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for str

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<str> for VariantType

    Source§

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialEq for VariantType

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl StaticType for VariantType

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for VariantType

    Source§

    impl Send for VariantType

    Source§

    impl Sync for VariantType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl<'a, 'b> PartialEq<&'a VariantTy> for VariantType

    Source§

    fn eq(&self, other: &&'a VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<&'a str> for VariantType

    Source§

    fn eq(&self, other: &&'a str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<Cow<'a, VariantTy>> for VariantType

    Source§

    fn eq(&self, other: &Cow<'a, VariantTy>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<String> for VariantType

    Source§

    fn eq(&self, other: &String) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantTy> for VariantType

    Source§

    fn eq(&self, other: &VariantTy) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for &'a VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for &'a str

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for Cow<'a, VariantTy>

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for String

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for VariantTy

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<VariantType> for str

    Source§

    fn eq(&self, other: &VariantType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<'a, 'b> PartialEq<str> for VariantType

    Source§

    fn eq(&self, other: &str) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialEq for VariantType

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl StaticType for VariantType

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl Eq for VariantType

    Source§

    impl Send for VariantType

    Source§

    impl Sync for VariantType

    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> CloneToUninit for T
    where @@ -370,8 +593,8 @@
    §Panics
    P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/subclass/object/index.html b/git/docs/glib/subclass/object/index.html index d672f8e7c2a6..9b6fd95fa713 100644 --- a/git/docs/glib/subclass/object/index.html +++ b/git/docs/glib/subclass/object/index.html @@ -71,7 +71,7 @@ -
    glib::subclass

    Module object

    Source
    Expand description

    Module that contains all types needed for creating a direct subclass of GObject +

    glib::subclass

    Module object

    Source
    Expand description

    Module that contains all types needed for creating a direct subclass of GObject or implementing virtual methods of it.

    Traits§

    Provided Methods§

    Source

    fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
    where + F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/subclass/object/trait.ObjectImpl.html b/git/docs/glib/subclass/object/trait.ObjectImpl.html index 62b94471dfca..1b96eda87d01 100644 --- a/git/docs/glib/subclass/object/trait.ObjectImpl.html +++ b/git/docs/glib/subclass/object/trait.ObjectImpl.html @@ -71,7 +71,7 @@ -
    glib::subclass::object

    Trait ObjectImpl

    Source
    pub trait ObjectImpl: ObjectSubclass<Type: IsA<Object>> {
    +
    glib::subclass::object

    Trait ObjectImpl

    Source
    pub trait ObjectImpl: ObjectSubclass<Type: IsA<Object>> {
         // Provided methods
         fn properties() -> &'static [ParamSpec] { ... }
         fn signals() -> &'static [Signal] { ... }
    @@ -101,9 +101,14 @@
     

    The returned Value must be of the correct type for the given property. the generic getter for all properties of this type. Should be overridden for every type with properties.

    -

    Source

    fn constructed(&self)

    Constructed.

    +
    Source

    fn constructed(&self)

    Constructed.

    This is called once construction of the instance is finished.

    Should chain up to the parent class’ implementation. +FILE_AND_ARGV_ZERO –> +the first element of argv is the file to +execute, while the remaining elements are the actual argument vector +to pass to the file. Normally g_spawn_async_with_pipes() uses argv[0] +as the file to execute, and passes all of argv to the child. the constructed function is called by Object::new() as the final step of the object creation process. At the point of the call, all construction properties have been set on the object. The purpose of this @@ -111,7 +116,7 @@ after construction properties have been set. constructed implementors should chain up to the constructed call of their parent class to allow it to complete its initialisation.

    -
    Source

    fn dispose(&self)

    Disposes of the object.

    +
    Source

    fn dispose(&self)

    Disposes of the object.

    When dispose() ends, the object should not hold any reference to any other member object. The object is also expected to be able to answer client method invocations (with possibly an error code but no memory violation) until it is dropped. dispose() can be executed more @@ -121,7 +126,7 @@ invocations still work. It may be run multiple times (due to reference loops). Before returning, dispose should chain up to the dispose method of the parent class.

    -
    Source

    fn notify(&self, pspec: &ParamSpec)

    Function to be called when property change is notified for with +

    Source

    fn notify(&self, pspec: &ParamSpec)

    Function to be called when property change is notified for with self.notify("property"). Emits a “notify” signal for the property property_name on self.

    When possible, eg. when signaling a property change from within the class @@ -131,7 +136,7 @@ ObjectExt::freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when [ObjectExt::thaw_notify()][crate::prelude::ObjectExt::thaw_notify()] is called.

    -
    Source

    fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

    emits property change notification for a bunch +

    Source

    fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])

    emits property change notification for a bunch of properties. Overriding dispatch_properties_changed should be rarely needed.

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/subclass/object/trait.ObjectImplExt.html b/git/docs/glib/subclass/object/trait.ObjectImplExt.html index a15fad5e1629..b484bac565e1 100644 --- a/git/docs/glib/subclass/object/trait.ObjectImplExt.html +++ b/git/docs/glib/subclass/object/trait.ObjectImplExt.html @@ -71,7 +71,7 @@ -
    glib::subclass::object

    Trait ObjectImplExt

    Source
    pub trait ObjectImplExt: ObjectImpl {
    +
    glib::subclass::object

    Trait ObjectImplExt

    Source
    pub trait ObjectImplExt: ObjectImpl {
         // Provided methods
         fn parent_constructed(&self) { ... }
         fn parent_notify(&self, pspec: &ParamSpec) { ... }
    @@ -81,12 +81,12 @@
             token: &SignalClassHandlerToken,
             values: &[Value],
         ) -> Option<Value> { ... }
    -}

    Provided Methods§

    Source

    fn parent_constructed(&self)

    Chain up to the parent class’ implementation of glib::Object::constructed().

    -
    Source

    fn parent_notify(&self, pspec: &ParamSpec)

    Chain up to the parent class’ implementation of glib::Object::notify().

    -
    Source

    fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])

    Chain up to the parent class’ implementation of glib::Object::dispatch_properties_changed().

    -
    Source

    fn signal_chain_from_overridden( +}

    Provided Methods§

    Source

    fn parent_constructed(&self)

    Chain up to the parent class’ implementation of glib::Object::constructed().

    +
    Source

    fn parent_notify(&self, pspec: &ParamSpec)

    Chain up to the parent class’ implementation of glib::Object::notify().

    +
    Source

    fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])

    Chain up to the parent class’ implementation of glib::Object::dispatch_properties_changed().

    +
    Source

    fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>

    Chain up to parent class signal handler.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/subclass/types/trait.IsSubclassable.html b/git/docs/glib/subclass/types/trait.IsSubclassable.html index 1a5690ab8fad..3c4e79908e55 100644 --- a/git/docs/glib/subclass/types/trait.IsSubclassable.html +++ b/git/docs/glib/subclass/types/trait.IsSubclassable.html @@ -83,4 +83,4 @@
    Source

    fn instance_init(instance: &mut InitializingObject<T>)

    Instance specific initialization.

    This is automatically called during instance initialization and must call instance_init() of the parent class.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/trait.HasParamSpec.html b/git/docs/glib/trait.HasParamSpec.html index e68e377d346d..67102b4de8ca 100644 --- a/git/docs/glib/trait.HasParamSpec.html +++ b/git/docs/glib/trait.HasParamSpec.html @@ -79,4 +79,4 @@ // Required method fn param_spec_builder() -> Self::BuilderFn; }

    Required Associated Types§

    Source

    type ParamSpec

    Source

    type SetValue: ?Sized

    Preferred value to be used as setter for the associated ParamSpec.

    -
    Source

    type BuilderFn

    Required Methods§

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl HasParamSpec for bool

    Source§

    impl HasParamSpec for char

    Source§

    impl HasParamSpec for f32

    Source§

    impl HasParamSpec for f64

    Source§

    impl HasParamSpec for i8

    Source§

    impl HasParamSpec for i32

    Source§

    impl HasParamSpec for i64

    Source§

    impl HasParamSpec for str

    Source§

    impl HasParamSpec for u8

    Source§

    impl HasParamSpec for u32

    Source§

    impl HasParamSpec for u64

    Source§

    impl HasParamSpec for Box<str>

    Source§

    impl HasParamSpec for String

    Source§

    impl HasParamSpec for Vec<String>

    Source§

    impl HasParamSpec for Path

    Source§

    impl HasParamSpec for PathBuf

    Source§

    impl HasParamSpec for NonZeroI8

    Source§

    impl HasParamSpec for NonZeroI32

    Source§

    impl HasParamSpec for NonZeroI64

    Source§

    impl HasParamSpec for NonZeroU8

    Source§

    impl HasParamSpec for NonZeroU32

    Source§

    impl HasParamSpec for NonZeroU64

    Source§

    impl<T: HasParamSpec + ?Sized> HasParamSpec for &T

    Source§

    impl<T: ToValueOptional + HasParamSpec> HasParamSpec for Option<T>

    Implementors§

    Source§

    impl HasParamSpec for NormalizeMode

    Source§

    impl HasParamSpec for UnicodeBreakType

    Source§

    impl HasParamSpec for UnicodeScript

    Source§

    impl HasParamSpec for UnicodeType

    Source§

    impl HasParamSpec for Closure

    Source§

    impl HasParamSpec for StrV

    Source§

    impl HasParamSpec for Error

    Source§

    impl HasParamSpec for MatchInfo<'static>

    Source§

    impl HasParamSpec for InitiallyUnowned

    Source§

    impl HasParamSpec for Object

    Source§

    impl HasParamSpec for Binding

    Source§

    impl HasParamSpec for BindingFlags

    Source§

    impl HasParamSpec for BindingGroup

    Available on crate feature v2_72 only.
    Source§

    impl HasParamSpec for BoxedAnyObject

    Source§

    impl HasParamSpec for ByteArray

    Source§

    impl HasParamSpec for Bytes

    Source§

    impl HasParamSpec for Checksum

    Source§

    impl HasParamSpec for Date

    Source§

    impl HasParamSpec for DateTime

    Source§

    impl HasParamSpec for GString

    Source§

    impl HasParamSpec for GStringBuilder

    Source§

    impl HasParamSpec for IOCondition

    Source§

    impl HasParamSpec for KeyFile

    Source§

    impl HasParamSpec for MainContext

    Source§

    impl HasParamSpec for MainLoop

    Source§

    impl HasParamSpec for MarkupParseContext

    Source§

    impl HasParamSpec for Regex

    Source§

    impl HasParamSpec for SignalGroup

    Available on crate feature v2_74 only.
    Source§

    impl HasParamSpec for Source

    Source§

    impl HasParamSpec for TimeZone

    Source§

    impl HasParamSpec for TypeModule

    Source§

    impl HasParamSpec for TypePlugin

    Source§

    impl HasParamSpec for Uri

    Available on crate feature v2_66 only.
    Source§

    impl HasParamSpec for ValueArray

    Source§

    impl HasParamSpec for VariantDict

    Source§

    impl HasParamSpec for Variant

    \ No newline at end of file +
    Source

    type BuilderFn

    Required Methods§

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl HasParamSpec for bool

    Source§

    impl HasParamSpec for char

    Source§

    impl HasParamSpec for f32

    Source§

    impl HasParamSpec for f64

    Source§

    impl HasParamSpec for i8

    Source§

    impl HasParamSpec for i32

    Source§

    impl HasParamSpec for i64

    Source§

    impl HasParamSpec for str

    Source§

    impl HasParamSpec for u8

    Source§

    impl HasParamSpec for u32

    Source§

    impl HasParamSpec for u64

    Source§

    impl HasParamSpec for Box<str>

    Source§

    impl HasParamSpec for String

    Source§

    impl HasParamSpec for Vec<String>

    Source§

    impl HasParamSpec for Path

    Source§

    impl HasParamSpec for PathBuf

    Source§

    impl HasParamSpec for NonZeroI8

    Source§

    impl HasParamSpec for NonZeroI32

    Source§

    impl HasParamSpec for NonZeroI64

    Source§

    impl HasParamSpec for NonZeroU8

    Source§

    impl HasParamSpec for NonZeroU32

    Source§

    impl HasParamSpec for NonZeroU64

    Source§

    impl<T: HasParamSpec + ?Sized> HasParamSpec for &T

    Source§

    impl<T: ToValueOptional + HasParamSpec> HasParamSpec for Option<T>

    Implementors§

    Source§

    impl HasParamSpec for NormalizeMode

    Source§

    impl HasParamSpec for UnicodeBreakType

    Source§

    impl HasParamSpec for UnicodeScript

    Source§

    impl HasParamSpec for UnicodeType

    Source§

    impl HasParamSpec for Closure

    Source§

    impl HasParamSpec for StrV

    Source§

    impl HasParamSpec for Error

    Source§

    impl HasParamSpec for MatchInfo<'static>

    Source§

    impl HasParamSpec for InitiallyUnowned

    Source§

    impl HasParamSpec for Object

    Source§

    impl HasParamSpec for Binding

    Source§

    impl HasParamSpec for BindingFlags

    Source§

    impl HasParamSpec for BindingGroup

    Available on crate feature v2_72 only.
    Source§

    impl HasParamSpec for BoxedAnyObject

    Source§

    impl HasParamSpec for ByteArray

    Source§

    impl HasParamSpec for Bytes

    Source§

    impl HasParamSpec for Checksum

    Source§

    impl HasParamSpec for Date

    Source§

    impl HasParamSpec for DateTime

    Source§

    impl HasParamSpec for GString

    Source§

    impl HasParamSpec for GStringBuilder

    Source§

    impl HasParamSpec for IOCondition

    Source§

    impl HasParamSpec for KeyFile

    Source§

    impl HasParamSpec for MainContext

    Source§

    impl HasParamSpec for MainLoop

    Source§

    impl HasParamSpec for MarkupParseContext

    Source§

    impl HasParamSpec for Regex

    Source§

    impl HasParamSpec for SignalGroup

    Available on crate feature v2_74 only.
    Source§

    impl HasParamSpec for Source

    Source§

    impl HasParamSpec for TimeZone

    Source§

    impl HasParamSpec for TypeModule

    Source§

    impl HasParamSpec for TypePlugin

    Source§

    impl HasParamSpec for Uri

    Available on crate feature v2_66 only.
    Source§

    impl HasParamSpec for ValueArray

    Source§

    impl HasParamSpec for VariantDict

    Source§

    impl HasParamSpec for Variant

    \ No newline at end of file diff --git a/git/docs/glib/translate/trait.UnsafeFrom.html b/git/docs/glib/translate/trait.UnsafeFrom.html index 43fa392da869..f8945349ce3c 100644 --- a/git/docs/glib/translate/trait.UnsafeFrom.html +++ b/git/docs/glib/translate/trait.UnsafeFrom.html @@ -80,4 +80,4 @@ the T hold before this is called, and that after conversion to assume nothing other than the invariants of the output. Implementors of this must ensure that the invariants of the output type hold.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl UnsafeFrom<u32> for char

    Source§

    unsafe fn unsafe_from(t: u32) -> Self

    Implementors§

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl UnsafeFrom<u32> for char

    Source§

    unsafe fn unsafe_from(t: u32) -> Self

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/types/struct.ILong.html b/git/docs/glib/types/struct.ILong.html index 8085bc7e65d4..b975c46ef431 100644 --- a/git/docs/glib/types/struct.ILong.html +++ b/git/docs/glib/types/struct.ILong.html @@ -71,7 +71,7 @@ -
    glib::types

    Struct ILong

    Source
    pub struct ILong(pub c_long);

    Tuple Fields§

    §0: c_long

    Trait Implementations§

    Source§

    impl Clone for ILong

    Source§

    fn clone(&self) -> ILong

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ILong

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ILong

    Source§

    type Target = i64

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for ILong

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<ILong> for Value

    Source§

    fn from(v: ILong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ILong> for c_long

    Source§

    fn from(v: ILong) -> c_long

    Converts to this type from the input type.
    Source§

    impl From<i64> for ILong

    Source§

    fn from(v: c_long) -> ILong

    Converts to this type from the input type.
    Source§

    impl<'a> FromValue<'a> for ILong

    Source§

    type Checker = GenericValueTypeChecker<ILong>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl Hash for ILong

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +
    glib::types

    Struct ILong

    Source
    pub struct ILong(pub c_long);

    Tuple Fields§

    §0: c_long

    Trait Implementations§

    Source§

    impl Clone for ILong

    Source§

    fn clone(&self) -> ILong

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ILong

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ILong

    Source§

    type Target = i64

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for ILong

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<ILong> for Value

    Source§

    fn from(v: ILong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ILong> for c_long

    Source§

    fn from(v: ILong) -> c_long

    Converts to this type from the input type.
    Source§

    impl From<i64> for ILong

    Source§

    fn from(v: c_long) -> ILong

    Converts to this type from the input type.
    Source§

    impl<'a> FromValue<'a> for ILong

    Source§

    type Checker = GenericValueTypeChecker<ILong>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl Hash for ILong

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for ILong

    Source§

    fn cmp(&self, other: &ILong) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where @@ -88,7 +88,7 @@ the >= operator. Read more

    Source§

    impl PartialOrd for ILong

    Source§

    fn partial_cmp(&self, other: &ILong) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

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

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

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

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

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

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for ILong

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for ILong

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ValueType for ILong

    Source§

    type Type = ILong

    Type to get the Type from. Read more
    Source§

    impl Copy for ILong

    Source§

    impl Eq for ILong

    Source§

    impl StructuralPartialEq for ILong

    Auto Trait Implementations§

    §

    impl Freeze for ILong

    §

    impl RefUnwindSafe for ILong

    §

    impl Send for ILong

    §

    impl Sync for ILong

    §

    impl Unpin for ILong

    §

    impl UnwindSafe for ILong

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for ILong

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for ILong

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ValueType for ILong

    Source§

    type Type = ILong

    Type to get the Type from. Read more
    Source§

    impl Copy for ILong

    Source§

    impl Eq for ILong

    Source§

    impl StructuralPartialEq for ILong

    Auto Trait Implementations§

    §

    impl Freeze for ILong

    §

    impl RefUnwindSafe for ILong

    §

    impl Send for ILong

    §

    impl Sync for ILong

    §

    impl Unpin for ILong

    §

    impl UnwindSafe for ILong

    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> CloneToUninit for T
    where @@ -102,8 +102,8 @@ P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

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

    Source§

    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.
    \ No newline at end of file diff --git a/git/docs/glib/types/struct.Type.html b/git/docs/glib/types/struct.Type.html index 1d0d9e5b63e9..e81c0399855f 100644 --- a/git/docs/glib/types/struct.Type.html +++ b/git/docs/glib/types/struct.Type.html @@ -125,8 +125,8 @@
    Source§

    impl<T> IntoClosureReturnValue for T
    where T: Into<Value>,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    Source§

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

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where diff --git a/git/docs/glib/types/struct.ULong.html b/git/docs/glib/types/struct.ULong.html index 8c44ef576d9e..3f1ed64498f7 100644 --- a/git/docs/glib/types/struct.ULong.html +++ b/git/docs/glib/types/struct.ULong.html @@ -71,7 +71,7 @@ -
    glib::types

    Struct ULong

    Source
    pub struct ULong(pub c_ulong);

    Tuple Fields§

    §0: c_ulong

    Trait Implementations§

    Source§

    impl Clone for ULong

    Source§

    fn clone(&self) -> ULong

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ULong

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ULong

    Source§

    type Target = u64

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for ULong

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<ULong> for Value

    Source§

    fn from(v: ULong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ULong> for c_ulong

    Source§

    fn from(v: ULong) -> c_ulong

    Converts to this type from the input type.
    Source§

    impl From<u64> for ULong

    Source§

    fn from(v: c_ulong) -> ULong

    Converts to this type from the input type.
    Source§

    impl<'a> FromValue<'a> for ULong

    Source§

    type Checker = GenericValueTypeChecker<ULong>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl Hash for ULong

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +
    glib::types

    Struct ULong

    Source
    pub struct ULong(pub c_ulong);

    Tuple Fields§

    §0: c_ulong

    Trait Implementations§

    Source§

    impl Clone for ULong

    Source§

    fn clone(&self) -> ULong

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ULong

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ULong

    Source§

    type Target = u64

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl DerefMut for ULong

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl From<ULong> for Value

    Source§

    fn from(v: ULong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ULong> for c_ulong

    Source§

    fn from(v: ULong) -> c_ulong

    Converts to this type from the input type.
    Source§

    impl From<u64> for ULong

    Source§

    fn from(v: c_ulong) -> ULong

    Converts to this type from the input type.
    Source§

    impl<'a> FromValue<'a> for ULong

    Source§

    type Checker = GenericValueTypeChecker<ULong>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl Hash for ULong

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for ULong

    Source§

    fn cmp(&self, other: &ULong) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where @@ -88,7 +88,7 @@ the >= operator. Read more

    Source§

    impl PartialOrd for ULong

    Source§

    fn partial_cmp(&self, other: &ULong) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

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

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for ULong

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for ULong

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ValueType for ULong

    Source§

    type Type = ULong

    Type to get the Type from. Read more
    Source§

    impl Copy for ULong

    Source§

    impl Eq for ULong

    Source§

    impl StructuralPartialEq for ULong

    Auto Trait Implementations§

    §

    impl Freeze for ULong

    §

    impl RefUnwindSafe for ULong

    §

    impl Send for ULong

    §

    impl Sync for ULong

    §

    impl Unpin for ULong

    §

    impl UnwindSafe for ULong

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for ULong

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for ULong

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ValueType for ULong

    Source§

    type Type = ULong

    Type to get the Type from. Read more
    Source§

    impl Copy for ULong

    Source§

    impl Eq for ULong

    Source§

    impl StructuralPartialEq for ULong

    Auto Trait Implementations§

    §

    impl Freeze for ULong

    §

    impl RefUnwindSafe for ULong

    §

    impl Send for ULong

    §

    impl Sync for ULong

    §

    impl Unpin for ULong

    §

    impl UnwindSafe for ULong

    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> CloneToUninit for T
    where @@ -102,8 +102,8 @@ P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    \ No newline at end of file diff --git a/git/docs/glib/types/trait.StaticType.html b/git/docs/glib/types/trait.StaticType.html index e84622bfcebd..10a8808c36f5 100644 --- a/git/docs/glib/types/trait.StaticType.html +++ b/git/docs/glib/types/trait.StaticType.html @@ -76,4 +76,4 @@ fn static_type() -> Type; }
    Expand description

    Types that are supported by GLib dynamic typing.

    Required Methods§

    Source

    fn static_type() -> Type

    Returns the type identifier of Self.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl StaticType for &[GStringPtr]

    Source§

    impl StaticType for bool

    Source§

    impl StaticType for f32

    Source§

    impl StaticType for f64

    Source§

    impl StaticType for i8

    Source§

    impl StaticType for i32

    Source§

    impl StaticType for i64

    Source§

    impl StaticType for str

    Source§

    impl StaticType for u8

    Source§

    impl StaticType for u32

    Source§

    impl StaticType for u64

    Source§

    impl StaticType for ()

    Source§

    impl StaticType for Box<str>

    Source§

    impl StaticType for String

    Source§

    impl StaticType for Vec<GString>

    Source§

    impl StaticType for Vec<String>

    Source§

    impl StaticType for NonNull<Pointee>

    Source§

    impl StaticType for Path

    Source§

    impl StaticType for PathBuf

    Source§

    impl StaticType for NonZeroI8

    Source§

    impl StaticType for NonZeroI32

    Source§

    impl StaticType for NonZeroI64

    Source§

    impl StaticType for NonZeroU8

    Source§

    impl StaticType for NonZeroU32

    Source§

    impl StaticType for NonZeroU64

    Source§

    impl StaticType for [&str]

    Source§

    impl<T: ToValueOptional + StaticType> StaticType for Option<T>

    Source§

    impl<T: ?Sized + StaticType> StaticType for &T

    Source§

    impl<T: ?Sized + StaticType> StaticType for &mut T

    Implementors§

    Source§

    impl StaticType for NormalizeMode

    Source§

    impl StaticType for UnicodeBreakType

    Source§

    impl StaticType for UnicodeScript

    Source§

    impl StaticType for UnicodeType

    Source§

    impl StaticType for Closure

    Source§

    impl StaticType for StrV

    Source§

    impl StaticType for Error

    Source§

    impl StaticType for MatchInfo<'_>

    Source§

    impl StaticType for InitiallyUnowned

    Source§

    impl StaticType for Object

    Source§

    impl StaticType for Binding

    Source§

    impl StaticType for BindingFlags

    Source§

    impl StaticType for BindingGroup

    Available on crate feature v2_72 only.
    Source§

    impl StaticType for BoxedAnyObject

    Source§

    impl StaticType for ByteArray

    Source§

    impl StaticType for Bytes

    Source§

    impl StaticType for Checksum

    Source§

    impl StaticType for Date

    Source§

    impl StaticType for DateTime

    Source§

    impl StaticType for GStr

    Source§

    impl StaticType for GString

    Source§

    impl StaticType for GStringBuilder

    Source§

    impl StaticType for IOCondition

    Source§

    impl StaticType for KeyFile

    Source§

    impl StaticType for MainContext

    Source§

    impl StaticType for MainLoop

    Source§

    impl StaticType for MarkupParseContext

    Source§

    impl StaticType for ParamSpec

    Source§

    impl StaticType for ParamSpecBoolean

    Source§

    impl StaticType for ParamSpecBoxed

    Source§

    impl StaticType for ParamSpecChar

    Source§

    impl StaticType for ParamSpecDouble

    Source§

    impl StaticType for ParamSpecEnum

    Source§

    impl StaticType for ParamSpecFlags

    Source§

    impl StaticType for ParamSpecFloat

    Source§

    impl StaticType for ParamSpecGType

    Source§

    impl StaticType for ParamSpecInt64

    Source§

    impl StaticType for ParamSpecInt

    Source§

    impl StaticType for ParamSpecLong

    Source§

    impl StaticType for ParamSpecObject

    Source§

    impl StaticType for ParamSpecOverride

    Source§

    impl StaticType for ParamSpecParam

    Source§

    impl StaticType for ParamSpecPointer

    Source§

    impl StaticType for ParamSpecString

    Source§

    impl StaticType for ParamSpecUChar

    Source§

    impl StaticType for ParamSpecUInt64

    Source§

    impl StaticType for ParamSpecUInt

    Source§

    impl StaticType for ParamSpecULong

    Source§

    impl StaticType for ParamSpecUnichar

    Source§

    impl StaticType for ParamSpecValueArray

    Source§

    impl StaticType for ParamSpecVariant

    Source§

    impl StaticType for Regex

    Source§

    impl StaticType for SignalGroup

    Available on crate feature v2_74 only.
    Source§

    impl StaticType for Source

    Source§

    impl StaticType for TimeZone

    Source§

    impl StaticType for TypeModule

    Source§

    impl StaticType for TypePlugin

    Source§

    impl StaticType for Uri

    Available on crate feature v2_66 only.
    Source§

    impl StaticType for ValueArray

    Source§

    impl StaticType for VariantDict

    Source§

    impl StaticType for VariantTy

    Source§

    impl StaticType for VariantType

    Source§

    impl StaticType for BoxedValue

    Source§

    impl StaticType for Variant

    Source§

    impl StaticType for ILong

    Source§

    impl StaticType for Type

    Source§

    impl StaticType for ULong

    Source§

    impl StaticType for Pointer

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl StaticType for &[GStringPtr]

    Source§

    impl StaticType for bool

    Source§

    impl StaticType for f32

    Source§

    impl StaticType for f64

    Source§

    impl StaticType for i8

    Source§

    impl StaticType for i32

    Source§

    impl StaticType for i64

    Source§

    impl StaticType for str

    Source§

    impl StaticType for u8

    Source§

    impl StaticType for u32

    Source§

    impl StaticType for u64

    Source§

    impl StaticType for ()

    Source§

    impl StaticType for Box<str>

    Source§

    impl StaticType for String

    Source§

    impl StaticType for Vec<GString>

    Source§

    impl StaticType for Vec<String>

    Source§

    impl StaticType for NonNull<Pointee>

    Source§

    impl StaticType for Path

    Source§

    impl StaticType for PathBuf

    Source§

    impl StaticType for NonZeroI8

    Source§

    impl StaticType for NonZeroI32

    Source§

    impl StaticType for NonZeroI64

    Source§

    impl StaticType for NonZeroU8

    Source§

    impl StaticType for NonZeroU32

    Source§

    impl StaticType for NonZeroU64

    Source§

    impl StaticType for [&str]

    Source§

    impl<T: ToValueOptional + StaticType> StaticType for Option<T>

    Source§

    impl<T: ?Sized + StaticType> StaticType for &T

    Source§

    impl<T: ?Sized + StaticType> StaticType for &mut T

    Implementors§

    Source§

    impl StaticType for NormalizeMode

    Source§

    impl StaticType for UnicodeBreakType

    Source§

    impl StaticType for UnicodeScript

    Source§

    impl StaticType for UnicodeType

    Source§

    impl StaticType for Closure

    Source§

    impl StaticType for StrV

    Source§

    impl StaticType for Error

    Source§

    impl StaticType for MatchInfo<'_>

    Source§

    impl StaticType for InitiallyUnowned

    Source§

    impl StaticType for Object

    Source§

    impl StaticType for Binding

    Source§

    impl StaticType for BindingFlags

    Source§

    impl StaticType for BindingGroup

    Available on crate feature v2_72 only.
    Source§

    impl StaticType for BoxedAnyObject

    Source§

    impl StaticType for ByteArray

    Source§

    impl StaticType for Bytes

    Source§

    impl StaticType for Checksum

    Source§

    impl StaticType for Date

    Source§

    impl StaticType for DateTime

    Source§

    impl StaticType for GStr

    Source§

    impl StaticType for GString

    Source§

    impl StaticType for GStringBuilder

    Source§

    impl StaticType for IOCondition

    Source§

    impl StaticType for KeyFile

    Source§

    impl StaticType for MainContext

    Source§

    impl StaticType for MainLoop

    Source§

    impl StaticType for MarkupParseContext

    Source§

    impl StaticType for ParamSpec

    Source§

    impl StaticType for ParamSpecBoolean

    Source§

    impl StaticType for ParamSpecBoxed

    Source§

    impl StaticType for ParamSpecChar

    Source§

    impl StaticType for ParamSpecDouble

    Source§

    impl StaticType for ParamSpecEnum

    Source§

    impl StaticType for ParamSpecFlags

    Source§

    impl StaticType for ParamSpecFloat

    Source§

    impl StaticType for ParamSpecGType

    Source§

    impl StaticType for ParamSpecInt64

    Source§

    impl StaticType for ParamSpecInt

    Source§

    impl StaticType for ParamSpecLong

    Source§

    impl StaticType for ParamSpecObject

    Source§

    impl StaticType for ParamSpecOverride

    Source§

    impl StaticType for ParamSpecParam

    Source§

    impl StaticType for ParamSpecPointer

    Source§

    impl StaticType for ParamSpecString

    Source§

    impl StaticType for ParamSpecUChar

    Source§

    impl StaticType for ParamSpecUInt64

    Source§

    impl StaticType for ParamSpecUInt

    Source§

    impl StaticType for ParamSpecULong

    Source§

    impl StaticType for ParamSpecUnichar

    Source§

    impl StaticType for ParamSpecValueArray

    Source§

    impl StaticType for ParamSpecVariant

    Source§

    impl StaticType for Regex

    Source§

    impl StaticType for SignalGroup

    Available on crate feature v2_74 only.
    Source§

    impl StaticType for Source

    Source§

    impl StaticType for TimeZone

    Source§

    impl StaticType for TypeModule

    Source§

    impl StaticType for TypePlugin

    Source§

    impl StaticType for Uri

    Available on crate feature v2_66 only.
    Source§

    impl StaticType for ValueArray

    Source§

    impl StaticType for VariantDict

    Source§

    impl StaticType for VariantTy

    Source§

    impl StaticType for VariantType

    Source§

    impl StaticType for BoxedValue

    Source§

    impl StaticType for Variant

    Source§

    impl StaticType for ILong

    Source§

    impl StaticType for Type

    Source§

    impl StaticType for ULong

    Source§

    impl StaticType for Pointer

    \ No newline at end of file diff --git a/git/docs/glib/types/type.Pointer.html b/git/docs/glib/types/type.Pointer.html index 4183e763fe1c..540d5406ee7d 100644 --- a/git/docs/glib/types/type.Pointer.html +++ b/git/docs/glib/types/type.Pointer.html @@ -73,4 +73,4 @@
    glib::types

    Type Alias Pointer

    Source
    pub type Pointer = gpointer;
    Expand description

    A GLib pointer

    A raw untyped pointer equivalent to *mut Pointee.

    -

    Trait Implementations§

    Source§

    impl<'a> FromValue<'a> for Pointer

    Source§

    type Checker = GenericValueTypeChecker<*mut c_void>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl StaticType for Pointer

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for Pointer

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ValueType for Pointer

    Source§

    type Type = *mut c_void

    Type to get the Type from. Read more
    \ No newline at end of file +

    Trait Implementations§

    Source§

    impl<'a> FromValue<'a> for Pointer

    Source§

    type Checker = GenericValueTypeChecker<*mut c_void>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl StaticType for Pointer

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for Pointer

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ValueType for Pointer

    Source§

    type Type = *mut c_void

    Type to get the Type from. Read more
    \ No newline at end of file diff --git a/git/docs/glib/value/index.html b/git/docs/glib/value/index.html index 81e7ae44e8fa..0a8fd7ea3673 100644 --- a/git/docs/glib/value/index.html +++ b/git/docs/glib/value/index.html @@ -71,7 +71,7 @@ -
    glib

    Module value

    Source
    Expand description

    Value binding and helper traits.

    +
    glib

    Module value

    Source
    Expand description

    Value binding and helper traits.

    The type of a Value is dynamic in that it generally isn’t known at compile time but once created a Value can’t change its type.

    diff --git a/git/docs/glib/value/struct.BoxedValue.html b/git/docs/glib/value/struct.BoxedValue.html index 806e7ac12c2e..b7b1db2884c9 100644 --- a/git/docs/glib/value/struct.BoxedValue.html +++ b/git/docs/glib/value/struct.BoxedValue.html @@ -71,7 +71,7 @@ -
    glib::value

    Struct BoxedValue

    Source
    pub struct BoxedValue(pub Value);
    Expand description

    A Value containing another Value.

    +
    glib::value

    Struct BoxedValue

    Source
    pub struct BoxedValue(pub Value);
    Expand description

    A Value containing another Value.

    Tuple Fields§

    §0: Value

    Methods from Deref<Target = Value>§

    Source

    pub fn as_ptr(&self) -> *mut GValue

    Source

    pub fn get<'a, T>( &'a self, ) -> Result<T, <<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>
    where @@ -86,7 +86,7 @@

    Source

    pub fn is_type(&self, type_: Type) -> bool

    Returns true if the type of the value corresponds to type_ or is a sub-type of type_.

    Source

    pub fn type_(&self) -> Type

    Returns the type of the value.

    -
    Source

    pub fn transform<T: ValueType>(&self) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type +

    Source

    pub fn transform<T: ValueType>(&self) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type Tries to cast the contents of self into a type appropriate to store in dest_value, e.g. to transform a G_TYPE_INT value into a G_TYPE_FLOAT value. Performing transformations between @@ -99,8 +99,8 @@

    §dest_va
    §Returns

    Whether a transformation rule was found and could be applied. Upon failing transformations, dest_value is left untouched.

    -
    Source

    pub fn transform_with_type(&self, type_: Type) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type

    -

    Trait Implementations§

    Source§

    impl Deref for BoxedValue

    Source§

    type Target = Value

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Value

    Dereferences the value.
    Source§

    impl From<BoxedValue> for Value

    Source§

    fn from(v: BoxedValue) -> Self

    Converts to this type from the input type.
    Source§

    impl<'a> FromValue<'a> for BoxedValue

    Source§

    type Checker = GenericValueTypeOrNoneChecker<BoxedValue>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl StaticType for BoxedValue

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for BoxedValue

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ToValueOptional for BoxedValue

    Source§

    fn to_value_optional(s: Option<&Self>) -> Value

    Convert an Option to a Value.
    Source§

    impl ValueType for BoxedValue

    Source§

    type Type = BoxedValue

    Type to get the Type from. Read more
    Source§

    impl ValueTypeOptional for BoxedValue

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source

    pub fn transform_with_type(&self, type_: Type) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type

    +

    Trait Implementations§

    Source§

    impl Deref for BoxedValue

    Source§

    type Target = Value

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Value

    Dereferences the value.
    Source§

    impl From<BoxedValue> for Value

    Source§

    fn from(v: BoxedValue) -> Self

    Converts to this type from the input type.
    Source§

    impl<'a> FromValue<'a> for BoxedValue

    Source§

    type Checker = GenericValueTypeOrNoneChecker<BoxedValue>

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl StaticType for BoxedValue

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl ToValue for BoxedValue

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ToValueOptional for BoxedValue

    Source§

    fn to_value_optional(s: Option<&Self>) -> Value

    Convert an Option to a Value.
    Source§

    impl ValueType for BoxedValue

    Source§

    type Type = BoxedValue

    Type to get the Type from. Read more
    Source§

    impl ValueTypeOptional for BoxedValue

    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> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/git/docs/glib/value/struct.NopChecker.html b/git/docs/glib/value/struct.NopChecker.html index af14e0503321..ceeea32a6161 100644 --- a/git/docs/glib/value/struct.NopChecker.html +++ b/git/docs/glib/value/struct.NopChecker.html @@ -71,7 +71,7 @@ -
    glib::value

    Struct NopChecker

    Source
    pub struct NopChecker;

    Trait Implementations§

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +
    glib::value

    Struct NopChecker

    Source
    pub struct NopChecker;

    Trait Implementations§

    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> From<T> for T

    Source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/git/docs/glib/value/struct.SendValue.html b/git/docs/glib/value/struct.SendValue.html index f0531bfa5e7b..cc0d7a8e4628 100644 --- a/git/docs/glib/value/struct.SendValue.html +++ b/git/docs/glib/value/struct.SendValue.html @@ -71,14 +71,14 @@ -
    glib::value

    Struct SendValue

    Source
    pub struct SendValue { /* private fields */ }
    Expand description

    A version of Value for storing Send types, that implements Send +

    glib::value

    Struct SendValue

    Source
    pub struct SendValue { /* private fields */ }
    Expand description

    A version of Value for storing Send types, that implements Send itself.

    See the module documentation for more details.

    GLib type: Inline allocated boxed type with stack copy semantics.

    -

    Implementations§

    Source§

    impl SendValue

    Source

    pub fn as_ptr(&self) -> *mut GValue

    Source

    pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GValue) -> &'a Self

    Borrows the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow_mut<'a>(ptr: *mut GValue) -> &'a mut Self

    Borrows the underlying C value mutably.

    -
    Source§

    impl SendValue

    Source

    pub fn into_raw(self) -> GValue

    Consumes SendValue and returns the corresponding GValue.

    -
    Source

    pub fn from_owned<T: Send + Into<Value>>(t: T) -> Self

    Methods from Deref<Target = Value>§

    Source

    pub fn as_ptr(&self) -> *mut GValue

    Source

    pub fn get<'a, T>( +

    Implementations§

    Source§

    impl SendValue

    Source

    pub fn as_ptr(&self) -> *mut GValue

    Source

    pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GValue) -> &'a Self

    Borrows the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow_mut<'a>(ptr: *mut GValue) -> &'a mut Self

    Borrows the underlying C value mutably.

    +
    Source§

    impl SendValue

    Source

    pub fn into_raw(self) -> GValue

    Consumes SendValue and returns the corresponding GValue.

    +
    Source

    pub fn from_owned<T: Send + Into<Value>>(t: T) -> Self

    Methods from Deref<Target = Value>§

    Source

    pub fn as_ptr(&self) -> *mut GValue

    Source

    pub fn get<'a, T>( &'a self, ) -> Result<T, <<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>
    where T: FromValue<'a>,

    Tries to get a value of type T.

    @@ -92,7 +92,7 @@
    Source

    pub fn is_type(&self, type_: Type) -> bool

    Returns true if the type of the value corresponds to type_ or is a sub-type of type_.

    Source

    pub fn type_(&self) -> Type

    Returns the type of the value.

    -
    Source

    pub fn transform<T: ValueType>(&self) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type +

    Source

    pub fn transform<T: ValueType>(&self) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type Tries to cast the contents of self into a type appropriate to store in dest_value, e.g. to transform a G_TYPE_INT value into a G_TYPE_FLOAT value. Performing transformations between @@ -105,9 +105,9 @@

    §dest_va
    §Returns

    Whether a transformation rule was found and could be applied. Upon failing transformations, dest_value is left untouched.

    -
    Source

    pub fn transform_with_type(&self, type_: Type) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type

    -

    Trait Implementations§

    Source§

    impl Clone for SendValue

    Source§

    fn clone(&self) -> Self

    Copies the inline boxed type by value with the type-specific copy function.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for SendValue

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for SendValue

    Source§

    type Target = Value

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Value

    Dereferences the value.
    Source§

    impl Drop for SendValue

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl<'a, T: ?Sized + ToSendValue> From<&'a T> for SendValue

    Source§

    fn from(value: &'a T) -> Self

    Converts to this type from the input type.
    Source§

    impl From<SendValue> for Value

    Source§

    fn from(value: SendValue) -> Self

    Converts to this type from the input type.
    Source§

    impl ToValue for &SendValue

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ToValue for SendValue

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl Send for SendValue

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Source

    pub fn transform_with_type(&self, type_: Type) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type

    +

    Trait Implementations§

    Source§

    impl Clone for SendValue

    Source§

    fn clone(&self) -> Self

    Copies the inline boxed type by value with the type-specific copy function.

    +
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for SendValue

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for SendValue

    Source§

    type Target = Value

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Value

    Dereferences the value.
    Source§

    impl Drop for SendValue

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl<'a, T: ?Sized + ToSendValue> From<&'a T> for SendValue

    Source§

    fn from(value: &'a T) -> Self

    Converts to this type from the input type.
    Source§

    impl From<SendValue> for Value

    Source§

    fn from(value: SendValue) -> Self

    Converts to this type from the input type.
    Source§

    impl ToValue for &SendValue

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ToValue for SendValue

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl Send for SendValue

    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> CloneToUninit for T
    where @@ -138,7 +138,7 @@
    §Returns
    T: Into<Value>,

    Source§

    impl<P, T> Receiver for P
    where P: Deref<Target = T> + ?Sized, T: ?Sized,

    Source§

    type Target = T

    🔬This is a nightly-only experimental API. (arbitrary_self_types)
    The target type on which the method may be called.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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>,

    Source§

    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.
    \ No newline at end of file diff --git a/git/docs/glib/value/struct.Value.html b/git/docs/glib/value/struct.Value.html index 5e831d6e0f07..dd70cff86349 100644 --- a/git/docs/glib/value/struct.Value.html +++ b/git/docs/glib/value/struct.Value.html @@ -89,7 +89,7 @@

    GLib type: Inline allocated boxed type with stack copy semantics.

    Implementations§

    Source§

    impl Value

    Source

    pub fn as_ptr(&self) -> *mut GValue

    Source

    pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GValue) -> &'a Self

    Borrows the underlying C value.

    Source

    pub unsafe fn from_glib_ptr_borrow_mut<'a>(ptr: *mut GValue) -> &'a mut Self

    Borrows the underlying C value mutably.

    -
    Source§

    impl Value

    Source

    pub fn from_type(type_: Type) -> Self

    Creates a new Value that is initialized with type_.

    +
    Source§

    impl Value

    Source

    pub fn from_type(type_: Type) -> Self

    Creates a new Value that is initialized with type_.

    §Panics

    If type_ can’t be stored in a Value this function panics.

    Source

    pub unsafe fn from_type_unchecked(type_: Type) -> Self

    Creates a new Value that is initialized with type_.

    @@ -113,7 +113,7 @@
    §SAFETY
    Source

    pub fn is_type(&self, type_: Type) -> bool

    Returns true if the type of the value corresponds to type_ or is a sub-type of type_.

    Source

    pub fn type_(&self) -> Type

    Returns the type of the value.

    -
    Source

    pub fn type_transformable(src: Type, dst: Type) -> bool

    Returns whether Values of type src can be transformed to type dst. +

    Source

    pub fn type_transformable(src: Type, dst: Type) -> bool

    Returns whether Values of type src can be transformed to type dst. Check whether transform() is able to transform values of type src_type into values of type dest_type. Note that for the types to be transformable, they must be compatible or a @@ -123,8 +123,13 @@

    §src_type§dest_type

    Target type.

    §Returns
    -

    true if the transformation is possible, false otherwise.

    -
    Source

    pub fn transform<T: ValueType>(&self) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type +

    true if the transformation is possible, false otherwise. +FILE_AND_ARGV_ZERO –> +the first element of argv is the file to +execute, while the remaining elements are the actual argument vector +to pass to the file. Normally g_spawn_async_with_pipes() uses argv[0] +as the file to execute, and passes all of argv to the child.

    +
    Source

    pub fn transform<T: ValueType>(&self) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type Tries to cast the contents of self into a type appropriate to store in dest_value, e.g. to transform a G_TYPE_INT value into a G_TYPE_FLOAT value. Performing transformations between @@ -137,17 +142,17 @@

    §dest_va
    §Returns

    Whether a transformation rule was found and could be applied. Upon failing transformations, dest_value is left untouched.

    -
    Source

    pub fn transform_with_type(&self, type_: Type) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type

    -
    Source

    pub fn into_raw(self) -> GValue

    Consumes Value and returns the corresponding GValue.

    -
    Source

    pub fn try_into_send_value<T: Send + StaticType>( +

    Source

    pub fn transform_with_type(&self, type_: Type) -> Result<Value, BoolError>

    Tries to transform the value into a value of the target type

    +
    Source

    pub fn into_raw(self) -> GValue

    Consumes Value and returns the corresponding GValue.

    +
    Source

    pub fn try_into_send_value<T: Send + StaticType>( self, ) -> Result<SendValue, Self>

    Converts a Value into a SendValue. This fails if self does not store a value of type T. It is required for T to be Send to call this function.

    -
    Source

    pub unsafe fn into_send_value(self) -> SendValue

    Converts a Value into a SendValue.

    +
    Source

    pub unsafe fn into_send_value(self) -> SendValue

    Converts a Value into a SendValue.

    §Safety

    The type of the value contained in self must be Send.

    Trait Implementations§

    Source§

    impl Clone for Value

    Source§

    fn clone(&self) -> Self

    Copies the inline boxed type by value with the type-specific copy function.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Value

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for Value

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl Extend<Value> for ValueArray

    Source§

    fn extend<T: IntoIterator<Item = Value>>(&mut self, iter: T)

    Extends a collection with the contents of an iterator. Read more
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl<'a, T: ?Sized + ToValue> From<&'a T> for Value

    Source§

    fn from(value: &'a T) -> Self

    Converts to this type from the input type.
    Source§

    impl From<*mut c_void> for Value

    Source§

    fn from(v: Pointer) -> Self

    Converts to this type from the input type.
    Source§

    impl From<BindingFlags> for Value

    Source§

    fn from(v: BindingFlags) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Box<str>> for Value

    Source§

    fn from(s: Box<str>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<BoxedValue> for Value

    Source§

    fn from(v: BoxedValue) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ByteArray> for Value

    Source§

    fn from(s: ByteArray) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Bytes> for Value

    Source§

    fn from(s: Bytes) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Checksum> for Value

    Source§

    fn from(o: Checksum) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Closure> for Value

    Source§

    fn from(s: Closure) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ControlFlow> for Value

    Source§

    fn from(v: ControlFlow) -> Self

    Converts to this type from the input type.
    Source§

    impl From<DateTime> for Value

    Source§

    fn from(s: DateTime) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for Value

    Source§

    fn from(o: Error) -> Self

    Converts to this type from the input type.
    Source§

    impl From<GString> for Value

    Source§

    fn from(s: GString) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ILong> for Value

    Source§

    fn from(v: ILong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<IOCondition> for Value

    Source§

    fn from(v: IOCondition) -> Self

    Converts to this type from the input type.
    Source§

    impl From<KeyFile> for Value

    Source§

    fn from(s: KeyFile) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MainContext> for Value

    Source§

    fn from(s: MainContext) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MainLoop> for Value

    Source§

    fn from(s: MainLoop) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MarkupParseContext> for Value

    Source§

    fn from(s: MarkupParseContext) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MatchInfo<'static>> for Value

    Source§

    fn from(s: MatchInfo<'static>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonNull<c_void>> for Value

    Source§

    fn from(v: NonNull<Pointee>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<i32>> for Value

    Source§

    fn from(v: NonZeroI32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<i64>> for Value

    Source§

    fn from(v: NonZeroI64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<i8>> for Value

    Source§

    fn from(v: NonZeroI8) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<u32>> for Value

    Source§

    fn from(v: NonZeroU32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<u64>> for Value

    Source§

    fn from(v: NonZeroU64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<u8>> for Value

    Source§

    fn from(v: NonZeroU8) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NormalizeMode> for Value

    Source§

    fn from(v: NormalizeMode) -> Self

    Converts to this type from the input type.
    Source§

    impl<T: Into<Value> + ToValueOptional> From<Option<T>> for Value

    Source§

    fn from(t: Option<T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<PathBuf> for Value

    Source§

    fn from(s: PathBuf) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Propagation> for Value

    Source§

    fn from(v: Propagation) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Regex> for Value

    Source§

    fn from(s: Regex) -> Self

    Converts to this type from the input type.
    Source§

    impl From<SendValue> for Value

    Source§

    fn from(value: SendValue) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Source> for Value

    Source§

    fn from(s: Source) -> Self

    Converts to this type from the input type.
    Source§

    impl From<StrV> for Value

    Source§

    fn from(s: StrV) -> Self

    Converts to this type from the input type.
    Source§

    impl From<String> for Value

    Source§

    fn from(s: String) -> Self

    Converts to this type from the input type.
    Source§

    impl From<TimeZone> for Value

    Source§

    fn from(s: TimeZone) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ULong> for Value

    Source§

    fn from(v: ULong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<UnicodeBreakType> for Value

    Source§

    fn from(v: UnicodeBreakType) -> Self

    Converts to this type from the input type.
    Source§

    impl From<UnicodeScript> for Value

    Source§

    fn from(v: UnicodeScript) -> Self

    Converts to this type from the input type.
    Source§

    impl From<UnicodeType> for Value

    Source§

    fn from(v: UnicodeType) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Uri> for Value

    Available on crate feature v2_66 only.
    Source§

    fn from(s: Uri) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ValueArray> for Value

    Source§

    fn from(o: ValueArray) -> Self

    Converts to this type from the input type.
    Source§

    impl From<VariantDict> for Value

    Source§

    fn from(s: VariantDict) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Vec<GString>> for Value

    Source§

    fn from(v: Vec<GString>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Vec<String>> for Value

    Source§

    fn from(s: Vec<String>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<bool> for Value

    Source§

    fn from(v: bool) -> Self

    Converts to this type from the input type.
    Source§

    impl From<char> for Value

    Source§

    fn from(v: char) -> Self

    Converts to this type from the input type.
    Source§

    impl From<f32> for Value

    Source§

    fn from(v: f32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<f64> for Value

    Source§

    fn from(v: f64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i32> for Value

    Source§

    fn from(v: i32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i64> for Value

    Source§

    fn from(v: i64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i8> for Value

    Source§

    fn from(v: i8) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u32> for Value

    Source§

    fn from(v: u32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u64> for Value

    Source§

    fn from(v: u64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u8> for Value

    Source§

    fn from(v: u8) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<Value> for ValueArray

    Source§

    fn from_iter<T: IntoIterator<Item = Value>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl<'a> FromValue<'a> for &'a Value

    Source§

    type Checker = NopChecker

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl<'a> FromValue<'a> for Value

    Source§

    type Checker = NopChecker

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl ToValue for &Value

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ToValue for Value

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Value

    §

    impl RefUnwindSafe for Value

    §

    impl !Send for Value

    §

    impl !Sync for Value

    §

    impl Unpin for Value

    §

    impl UnwindSafe for Value

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more

    Source§

    impl Debug for Value

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Drop for Value

    Source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    Source§

    impl Extend<Value> for ValueArray

    Source§

    fn extend<T: IntoIterator<Item = Value>>(&mut self, iter: T)

    Extends a collection with the contents of an iterator. Read more
    Source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    Source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    Source§

    impl<'a, T: ?Sized + ToValue> From<&'a T> for Value

    Source§

    fn from(value: &'a T) -> Self

    Converts to this type from the input type.
    Source§

    impl From<*mut c_void> for Value

    Source§

    fn from(v: Pointer) -> Self

    Converts to this type from the input type.
    Source§

    impl From<BindingFlags> for Value

    Source§

    fn from(v: BindingFlags) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Box<str>> for Value

    Source§

    fn from(s: Box<str>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<BoxedValue> for Value

    Source§

    fn from(v: BoxedValue) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ByteArray> for Value

    Source§

    fn from(s: ByteArray) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Bytes> for Value

    Source§

    fn from(s: Bytes) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Checksum> for Value

    Source§

    fn from(o: Checksum) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Closure> for Value

    Source§

    fn from(s: Closure) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ControlFlow> for Value

    Source§

    fn from(v: ControlFlow) -> Self

    Converts to this type from the input type.
    Source§

    impl From<DateTime> for Value

    Source§

    fn from(s: DateTime) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for Value

    Source§

    fn from(o: Error) -> Self

    Converts to this type from the input type.
    Source§

    impl From<GString> for Value

    Source§

    fn from(s: GString) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ILong> for Value

    Source§

    fn from(v: ILong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<IOCondition> for Value

    Source§

    fn from(v: IOCondition) -> Self

    Converts to this type from the input type.
    Source§

    impl From<KeyFile> for Value

    Source§

    fn from(s: KeyFile) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MainContext> for Value

    Source§

    fn from(s: MainContext) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MainLoop> for Value

    Source§

    fn from(s: MainLoop) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MarkupParseContext> for Value

    Source§

    fn from(s: MarkupParseContext) -> Self

    Converts to this type from the input type.
    Source§

    impl From<MatchInfo<'static>> for Value

    Source§

    fn from(s: MatchInfo<'static>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonNull<c_void>> for Value

    Source§

    fn from(v: NonNull<Pointee>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<i32>> for Value

    Source§

    fn from(v: NonZeroI32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<i64>> for Value

    Source§

    fn from(v: NonZeroI64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<i8>> for Value

    Source§

    fn from(v: NonZeroI8) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<u32>> for Value

    Source§

    fn from(v: NonZeroU32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<u64>> for Value

    Source§

    fn from(v: NonZeroU64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NonZero<u8>> for Value

    Source§

    fn from(v: NonZeroU8) -> Self

    Converts to this type from the input type.
    Source§

    impl From<NormalizeMode> for Value

    Source§

    fn from(v: NormalizeMode) -> Self

    Converts to this type from the input type.
    Source§

    impl<T: Into<Value> + ToValueOptional> From<Option<T>> for Value

    Source§

    fn from(t: Option<T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<PathBuf> for Value

    Source§

    fn from(s: PathBuf) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Propagation> for Value

    Source§

    fn from(v: Propagation) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Regex> for Value

    Source§

    fn from(s: Regex) -> Self

    Converts to this type from the input type.
    Source§

    impl From<SendValue> for Value

    Source§

    fn from(value: SendValue) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Source> for Value

    Source§

    fn from(s: Source) -> Self

    Converts to this type from the input type.
    Source§

    impl From<StrV> for Value

    Source§

    fn from(s: StrV) -> Self

    Converts to this type from the input type.
    Source§

    impl From<String> for Value

    Source§

    fn from(s: String) -> Self

    Converts to this type from the input type.
    Source§

    impl From<TimeZone> for Value

    Source§

    fn from(s: TimeZone) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ULong> for Value

    Source§

    fn from(v: ULong) -> Self

    Converts to this type from the input type.
    Source§

    impl From<UnicodeBreakType> for Value

    Source§

    fn from(v: UnicodeBreakType) -> Self

    Converts to this type from the input type.
    Source§

    impl From<UnicodeScript> for Value

    Source§

    fn from(v: UnicodeScript) -> Self

    Converts to this type from the input type.
    Source§

    impl From<UnicodeType> for Value

    Source§

    fn from(v: UnicodeType) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Uri> for Value

    Available on crate feature v2_66 only.
    Source§

    fn from(s: Uri) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ValueArray> for Value

    Source§

    fn from(o: ValueArray) -> Self

    Converts to this type from the input type.
    Source§

    impl From<VariantDict> for Value

    Source§

    fn from(s: VariantDict) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Vec<GString>> for Value

    Source§

    fn from(v: Vec<GString>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Vec<String>> for Value

    Source§

    fn from(s: Vec<String>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<bool> for Value

    Source§

    fn from(v: bool) -> Self

    Converts to this type from the input type.
    Source§

    impl From<char> for Value

    Source§

    fn from(v: char) -> Self

    Converts to this type from the input type.
    Source§

    impl From<f32> for Value

    Source§

    fn from(v: f32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<f64> for Value

    Source§

    fn from(v: f64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i32> for Value

    Source§

    fn from(v: i32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i64> for Value

    Source§

    fn from(v: i64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i8> for Value

    Source§

    fn from(v: i8) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u32> for Value

    Source§

    fn from(v: u32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u64> for Value

    Source§

    fn from(v: u64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u8> for Value

    Source§

    fn from(v: u8) -> Self

    Converts to this type from the input type.
    Source§

    impl FromIterator<Value> for ValueArray

    Source§

    fn from_iter<T: IntoIterator<Item = Value>>(iter: T) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl<'a> FromValue<'a> for &'a Value

    Source§

    type Checker = NopChecker

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl<'a> FromValue<'a> for Value

    Source§

    type Checker = NopChecker

    Value type checker.
    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value. Read more
    Source§

    impl ToValue for &Value

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more
    Source§

    impl ToValue for Value

    Source§

    fn to_value(&self) -> Value

    Convert a value to a Value.
    Source§

    fn value_type(&self) -> Type

    Returns the type identifier of self. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Value

    §

    impl RefUnwindSafe for Value

    §

    impl !Send for Value

    §

    impl !Sync for Value

    §

    impl Unpin for Value

    §

    impl UnwindSafe for Value

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/value/trait.FromValue.html b/git/docs/glib/value/trait.FromValue.html index 2c8c787107af..e9b121bb0ec2 100644 --- a/git/docs/glib/value/trait.FromValue.html +++ b/git/docs/glib/value/trait.FromValue.html @@ -83,8 +83,8 @@

    Required Methods§

    Source

    unsafe fn from_value(value: &'a Value) -> Self

    Get the contained value from a Value.

    §Safety

    Self::Checker::check() must be called first and must not fail.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl<'a> FromValue<'a> for &'a str

    Source§

    impl<'a> FromValue<'a> for &'a [GStringPtr]

    Source§

    impl<'a> FromValue<'a> for bool

    Source§

    impl<'a> FromValue<'a> for char

    Source§

    type Checker = CharTypeChecker

    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Source§

    impl<'a> FromValue<'a> for f32

    Source§

    impl<'a> FromValue<'a> for f64

    Source§

    impl<'a> FromValue<'a> for i8

    Source§

    impl<'a> FromValue<'a> for i32

    Source§

    impl<'a> FromValue<'a> for i64

    Source§

    impl<'a> FromValue<'a> for u8

    Source§

    impl<'a> FromValue<'a> for u32

    Source§

    impl<'a> FromValue<'a> for u64

    Source§

    impl<'a> FromValue<'a> for Box<str>

    Source§

    impl<'a> FromValue<'a> for String

    Source§

    impl<'a> FromValue<'a> for Vec<&FlagsValue>

    Source§

    type Checker = FlagsTypeChecker

    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Source§

    impl<'a> FromValue<'a> for Vec<GString>

    Source§

    impl<'a> FromValue<'a> for Vec<String>

    Source§

    impl<'a> FromValue<'a> for NonNull<Pointee>

    Source§

    impl<'a> FromValue<'a> for PathBuf

    Source§

    impl<'a> FromValue<'a> for NonZeroI8

    Source§

    impl<'a> FromValue<'a> for NonZeroI32

    Source§

    impl<'a> FromValue<'a> for NonZeroI64

    Source§

    impl<'a> FromValue<'a> for NonZeroU8

    Source§

    impl<'a> FromValue<'a> for NonZeroU32

    Source§

    impl<'a> FromValue<'a> for NonZeroU64

    Source§

    impl<'a, T, C, E> FromValue<'a> for Option<T>
    where +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl<'a> FromValue<'a> for &'a str

    Source§

    impl<'a> FromValue<'a> for &'a [GStringPtr]

    Source§

    impl<'a> FromValue<'a> for bool

    Source§

    impl<'a> FromValue<'a> for char

    Source§

    type Checker = CharTypeChecker

    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Source§

    impl<'a> FromValue<'a> for f32

    Source§

    impl<'a> FromValue<'a> for f64

    Source§

    impl<'a> FromValue<'a> for i8

    Source§

    impl<'a> FromValue<'a> for i32

    Source§

    impl<'a> FromValue<'a> for i64

    Source§

    impl<'a> FromValue<'a> for u8

    Source§

    impl<'a> FromValue<'a> for u32

    Source§

    impl<'a> FromValue<'a> for u64

    Source§

    impl<'a> FromValue<'a> for Box<str>

    Source§

    impl<'a> FromValue<'a> for String

    Source§

    impl<'a> FromValue<'a> for Vec<&FlagsValue>

    Source§

    type Checker = FlagsTypeChecker

    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Source§

    impl<'a> FromValue<'a> for Vec<GString>

    Source§

    impl<'a> FromValue<'a> for Vec<String>

    Source§

    impl<'a> FromValue<'a> for NonNull<Pointee>

    Source§

    impl<'a> FromValue<'a> for PathBuf

    Source§

    impl<'a> FromValue<'a> for NonZeroI8

    Source§

    impl<'a> FromValue<'a> for NonZeroI32

    Source§

    impl<'a> FromValue<'a> for NonZeroI64

    Source§

    impl<'a> FromValue<'a> for NonZeroU8

    Source§

    impl<'a> FromValue<'a> for NonZeroU32

    Source§

    impl<'a> FromValue<'a> for NonZeroU64

    Source§

    impl<'a, T, C, E> FromValue<'a> for Option<T>
    where T: FromValue<'a, Checker = C> + StaticType, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + Sized + 'static,

    Blanket implementation for all optional types.

    -
    Source§

    type Checker = ValueTypeOrNoneChecker<T, C, E>

    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Implementors§

    Source§

    impl<'a> FromValue<'a> for &'a GStr

    Source§

    impl<'a> FromValue<'a> for &'a Value

    Source§

    impl<'a> FromValue<'a> for &EnumValue

    Source§

    impl<'a> FromValue<'a> for NormalizeMode

    Source§

    impl<'a> FromValue<'a> for UnicodeBreakType

    Source§

    impl<'a> FromValue<'a> for UnicodeScript

    Source§

    impl<'a> FromValue<'a> for UnicodeType

    Source§

    impl<'a> FromValue<'a> for StrV

    Source§

    impl<'a> FromValue<'a> for BindingFlags

    Source§

    impl<'a> FromValue<'a> for GString

    Source§

    impl<'a> FromValue<'a> for IOCondition

    Source§

    impl<'a> FromValue<'a> for ILong

    Source§

    impl<'a> FromValue<'a> for ULong

    Source§

    impl<'a> FromValue<'a> for BoxedValue

    Source§

    impl<'a> FromValue<'a> for Value

    Source§

    impl<'a> FromValue<'a> for Pointer

    Source§

    impl<'a, 'input: 'a> FromValue<'a> for MatchInfo<'input>

    \ No newline at end of file +
    Source§

    type Checker = ValueTypeOrNoneChecker<T, C, E>

    Source§

    unsafe fn from_value(value: &'a Value) -> Self

    Implementors§

    Source§

    impl<'a> FromValue<'a> for &'a GStr

    Source§

    impl<'a> FromValue<'a> for &'a Value

    Source§

    impl<'a> FromValue<'a> for &EnumValue

    Source§

    impl<'a> FromValue<'a> for NormalizeMode

    Source§

    impl<'a> FromValue<'a> for UnicodeBreakType

    Source§

    impl<'a> FromValue<'a> for UnicodeScript

    Source§

    impl<'a> FromValue<'a> for UnicodeType

    Source§

    impl<'a> FromValue<'a> for StrV

    Source§

    impl<'a> FromValue<'a> for BindingFlags

    Source§

    impl<'a> FromValue<'a> for GString

    Source§

    impl<'a> FromValue<'a> for IOCondition

    Source§

    impl<'a> FromValue<'a> for ILong

    Source§

    impl<'a> FromValue<'a> for ULong

    Source§

    impl<'a> FromValue<'a> for BoxedValue

    Source§

    impl<'a> FromValue<'a> for Value

    Source§

    impl<'a> FromValue<'a> for Pointer

    Source§

    impl<'a, 'input: 'a> FromValue<'a> for MatchInfo<'input>

    \ No newline at end of file diff --git a/git/docs/glib/value/trait.ToSendValue.html b/git/docs/glib/value/trait.ToSendValue.html index 2513de22a1d6..9df63d7db0d6 100644 --- a/git/docs/glib/value/trait.ToSendValue.html +++ b/git/docs/glib/value/trait.ToSendValue.html @@ -71,9 +71,9 @@ -
    glib::value

    Trait ToSendValue

    Source
    pub trait ToSendValue: Send + ToValue {
    +
    glib::value

    Trait ToSendValue

    Source
    pub trait ToSendValue: Send + ToValue {
         // Required method
         fn to_send_value(&self) -> SendValue;
     }
    Expand description

    Converts to SendValue.

    -

    Required Methods§

    Source

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.

    -

    Implementors§

    \ No newline at end of file +

    Required Methods§

    Source

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.

    +

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/value/trait.ToValue.html b/git/docs/glib/value/trait.ToValue.html index c79e35faca78..f365cc76b2c3 100644 --- a/git/docs/glib/value/trait.ToValue.html +++ b/git/docs/glib/value/trait.ToValue.html @@ -90,6 +90,6 @@

    Required Methods§

    Source

    fn to_value(&self) -> Value

    Convert a value to a Value.

    Source

    fn value_type(&self) -> Type

    Returns the type identifier of self.

    This is the type of the value to be returned by to_value.

    -

    Implementations on Foreign Types§

    Source§

    impl ToValue for &str

    Source§

    impl ToValue for &Path

    Source§

    impl ToValue for &[&str]

    Source§

    impl ToValue for bool

    Source§

    impl ToValue for char

    Source§

    impl ToValue for f32

    Source§

    impl ToValue for f64

    Source§

    impl ToValue for i8

    Source§

    impl ToValue for i32

    Source§

    impl ToValue for i64

    Source§

    impl ToValue for str

    Source§

    impl ToValue for u8

    Source§

    impl ToValue for u32

    Source§

    impl ToValue for u64

    Source§

    impl ToValue for Box<str>

    Source§

    impl ToValue for String

    Source§

    impl ToValue for Vec<GString>

    Source§

    impl ToValue for Vec<String>

    Source§

    impl ToValue for NonNull<Pointee>

    Source§

    impl ToValue for Path

    Source§

    impl ToValue for PathBuf

    Source§

    impl ToValue for NonZeroI8

    Source§

    impl ToValue for NonZeroI32

    Source§

    impl ToValue for NonZeroI64

    Source§

    impl ToValue for NonZeroU8

    Source§

    impl ToValue for NonZeroU32

    Source§

    impl ToValue for NonZeroU64

    Source§

    impl ToValue for [&str]

    Source§

    impl<T: ToValue + StaticType> ToValue for &T

    Blanket implementation for all references.

    +

    Implementations on Foreign Types§

    Source§

    impl ToValue for &str

    Source§

    impl ToValue for &Path

    Source§

    impl ToValue for &[&str]

    Source§

    impl ToValue for bool

    Source§

    impl ToValue for char

    Source§

    impl ToValue for f32

    Source§

    impl ToValue for f64

    Source§

    impl ToValue for i8

    Source§

    impl ToValue for i32

    Source§

    impl ToValue for i64

    Source§

    impl ToValue for str

    Source§

    impl ToValue for u8

    Source§

    impl ToValue for u32

    Source§

    impl ToValue for u64

    Source§

    impl ToValue for Box<str>

    Source§

    impl ToValue for String

    Source§

    impl ToValue for Vec<GString>

    Source§

    impl ToValue for Vec<String>

    Source§

    impl ToValue for NonNull<Pointee>

    Source§

    impl ToValue for Path

    Source§

    impl ToValue for PathBuf

    Source§

    impl ToValue for NonZeroI8

    Source§

    impl ToValue for NonZeroI32

    Source§

    impl ToValue for NonZeroI64

    Source§

    impl ToValue for NonZeroU8

    Source§

    impl ToValue for NonZeroU32

    Source§

    impl ToValue for NonZeroU64

    Source§

    impl ToValue for [&str]

    Source§

    impl<T: ToValue + StaticType> ToValue for &T

    Blanket implementation for all references.

    Source§

    impl<T: ToValueOptional + StaticType> ToValue for Option<T>

    Blanket implementation for all optional types.

    -

    Implementors§

    \ No newline at end of file +

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/value/trait.ToValueOptional.html b/git/docs/glib/value/trait.ToValueOptional.html index 6a57a59660fc..38ee5020fc9d 100644 --- a/git/docs/glib/value/trait.ToValueOptional.html +++ b/git/docs/glib/value/trait.ToValueOptional.html @@ -76,4 +76,4 @@ fn to_value_optional(s: Option<&Self>) -> Value; }
    Expand description

    Trait to convert an Option to a Value for optional types.

    Required Methods§

    Source

    fn to_value_optional(s: Option<&Self>) -> Value

    Convert an Option to a Value.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl ToValueOptional for str

    Source§

    impl ToValueOptional for Box<str>

    Source§

    impl ToValueOptional for String

    Source§

    impl ToValueOptional for NonNull<Pointee>

    Source§

    impl ToValueOptional for Path

    Source§

    impl ToValueOptional for PathBuf

    Source§

    impl ToValueOptional for NonZeroI8

    Source§

    impl ToValueOptional for NonZeroI32

    Source§

    impl ToValueOptional for NonZeroI64

    Source§

    impl ToValueOptional for NonZeroU8

    Source§

    impl ToValueOptional for NonZeroU32

    Source§

    impl ToValueOptional for NonZeroU64

    Source§

    impl<T: ToValueOptional + StaticType + ?Sized> ToValueOptional for &T

    Implementors§

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl ToValueOptional for str

    Source§

    impl ToValueOptional for Box<str>

    Source§

    impl ToValueOptional for String

    Source§

    impl ToValueOptional for NonNull<Pointee>

    Source§

    impl ToValueOptional for Path

    Source§

    impl ToValueOptional for PathBuf

    Source§

    impl ToValueOptional for NonZeroI8

    Source§

    impl ToValueOptional for NonZeroI32

    Source§

    impl ToValueOptional for NonZeroI64

    Source§

    impl ToValueOptional for NonZeroU8

    Source§

    impl ToValueOptional for NonZeroU32

    Source§

    impl ToValueOptional for NonZeroU64

    Source§

    impl<T: ToValueOptional + StaticType + ?Sized> ToValueOptional for &T

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/value/trait.ValueType.html b/git/docs/glib/value/trait.ValueType.html index 8b3c97b09fef..793525679240 100644 --- a/git/docs/glib/value/trait.ValueType.html +++ b/git/docs/glib/value/trait.ValueType.html @@ -79,7 +79,7 @@ }
    Expand description

    A type that can be stored in Values.

    Required Associated Types§

    Source

    type Type: StaticType

    Type to get the Type from.

    This exists only for handling optional types.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl ValueType for bool

    Source§

    impl ValueType for char

    Source§

    impl ValueType for f32

    Source§

    impl ValueType for f64

    Source§

    impl ValueType for i8

    Source§

    impl ValueType for i32

    Source§

    impl ValueType for i64

    Source§

    impl ValueType for u8

    Source§

    impl ValueType for u32

    Source§

    impl ValueType for u64

    Source§

    impl ValueType for Box<str>

    Source§

    impl ValueType for String

    Source§

    impl ValueType for Vec<GString>

    Source§

    impl ValueType for Vec<String>

    Source§

    impl ValueType for NonNull<Pointee>

    Source§

    impl ValueType for PathBuf

    Source§

    impl ValueType for NonZeroI8

    Source§

    impl ValueType for NonZeroI32

    Source§

    impl ValueType for NonZeroI64

    Source§

    impl ValueType for NonZeroU8

    Source§

    impl ValueType for NonZeroU32

    Source§

    impl ValueType for NonZeroU64

    Source§

    impl<T, C, E> ValueType for Option<T>
    where +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl ValueType for bool

    Source§

    impl ValueType for char

    Source§

    impl ValueType for f32

    Source§

    impl ValueType for f64

    Source§

    impl ValueType for i8

    Source§

    impl ValueType for i32

    Source§

    impl ValueType for i64

    Source§

    impl ValueType for u8

    Source§

    impl ValueType for u32

    Source§

    impl ValueType for u64

    Source§

    impl ValueType for Box<str>

    Source§

    impl ValueType for String

    Source§

    impl ValueType for Vec<GString>

    Source§

    impl ValueType for Vec<String>

    Source§

    impl ValueType for NonNull<Pointee>

    Source§

    impl ValueType for PathBuf

    Source§

    impl ValueType for NonZeroI8

    Source§

    impl ValueType for NonZeroI32

    Source§

    impl ValueType for NonZeroI64

    Source§

    impl ValueType for NonZeroU8

    Source§

    impl ValueType for NonZeroU32

    Source§

    impl ValueType for NonZeroU64

    Source§

    impl<T, C, E> ValueType for Option<T>
    where T: for<'a> FromValue<'a, Checker = C> + ValueTypeOptional + StaticType + 'static, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, - E: Error + Send + Sized + 'static,

    Source§

    type Type = <T as ValueType>::Type

    Implementors§

    \ No newline at end of file + E: Error + Send + Sized + 'static,
    Source§

    type Type = <T as ValueType>::Type

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/value/trait.ValueTypeChecker.html b/git/docs/glib/value/trait.ValueTypeChecker.html index 6771a48a041c..9ba19026bee1 100644 --- a/git/docs/glib/value/trait.ValueTypeChecker.html +++ b/git/docs/glib/value/trait.ValueTypeChecker.html @@ -77,7 +77,7 @@ // Required method fn check(value: &Value) -> Result<(), Self::Error>; }
    Expand description

    Trait for Value type checkers.

    -

    Required Associated Types§

    Source

    type Error: Error + Send + Sized + 'static

    Required Methods§

    Source

    fn check(value: &Value) -> Result<(), Self::Error>

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    Source§

    impl ValueTypeChecker for EnumTypeChecker

    Source§

    impl ValueTypeChecker for FlagsTypeChecker

    Source§

    impl ValueTypeChecker for CharTypeChecker

    Source§

    impl ValueTypeChecker for NopChecker

    Source§

    impl<'a, T, C, E> ValueTypeChecker for ValueTypeOrNoneChecker<T, C, E>
    where +

    Required Associated Types§

    Source

    type Error: Error + Send + Sized + 'static

    Required Methods§

    Source

    fn check(value: &Value) -> Result<(), Self::Error>

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/value/trait.ValueTypeOptional.html b/git/docs/glib/value/trait.ValueTypeOptional.html index 503525b347b0..f42d246ab43e 100644 --- a/git/docs/glib/value/trait.ValueTypeOptional.html +++ b/git/docs/glib/value/trait.ValueTypeOptional.html @@ -77,4 +77,4 @@ + FromValueOptional<'static> + StaticType { }
    Expand description

    A type that can be stored in Values and is optional.

    These are types were storing an Option is valid. Examples are String and all object types.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl ValueTypeOptional for Box<str>

    Source§

    impl ValueTypeOptional for String

    Source§

    impl ValueTypeOptional for PathBuf

    Implementors§

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl ValueTypeOptional for Box<str>

    Source§

    impl ValueTypeOptional for String

    Source§

    impl ValueTypeOptional for PathBuf

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/variant/index.html b/git/docs/glib/variant/index.html index 5e82dfd54cde..f7608b1dec6f 100644 --- a/git/docs/glib/variant/index.html +++ b/git/docs/glib/variant/index.html @@ -71,7 +71,7 @@ -
    glib

    Module variant

    Source
    Expand description

    Variant binding and helper traits.

    +
    glib

    Module variant

    Source
    Expand description

    Variant binding and helper traits.

    Variant is an immutable dynamically-typed generic container. Its type and value are defined at construction and never change.

    Variant types are described by VariantType diff --git a/git/docs/glib/variant/struct.DictEntry.html b/git/docs/glib/variant/struct.DictEntry.html index 6a683f3bf8bf..158c23b515e0 100644 --- a/git/docs/glib/variant/struct.DictEntry.html +++ b/git/docs/glib/variant/struct.DictEntry.html @@ -71,7 +71,7 @@ -

    glib::variant

    Struct DictEntry

    Source
    pub struct DictEntry<K, V> { /* private fields */ }
    Expand description

    A Dictionary entry.

    +
    glib::variant

    Struct DictEntry

    Source
    pub struct DictEntry<K, V> { /* private fields */ }
    Expand description

    A Dictionary entry.

    While GVariant format allows a dictionary entry to be an independent type, typically you’ll need to use this in a dictionary, which is simply an array of dictionary entries. The following code creates a dictionary:

    @@ -85,15 +85,15 @@ let dict = entries.into_iter().collect::<Variant>(); assert_eq!(dict.n_children(), 2); assert_eq!(dict.type_().as_str(), "a{su}");
    -

    Implementations§

    Source§

    impl<K, V> DictEntry<K, V>
    where +

    Implementations§

    Source§

    impl<K, V> DictEntry<K, V>

    Source

    pub fn new(key: K, value: V) -> Self

    Source

    pub fn key(&self) -> &K

    Source

    pub fn value(&self) -> &V

    Trait Implementations§

    Source§

    impl<K, V> From<DictEntry<K, V>> for Variant
    where + V: StaticVariantType,

    Source

    pub fn new(key: K, value: V) -> Self

    Source

    pub fn key(&self) -> &K

    Source

    pub fn value(&self) -> &V

    Trait Implementations§

    Source§

    impl<K, V> From<DictEntry<K, V>> for Variant

    Source§

    fn from(e: DictEntry<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> FromVariant for DictEntry<K, V>

    Source§

    fn from(e: DictEntry<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> FromVariant for DictEntry<K, V>
    where K: FromVariant, - V: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl<K: StaticVariantType, V: StaticVariantType> StaticVariantType for DictEntry<K, V>

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl<K, V> ToVariant for DictEntry<K, V>
    where + V: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl<K: StaticVariantType, V: StaticVariantType> StaticVariantType for DictEntry<K, V>

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl<K, V> ToVariant for DictEntry<K, V>

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.

    Auto Trait Implementations§

    §

    impl<K, V> Freeze for DictEntry<K, V>

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.

    Auto Trait Implementations§

    §

    impl<K, V> Freeze for DictEntry<K, V>
    where K: Freeze, V: Freeze,

    §

    impl<K, V> RefUnwindSafe for DictEntry<K, V>
    where K: RefUnwindSafe, diff --git a/git/docs/glib/variant/struct.FixedSizeVariantArray.html b/git/docs/glib/variant/struct.FixedSizeVariantArray.html index eab1352db8d1..cc3360fc0995 100644 --- a/git/docs/glib/variant/struct.FixedSizeVariantArray.html +++ b/git/docs/glib/variant/struct.FixedSizeVariantArray.html @@ -71,7 +71,7 @@ -
    glib::variant

    Struct FixedSizeVariantArray

    Source
    pub struct FixedSizeVariantArray<A, T>(/* private fields */)
    +
    glib::variant

    Struct FixedSizeVariantArray

    Source
    pub struct FixedSizeVariantArray<A, T>(/* private fields */)
     where
         A: AsRef<[T]>,
         T: FixedSizeVariantType;
    Expand description

    Wrapper type for fixed size type arrays.

    @@ -79,32 +79,32 @@ directly. This is especially important when deriving Variant trait implementations on custom types.

    This wrapper type can hold for example Vec<u8>, Box<[u8]> and similar types.

    -

    Implementations§

    Trait Implementations§

    Source§

    impl<A: AsRef<[T]> + AsMut<[T]>, T: FixedSizeVariantType> AsMut<[T]> for FixedSizeVariantArray<A, T>

    Source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> AsMut<A> for FixedSizeVariantArray<A, T>

    Source§

    fn as_mut(&mut self) -> &mut A

    Converts this type into a mutable reference of the (usually inferred) input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> AsRef<[T]> for FixedSizeVariantArray<A, T>

    Source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> AsRef<A> for FixedSizeVariantArray<A, T>

    Source§

    fn as_ref(&self) -> &A

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl<A, T> Clone for FixedSizeVariantArray<A, T>
    where +

    Implementations§

    Trait Implementations§

    Source§

    impl<A: AsRef<[T]> + AsMut<[T]>, T: FixedSizeVariantType> AsMut<[T]> for FixedSizeVariantArray<A, T>

    Source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> AsMut<A> for FixedSizeVariantArray<A, T>

    Source§

    fn as_mut(&mut self) -> &mut A

    Converts this type into a mutable reference of the (usually inferred) input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> AsRef<[T]> for FixedSizeVariantArray<A, T>

    Source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> AsRef<A> for FixedSizeVariantArray<A, T>

    Source§

    fn as_ref(&self) -> &A

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl<A, T> Clone for FixedSizeVariantArray<A, T>

    Source§

    fn clone(&self) -> FixedSizeVariantArray<A, T>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<A, T> Debug for FixedSizeVariantArray<A, T>

    Source§

    fn clone(&self) -> FixedSizeVariantArray<A, T>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<A, T> Debug for FixedSizeVariantArray<A, T>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> Deref for FixedSizeVariantArray<A, T>

    Source§

    type Target = A

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> DerefMut for FixedSizeVariantArray<A, T>

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> From<A> for FixedSizeVariantArray<A, T>

    Source§

    fn from(array: A) -> Self

    Converts to this type from the input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> From<FixedSizeVariantArray<A, T>> for Variant

    Source§

    fn from(a: FixedSizeVariantArray<A, T>) -> Self

    Converts to this type from the input type.
    Source§

    impl<A: AsRef<[T]> + for<'a> From<&'a [T]>, T: FixedSizeVariantType> FromVariant for FixedSizeVariantArray<A, T>

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl<A, T> Hash for FixedSizeVariantArray<A, T>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> Deref for FixedSizeVariantArray<A, T>

    Source§

    type Target = A

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> DerefMut for FixedSizeVariantArray<A, T>

    Source§

    fn deref_mut(&mut self) -> &mut Self::Target

    Mutably dereferences the value.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> From<A> for FixedSizeVariantArray<A, T>

    Source§

    fn from(array: A) -> Self

    Converts to this type from the input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> From<FixedSizeVariantArray<A, T>> for Variant

    Source§

    fn from(a: FixedSizeVariantArray<A, T>) -> Self

    Converts to this type from the input type.
    Source§

    impl<A: AsRef<[T]> + for<'a> From<&'a [T]>, T: FixedSizeVariantType> FromVariant for FixedSizeVariantArray<A, T>

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl<A, T> Hash for FixedSizeVariantArray<A, T>
    where A: AsRef<[T]> + Hash, - T: FixedSizeVariantType + Hash,

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl<A, T> Ord for FixedSizeVariantArray<A, T>
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl<A, T> Ord for FixedSizeVariantArray<A, T>
    where A: AsRef<[T]> + Ord, - T: FixedSizeVariantType + Ord,

    Source§

    fn cmp(&self, other: &FixedSizeVariantArray<A, T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self

    Source§

    fn cmp(&self, other: &FixedSizeVariantArray<A, T>) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl<A, T> PartialEq for FixedSizeVariantArray<A, T>
    where + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl<A, T> PartialEq for FixedSizeVariantArray<A, T>

    Source§

    fn eq(&self, other: &FixedSizeVariantArray<A, T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<A, T> PartialOrd for FixedSizeVariantArray<A, T>

    Source§

    fn eq(&self, other: &FixedSizeVariantArray<A, T>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl<A, T> PartialOrd for FixedSizeVariantArray<A, T>

    Source§

    fn partial_cmp(&self, other: &FixedSizeVariantArray<A, T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + T: FixedSizeVariantType + PartialOrd,

    Source§

    fn partial_cmp(&self, other: &FixedSizeVariantArray<A, T>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> StaticVariantType for FixedSizeVariantArray<A, T>

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> ToVariant for FixedSizeVariantArray<A, T>

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl<A, T> Copy for FixedSizeVariantArray<A, T>
    where +the >= operator. Read more

    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> StaticVariantType for FixedSizeVariantArray<A, T>

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> ToVariant for FixedSizeVariantArray<A, T>

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl<A, T> Copy for FixedSizeVariantArray<A, T>
    where A: AsRef<[T]> + Copy, - T: FixedSizeVariantType + Copy,

    Source§

    impl<A, T> Eq for FixedSizeVariantArray<A, T>

    Source§

    impl<A, T> Eq for FixedSizeVariantArray<A, T>
    where A: AsRef<[T]> + Eq, - T: FixedSizeVariantType + Eq,

    Source§

    impl<A, T> StructuralPartialEq for FixedSizeVariantArray<A, T>
    where + T: FixedSizeVariantType + Eq,

    Source§

    impl<A, T> StructuralPartialEq for FixedSizeVariantArray<A, T>

    Auto Trait Implementations§

    §

    impl<A, T> Freeze for FixedSizeVariantArray<A, T>
    where A: Freeze,

    §

    impl<A, T> RefUnwindSafe for FixedSizeVariantArray<A, T>
    where diff --git a/git/docs/glib/variant/struct.Handle.html b/git/docs/glib/variant/struct.Handle.html index bcab12c37991..245c326f3ebf 100644 --- a/git/docs/glib/variant/struct.Handle.html +++ b/git/docs/glib/variant/struct.Handle.html @@ -71,17 +71,17 @@ -
    glib::variant

    Struct Handle

    Source
    pub struct Handle(pub i32);
    Expand description

    A wrapper type around Variant handles.

    -

    Tuple Fields§

    §0: i32

    Trait Implementations§

    Source§

    impl Clone for Handle

    Source§

    fn clone(&self) -> Handle

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Handle

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Handle> for Variant

    Source§

    fn from(h: Handle) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Handle> for i32

    Source§

    fn from(v: Handle) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i32> for Handle

    Source§

    fn from(v: i32) -> Self

    Converts to this type from the input type.
    Source§

    impl FromVariant for Handle

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl Hash for Handle

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +
    glib::variant

    Struct Handle

    Source
    pub struct Handle(pub i32);
    Expand description

    A wrapper type around Variant handles.

    +

    Tuple Fields§

    §0: i32

    Trait Implementations§

    Source§

    impl Clone for Handle

    Source§

    fn clone(&self) -> Handle

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Handle

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl From<Handle> for Variant

    Source§

    fn from(h: Handle) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Handle> for i32

    Source§

    fn from(v: Handle) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i32> for Handle

    Source§

    fn from(v: i32) -> Self

    Converts to this type from the input type.
    Source§

    impl FromVariant for Handle

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl Hash for Handle

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Handle

    Source§

    fn cmp(&self, other: &Handle) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Handle

    Source§

    fn cmp(&self, other: &Handle) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Handle

    Source§

    fn eq(&self, other: &Handle) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Handle

    Source§

    fn partial_cmp(&self, other: &Handle) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Handle

    Source§

    fn eq(&self, other: &Handle) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Handle

    Source§

    fn partial_cmp(&self, other: &Handle) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticVariantType for Handle

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for Handle

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl Copy for Handle

    Source§

    impl Eq for Handle

    Source§

    impl StructuralPartialEq for Handle

    Auto Trait Implementations§

    §

    impl Freeze for Handle

    §

    impl RefUnwindSafe for Handle

    §

    impl Send for Handle

    §

    impl Sync for Handle

    §

    impl Unpin for Handle

    §

    impl UnwindSafe for Handle

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticVariantType for Handle

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for Handle

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl Copy for Handle

    Source§

    impl Eq for Handle

    Source§

    impl StructuralPartialEq for Handle

    Auto Trait Implementations§

    §

    impl Freeze for Handle

    §

    impl RefUnwindSafe for Handle

    §

    impl Send for Handle

    §

    impl Sync for Handle

    §

    impl Unpin for Handle

    §

    impl UnwindSafe for Handle

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/variant/struct.ObjectPath.html b/git/docs/glib/variant/struct.ObjectPath.html index 63eb19e861d3..263806c48750 100644 --- a/git/docs/glib/variant/struct.ObjectPath.html +++ b/git/docs/glib/variant/struct.ObjectPath.html @@ -71,9 +71,9 @@ -
    glib::variant

    Struct ObjectPath

    Source
    pub struct ObjectPath(/* private fields */);
    Expand description

    A wrapper type around Variant object paths.

    +
    glib::variant

    Struct ObjectPath

    Source
    pub struct ObjectPath(/* private fields */);
    Expand description

    A wrapper type around Variant object paths.

    Values of these type are guaranteed to be valid object paths.

    -

    Implementations§

    Source§

    impl ObjectPath

    Source

    pub fn as_str(&self) -> &str

    Methods from Deref<Target = str>§

    1.0.0 · Source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    Implementations§

    Source§

    impl ObjectPath

    Source

    pub fn as_str(&self) -> &str

    Methods from Deref<Target = str>§

    1.0.0 · Source

    pub fn len(&self) -> usize

    Returns the length of self.

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    §Examples
    @@ -1317,16 +1317,16 @@
    §Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    Source§

    impl Clone for ObjectPath

    Source§

    fn clone(&self) -> ObjectPath

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ObjectPath

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ObjectPath

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl From<ObjectPath> for String

    Source§

    fn from(v: ObjectPath) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ObjectPath> for Variant

    Source§

    fn from(p: ObjectPath) -> Self

    Converts to this type from the input type.
    Source§

    impl FromVariant for ObjectPath

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl Hash for ObjectPath

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Trait Implementations§

    Source§

    impl Clone for ObjectPath

    Source§

    fn clone(&self) -> ObjectPath

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ObjectPath

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for ObjectPath

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl From<ObjectPath> for String

    Source§

    fn from(v: ObjectPath) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ObjectPath> for Variant

    Source§

    fn from(p: ObjectPath) -> Self

    Converts to this type from the input type.
    Source§

    impl FromVariant for ObjectPath

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl Hash for ObjectPath

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for ObjectPath

    Source§

    fn cmp(&self, other: &ObjectPath) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for ObjectPath

    Source§

    fn cmp(&self, other: &ObjectPath) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for ObjectPath

    Source§

    fn eq(&self, other: &ObjectPath) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ObjectPath

    Source§

    fn partial_cmp(&self, other: &ObjectPath) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for ObjectPath

    Source§

    fn eq(&self, other: &ObjectPath) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for ObjectPath

    Source§

    fn partial_cmp(&self, other: &ObjectPath) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticVariantType for ObjectPath

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for ObjectPath

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl<'a> TryFrom<&'a str> for ObjectPath

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: &'a str) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<String> for ObjectPath

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: String) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Eq for ObjectPath

    Source§

    impl StructuralPartialEq for ObjectPath

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticVariantType for ObjectPath

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for ObjectPath

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl<'a> TryFrom<&'a str> for ObjectPath

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: &'a str) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<String> for ObjectPath

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: String) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Eq for ObjectPath

    Source§

    impl StructuralPartialEq for ObjectPath

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/variant/struct.Signature.html b/git/docs/glib/variant/struct.Signature.html index 4bc5e43402c0..586e0ffb4ebf 100644 --- a/git/docs/glib/variant/struct.Signature.html +++ b/git/docs/glib/variant/struct.Signature.html @@ -71,9 +71,9 @@ -
    glib::variant

    Struct Signature

    Source
    pub struct Signature(/* private fields */);
    Expand description

    A wrapper type around Variant signatures.

    +
    glib::variant

    Struct Signature

    Source
    pub struct Signature(/* private fields */);
    Expand description

    A wrapper type around Variant signatures.

    Values of these type are guaranteed to be valid signatures.

    -

    Implementations§

    Source§

    impl Signature

    Source

    pub fn as_str(&self) -> &str

    Methods from Deref<Target = str>§

    1.0.0 · Source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    Implementations§

    Source§

    impl Signature

    Source

    pub fn as_str(&self) -> &str

    Methods from Deref<Target = str>§

    1.0.0 · Source

    pub fn len(&self) -> usize

    Returns the length of self.

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    §Examples
    @@ -1317,16 +1317,16 @@
    §Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    Source§

    impl Clone for Signature

    Source§

    fn clone(&self) -> Signature

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Signature

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for Signature

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl From<Signature> for String

    Source§

    fn from(v: Signature) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Signature> for Variant

    Source§

    fn from(s: Signature) -> Self

    Converts to this type from the input type.
    Source§

    impl FromVariant for Signature

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl Hash for Signature

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Trait Implementations§

    Source§

    impl Clone for Signature

    Source§

    fn clone(&self) -> Signature

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Signature

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Deref for Signature

    Source§

    type Target = str

    The resulting type after dereferencing.
    Source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    Source§

    impl From<Signature> for String

    Source§

    fn from(v: Signature) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Signature> for Variant

    Source§

    fn from(s: Signature) -> Self

    Converts to this type from the input type.
    Source§

    impl FromVariant for Signature

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl Hash for Signature

    Source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Signature

    Source§

    fn cmp(&self, other: &Signature) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Signature

    Source§

    fn cmp(&self, other: &Signature) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Signature

    Source§

    fn eq(&self, other: &Signature) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Signature

    Source§

    fn partial_cmp(&self, other: &Signature) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Signature

    Source§

    fn eq(&self, other: &Signature) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Signature

    Source§

    fn partial_cmp(&self, other: &Signature) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticVariantType for Signature

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for Signature

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl<'a> TryFrom<&'a str> for Signature

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: &'a str) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<String> for Signature

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: String) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Eq for Signature

    Source§

    impl StructuralPartialEq for Signature

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticVariantType for Signature

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for Signature

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl<'a> TryFrom<&'a str> for Signature

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: &'a str) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl TryFrom<String> for Signature

    Source§

    type Error = BoolError

    The type returned in the event of a conversion error.
    Source§

    fn try_from(v: String) -> Result<Self, Self::Error>

    Performs the conversion.
    Source§

    impl Eq for Signature

    Source§

    impl StructuralPartialEq for Signature

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/variant/struct.Variant.html b/git/docs/glib/variant/struct.Variant.html index cc38a9393872..431a3ee3899b 100644 --- a/git/docs/glib/variant/struct.Variant.html +++ b/git/docs/glib/variant/struct.Variant.html @@ -71,7 +71,7 @@ -
    glib::variant

    Struct Variant

    Source
    pub struct Variant { /* private fields */ }
    Expand description

    A generic immutable value capable of carrying various types.

    +
    glib::variant

    Struct Variant

    Source
    pub struct Variant { /* private fields */ }
    Expand description

    A generic immutable value capable of carrying various types.

    See the module documentation for more details. GVariant is a variant datatype; it can contain one or more values along with information about the type of the values.

    @@ -264,24 +264,224 @@

    §Summary

    bytes. If we were to have other dictionaries of the same type, we would use more memory for the serialized data and buffer management for those dictionaries, but the type information would +be shared. +GVariant is a variant datatype; it can contain one or more values +along with information about the type of the values.

    +

    A GVariant may contain simple types, like an integer, or a boolean value; +or complex types, like an array of two strings, or a dictionary of key +value pairs. A GVariant is also immutable: once it’s been created neither +its type nor its content can be modified further.

    +

    GVariant is useful whenever data needs to be serialized, for example when +sending method parameters in D-Bus, or when saving settings using +GSettings.

    +

    When creating a new GVariant, you pass the data you want to store in it +along with a string representing the type of data you wish to pass to it.

    +

    For instance, if you want to create a GVariant holding an integer value you +can use:

    +

    ⚠️ The following code is in c ⚠️

    +
    GVariant *v = g_variant_new ("u", 40);
    +

    The string u in the first argument tells GVariant that the data passed to +the constructor (40) is going to be an unsigned integer.

    +

    More advanced examples of GVariant in use can be found in documentation for +GVariant format strings.

    +

    The range of possible values is determined by the type.

    +

    The type system used by GVariant is [type@GLib.VariantType].

    +

    GVariant instances always have a type and a value (which are given +at construction time). The type and value of a GVariant instance +can never change other than by the GVariant itself being +destroyed. A GVariant cannot contain a pointer.

    +

    GVariant is reference counted using GLib::Variant::ref() and +GLib::Variant::unref(). GVariant also has floating reference counts — +see [ref_sink()][Self::ref_sink()].

    +

    GVariant is completely threadsafe. A GVariant instance can be +concurrently accessed in any way from any number of threads without +problems.

    +

    GVariant is heavily optimised for dealing with data in serialized +form. It works particularly well with data located in memory-mapped +files. It can perform nearly all deserialization operations in a +small constant time, usually touching only a single memory page. +Serialized GVariant data can also be sent over the network.

    +

    GVariant is largely compatible with D-Bus. Almost all types of +GVariant instances can be sent over D-Bus. See [type@GLib.VariantType] for +exceptions. (However, GVariant’s serialization format is not the same +as the serialization format of a D-Bus message body: use +GDBusMessage, in the GIO library, for those.)

    +

    For space-efficiency, the GVariant serialization format does not +automatically include the variant’s length, type or endianness, +which must either be implied from context (such as knowledge that a +particular file format always contains a little-endian +G_VARIANT_TYPE_VARIANT which occupies the whole length of the file) +or supplied out-of-band (for instance, a length, type and/or endianness +indicator could be placed at the beginning of a file, network message +or network stream).

    +

    A GVariant’s size is limited mainly by any lower level operating +system constraints, such as the number of bits in gsize. For +example, it is reasonable to have a 2GB file mapped into memory +with GLib::MappedFile, and call GLib::Variant::new_from_data() on +it.

    +

    For convenience to C programmers, GVariant features powerful +varargs-based value construction and destruction. This feature is +designed to be embedded in other libraries.

    +

    There is a Python-inspired text language for describing GVariant +values. GVariant includes a printer for this language and a parser +with type inferencing.

    +

    §Memory Use

    +

    GVariant tries to be quite efficient with respect to memory use. +This section gives a rough idea of how much memory is used by the +current implementation. The information here is subject to change +in the future.

    +

    The memory allocated by GVariant can be grouped into 4 broad +purposes: memory for serialized data, memory for the type +information cache, buffer management memory and memory for the +GVariant structure itself.

    +

    §Serialized Data Memory

    +

    This is the memory that is used for storing GVariant data in +serialized form. This is what would be sent over the network or +what would end up on disk, not counting any indicator of the +endianness, or of the length or type of the top-level variant.

    +

    The amount of memory required to store a boolean is 1 byte. 16, +32 and 64 bit integers and double precision floating point numbers +use their ‘natural’ size. Strings (including object path and +signature strings) are stored with a nul terminator, and as such +use the length of the string plus 1 byte.

    +

    ‘Maybe’ types use no space at all to represent the null value and +use the same amount of space (sometimes plus one byte) as the +equivalent non-maybe-typed value to represent the non-null case.

    +

    Arrays use the amount of space required to store each of their +members, concatenated. Additionally, if the items stored in an +array are not of a fixed-size (ie: strings, other arrays, etc) +then an additional framing offset is stored for each item. The +size of this offset is either 1, 2 or 4 bytes depending on the +overall size of the container. Additionally, extra padding bytes +are added as required for alignment of child values.

    +

    Tuples (including dictionary entries) use the amount of space +required to store each of their members, concatenated, plus one +framing offset (as per arrays) for each non-fixed-sized item in +the tuple, except for the last one. Additionally, extra padding +bytes are added as required for alignment of child values.

    +

    Variants use the same amount of space as the item inside of the +variant, plus 1 byte, plus the length of the type string for the +item inside the variant.

    +

    As an example, consider a dictionary mapping strings to variants. +In the case that the dictionary is empty, 0 bytes are required for +the serialization.

    +

    If we add an item ‘width’ that maps to the int32 value of 500 then +we will use 4 bytes to store the int32 (so 6 for the variant +containing it) and 6 bytes for the string. The variant must be +aligned to 8 after the 6 bytes of the string, so that’s 2 extra +bytes. 6 (string) + 2 (padding) + 6 (variant) is 14 bytes used +for the dictionary entry. An additional 1 byte is added to the +array as a framing offset making a total of 15 bytes.

    +

    If we add another entry, ‘title’ that maps to a nullable string +that happens to have a value of null, then we use 0 bytes for the +null value (and 3 bytes for the variant to contain it along with +its type string) plus 6 bytes for the string. Again, we need 2 +padding bytes. That makes a total of 6 + 2 + 3 = 11 bytes.

    +

    We now require extra padding between the two items in the array. +After the 14 bytes of the first item, that’s 2 bytes required. +We now require 2 framing offsets for an extra two +bytes. 14 + 2 + 11 + 2 = 29 bytes to encode the entire two-item +dictionary.

    +

    §Type Information Cache

    +

    For each GVariant type that currently exists in the program a type +information structure is kept in the type information cache. The +type information structure is required for rapid deserialization.

    +

    Continuing with the above example, if a GVariant exists with the +type a{sv} then a type information struct will exist for +a{sv}, {sv}, s, and v. Multiple uses of the same type +will share the same type information. Additionally, all +single-digit types are stored in read-only static memory and do +not contribute to the writable memory footprint of a program using +GVariant.

    +

    Aside from the type information structures stored in read-only +memory, there are two forms of type information. One is used for +container types where there is a single element type: arrays and +maybe types. The other is used for container types where there +are multiple element types: tuples and dictionary entries.

    +

    Array type info structures are 6 * sizeof (void *), plus the +memory required to store the type string itself. This means that +on 32-bit systems, the cache entry for a{sv} would require 30 +bytes of memory (plus allocation overhead).

    +

    Tuple type info structures are 6 * sizeof (void *), plus 4 * sizeof (void *) for each item in the tuple, plus the memory +required to store the type string itself. A 2-item tuple, for +example, would have a type information structure that consumed +writable memory in the size of 14 * sizeof (void *) (plus type +string) This means that on 32-bit systems, the cache entry for +{sv} would require 61 bytes of memory (plus allocation overhead).

    +

    This means that in total, for our a{sv} example, 91 bytes of +type information would be allocated.

    +

    The type information cache, additionally, uses a GLib::HashTable to +store and look up the cached items and stores a pointer to this +hash table in static storage. The hash table is freed when there +are zero items in the type cache.

    +

    Although these sizes may seem large it is important to remember +that a program will probably only have a very small number of +different types of values in it and that only one type information +structure is required for many different values of the same type.

    +

    §Buffer Management Memory

    +

    GVariant uses an internal buffer management structure to deal +with the various different possible sources of serialized data +that it uses. The buffer is responsible for ensuring that the +correct call is made when the data is no longer in use by +GVariant. This may involve a free() or +even GLib::MappedFile::unref().

    +

    One buffer management structure is used for each chunk of +serialized data. The size of the buffer management structure +is 4 * (void *). On 32-bit systems, that’s 16 bytes.

    +

    §GVariant structure

    +

    The size of a GVariant structure is 6 * (void *). On 32-bit +systems, that’s 24 bytes.

    +

    GVariant structures only exist if they are explicitly created +with API calls. For example, if a GVariant is constructed out of +serialized data for the example given above (with the dictionary) +then although there are 9 individual values that comprise the +entire dictionary (two keys, two values, two variants containing +the values, two dictionary entries, plus the dictionary itself), +only 1 GVariant instance exists — the one referring to the +dictionary.

    +

    If calls are made to start accessing the other values then +GVariant instances will exist for those values only for as long +as they are in use (ie: until you call GLib::Variant::unref()). The +type information is shared. The serialized data and the buffer +management structure for that serialized data is shared by the +child.

    +

    §Summary

    +

    To put the entire example together, for our dictionary mapping +strings to variants (with two entries, as given above), we are +using 91 bytes of memory for type information, 29 bytes of memory +for the serialized data, 16 bytes for buffer management and 24 +bytes for the GVariant instance, or a total of 160 bytes, plus +allocation overhead. If we were to use child_value() +to access the two dictionary entries, we would use an additional 48 +bytes. If we were to have other dictionaries of the same type, we +would use more memory for the serialized data and buffer +management for those dictionaries, but the type information would be shared.

    GLib type: Shared boxed type with reference counted clone semantics.

    -

    Implementations§

    Source§

    impl Variant

    Source

    pub fn as_ptr(&self) -> *mut GVariant

    Return the inner pointer to the underlying C value.

    -
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GVariant) -> &Self

    Borrows the underlying C value.

    -
    Source§

    impl Variant

    Source

    pub fn type_(&self) -> &VariantTy

    Returns the type of the value. +

    Implementations§

    Source§

    impl Variant

    Source

    pub fn as_ptr(&self) -> *mut GVariant

    Return the inner pointer to the underlying C value.

    +
    Source

    pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GVariant) -> &Self

    Borrows the underlying C value.

    +
    Source§

    impl Variant

    Source

    pub fn type_(&self) -> &VariantTy

    Returns the type of the value. Determines the type of @self.

    The return value is valid for the lifetime of @self and must not be freed.

    §Returns
    +

    a #GVariantType +Determines the type of @self.

    +

    The return value is valid for the lifetime of @self and must not +be freed.

    +
    §Returns

    a #GVariantType

    -
    Source

    pub fn is<T: StaticVariantType>(&self) -> bool

    Returns true if the type of the value corresponds to T.

    -
    Source

    pub fn is_type(&self, type_: &VariantTy) -> bool

    Returns true if the type of the value corresponds to type_.

    +
    Source

    pub fn is<T: StaticVariantType>(&self) -> bool

    Returns true if the type of the value corresponds to T.

    +
    Source

    pub fn is_type(&self, type_: &VariantTy) -> bool

    Returns true if the type of the value corresponds to type_.

    This is equivalent to self.type_().is_subtype_of(type_).

    -
    Source

    pub fn classify(&self) -> VariantClass

    Returns the classification of the variant. +

    Source

    pub fn classify(&self) -> VariantClass

    Returns the classification of the variant. Classifies @self according to its top-level type.

    -
    §Returns
    +
    §Returns
    +

    the #GVariantClass of @self +Classifies @self according to its top-level type.

    +
    §Returns

    the #GVariantClass of @self

    -
    Source

    pub fn get<T: FromVariant>(&self) -> Option<T>

    Tries to extract a value of type T.

    +
    Source

    pub fn get<T: FromVariant>(&self) -> Option<T>

    Tries to extract a value of type T.

    Returns Some if T matches the variant’s type. Deconstructs a #GVariant instance.

    Think of this function as an analogue to scanf().

    @@ -297,12 +497,27 @@
    §Returns
    see the section on GVariant format strings.

    §format_string
    +

    a #GVariant format string +Deconstructs a #GVariant instance.

    +

    Think of this function as an analogue to scanf().

    +

    The arguments that are expected by this function are entirely +determined by @format_string. @format_string also restricts the +permissible types of @self. It is an error to give a value with +an incompatible type. See the section on +GVariant format strings. +Please note that the syntax of the format string is very likely to be +extended in the future.

    +

    @format_string determines the C types that are used for unpacking +the values and also determines if the values are copied or borrowed, +see the section on +GVariant format strings.

    +
    §format_string

    a #GVariant format string

    -
    Source

    pub fn try_get<T: FromVariant>(&self) -> Result<T, VariantTypeMismatchError>

    Tries to extract a value of type T.

    -
    Source

    pub fn from_variant(value: &Variant) -> Self

    Boxes value.

    -
    Source

    pub fn as_variant(&self) -> Option<Variant>

    Unboxes self.

    +
    Source

    pub fn try_get<T: FromVariant>(&self) -> Result<T, VariantTypeMismatchError>

    Tries to extract a value of type T.

    +
    Source

    pub fn from_variant(value: &Variant) -> Self

    Boxes value.

    +
    Source

    pub fn as_variant(&self) -> Option<Variant>

    Unboxes self.

    Returns Some if self contains a Variant.

    -
    Source

    pub fn child_value(&self, index: usize) -> Variant

    Reads a child item out of a container Variant instance.

    +
    Source

    pub fn child_value(&self, index: usize) -> Variant

    Reads a child item out of a container Variant instance.

    §Panics
    • if self is not a container type.
    • @@ -328,29 +543,51 @@
      §Panics

      This function is O(1).

      §index_

      the index of the child to fetch

      -
      §Returns
      +
      §Returns
      +

      the child at the specified index +Reads a child item out of a container #GVariant instance. This +includes variants, maybes, arrays, tuples and dictionary +entries. It is an error to call this function on any other type of +#GVariant.

      +

      It is an error if @index_ is greater than the number of child items +in the container. See g_variant_n_children().

      +

      The returned value is never floating. You should free it with +g_variant_unref() when you’re done with it.

      +

      Note that values borrowed from the returned child are not guaranteed to +still be valid after the child is freed even if you still hold a reference +to @self, if @self has not been serialized at the time this function is +called. To avoid this, you can serialize @self by calling +g_variant_get_data() and optionally ignoring the return value.

      +

      There may be implementation specific restrictions on deeply nested values, +which would result in the unit tuple being returned as the child value, +instead of further nested children. #GVariant is guaranteed to handle +nesting up to at least 64 levels.

      +

      This function is O(1).

      +
      §index_
      +

      the index of the child to fetch

      +
      §Returns

      the child at the specified index

      -
    Source

    pub fn try_child_value(&self, index: usize) -> Option<Variant>

    Try to read a child item out of a container Variant instance.

    +
    Source

    pub fn try_child_value(&self, index: usize) -> Option<Variant>

    Try to read a child item out of a container Variant instance.

    It returns None if self is not a container type or if the given index is larger than number of children.

    -
    Source

    pub fn try_child_get<T: StaticVariantType + FromVariant>( +

    Source

    pub fn try_child_get<T: StaticVariantType + FromVariant>( &self, index: usize, ) -> Result<Option<T>, VariantTypeMismatchError>

    Try to read a child item out of a container Variant instance.

    It returns Ok(None) if self is not a container type or if the given index is larger than number of children. An error is thrown if the type does not match.

    -
    Source

    pub fn child_get<T: StaticVariantType + FromVariant>(&self, index: usize) -> T

    Read a child item out of a container Variant instance.

    +
    Source

    pub fn child_get<T: StaticVariantType + FromVariant>(&self, index: usize) -> T

    Read a child item out of a container Variant instance.

    §Panics
    • if self is not a container type.
    • if given index is larger than number of children.
    • if the expected variant type does not match
    -
    Source

    pub fn str(&self) -> Option<&str>

    Tries to extract a &str.

    +
    Source

    pub fn str(&self) -> Option<&str>

    Tries to extract a &str.

    Returns Some if the variant has a string type (s, o or g type strings).

    -
    Source

    pub fn fixed_array<T: FixedSizeVariantType>( +

    Source

    pub fn fixed_array<T: FixedSizeVariantType>( &self, ) -> Result<&[T], VariantTypeMismatchError>

    Tries to extract a &[T] from a variant of array type with a suitable element type.

    Returns an error if the type is wrong. @@ -379,34 +616,62 @@

    §Panics
    items in the array.

    §element_size

    the size of each element

    -
    §Returns
    +
    §Returns
    +

    a pointer to +the fixed array +Provides access to the serialized data for an array of fixed-sized +items.

    +

    @self must be an array with fixed-sized elements. Numeric types are +fixed-size, as are tuples containing only other fixed-sized types.

    +

    @element_size must be the size of a single element in the array, +as given by the section on +serialized data memory.

    +

    In particular, arrays of these fixed-sized types can be interpreted +as an array of the given C type, with @element_size set to the size +the appropriate type:

    +
      +
    • G_VARIANT_TYPE_INT16 (etc.): #gint16 (etc.)
    • +
    • G_VARIANT_TYPE_BOOLEAN: #guchar (not #gboolean!)
    • +
    • G_VARIANT_TYPE_BYTE: #guint8
    • +
    • G_VARIANT_TYPE_HANDLE: #guint32
    • +
    • G_VARIANT_TYPE_DOUBLE: #gdouble
    • +
    +

    For example, if calling this function for an array of 32-bit integers, +you might say sizeof(gint32). This value isn’t used except for the purpose +of a double-check that the form of the serialized data matches the caller’s +expectation.

    +

    @n_elements, which must be non-None, is set equal to the number of +items in the array.

    +
    §element_size
    +

    the size of each element

    +
    §Returns

    a pointer to the fixed array

    -
    Source

    pub fn array_from_iter<T: StaticVariantType>( +

    Source

    pub fn array_from_iter<T: StaticVariantType>( children: impl IntoIterator<Item = Variant>, ) -> Self

    Creates a new Variant array from children.

    §Panics

    This function panics if not all variants are of type T.

    -
    Source

    pub fn array_from_iter_with_type( +

    Source

    pub fn array_from_iter_with_type( type_: &VariantTy, children: impl IntoIterator<Item = impl AsRef<Variant>>, ) -> Self

    Creates a new Variant array from children with the specified type.

    §Panics

    This function panics if not all variants are of type type_.

    -
    Source

    pub fn array_from_fixed_array<T: FixedSizeVariantType>(array: &[T]) -> Self

    Creates a new Variant array from a fixed array.

    -
    Source

    pub fn tuple_from_iter( +

    Source

    pub fn array_from_fixed_array<T: FixedSizeVariantType>(array: &[T]) -> Self

    Creates a new Variant array from a fixed array.

    +
    Source

    pub fn tuple_from_iter( children: impl IntoIterator<Item = impl AsRef<Variant>>, ) -> Self

    Creates a new Variant tuple from children.

    -
    Source

    pub fn from_dict_entry(key: &Variant, value: &Variant) -> Self

    Creates a new dictionary entry Variant.

    +
    Source

    pub fn from_dict_entry(key: &Variant, value: &Variant) -> Self

    Creates a new dictionary entry Variant.

    DictEntry should be preferred over this when the types are known statically.

    -
    Source

    pub fn from_maybe<T: StaticVariantType>(child: Option<&Variant>) -> Self

    Creates a new maybe Variant.

    -
    Source

    pub fn from_some(child: &Variant) -> Self

    Creates a new maybe Variant from a child.

    -
    Source

    pub fn from_none(type_: &VariantTy) -> Self

    Creates a new maybe Variant with Nothing.

    -
    Source

    pub fn as_maybe(&self) -> Option<Variant>

    Extract the value of a maybe Variant.

    +
    Source

    pub fn from_maybe<T: StaticVariantType>(child: Option<&Variant>) -> Self

    Creates a new maybe Variant.

    +
    Source

    pub fn from_some(child: &Variant) -> Self

    Creates a new maybe Variant from a child.

    +
    Source

    pub fn from_none(type_: &VariantTy) -> Self

    Creates a new maybe Variant with Nothing.

    +
    Source

    pub fn as_maybe(&self) -> Option<Variant>

    Extract the value of a maybe Variant.

    Returns the child value, or None if the value is Nothing.

    §Panics

    Panics if the variant is not maybe-typed.

    -
    Source

    pub fn print(&self, type_annotate: bool) -> GString

    Pretty-print the contents of this variant in a human-readable form.

    +
    Source

    pub fn print(&self, type_annotate: bool) -> GString

    Pretty-print the contents of this variant in a human-readable form.

    A variant can be recreated from this output via Variant::parse. Pretty-prints @self in the format understood by g_variant_parse().

    The format is described here.

    @@ -415,10 +680,19 @@
    §Panics
    §type_annotate

    true if type information should be included in the output

    -
    §Returns
    +
    §Returns
    +

    a newly-allocated string holding the result. +Pretty-prints @self in the format understood by g_variant_parse().

    +

    The format is described here.

    +

    If @type_annotate is true, then type information is included in +the output.

    +
    §type_annotate
    +

    true if type information should be included in +the output

    +
    §Returns

    a newly-allocated string holding the result.

    -
    Source

    pub fn parse(type_: Option<&VariantTy>, text: &str) -> Result<Self, Error>

    Parses a GVariant from the text representation produced by print().

    -
    Source

    pub fn from_bytes<T: StaticVariantType>(bytes: &Bytes) -> Self

    Constructs a new serialized-mode GVariant instance. +

    Source

    pub fn parse(type_: Option<&VariantTy>, text: &str) -> Result<Self, Error>

    Parses a GVariant from the text representation produced by print().

    +
    Source

    pub fn from_bytes<T: StaticVariantType>(bytes: &Bytes) -> Self

    Constructs a new serialized-mode GVariant instance. Constructs a new serialized-mode #GVariant instance. This is the inner interface for creation of new serialized values that gets called from various functions in gvariant.c.

    @@ -432,9 +706,24 @@
    §bytes

    a #GBytes

    §trusted

    if the contents of @bytes are trusted

    -
    §Returns
    +
    §Returns
    +

    a new #GVariant with a floating reference +Constructs a new serialized-mode #GVariant instance. This is the +inner interface for creation of new serialized values that gets +called from various functions in gvariant.c.

    +

    A reference is taken on @bytes.

    +

    The data in @bytes must be aligned appropriately for the @type_ being loaded. +Otherwise this function will internally create a copy of the memory (since +GLib 2.60) or (in older versions) fail and exit the process.

    +
    §type_
    +

    a #GVariantType

    +
    §bytes
    +

    a #GBytes

    +
    §trusted
    +

    if the contents of @bytes are trusted

    +
    §Returns

    a new #GVariant with a floating reference

    -
    Source

    pub unsafe fn from_bytes_trusted<T: StaticVariantType>(bytes: &Bytes) -> Self

    Constructs a new serialized-mode GVariant instance.

    +
    Source

    pub unsafe fn from_bytes_trusted<T: StaticVariantType>(bytes: &Bytes) -> Self

    Constructs a new serialized-mode GVariant instance.

    This is the same as from_bytes, except that checks on the passed data are skipped.

    You should not use this function on data from external sources.

    @@ -442,7 +731,7 @@
    §Safety

    Since the data is not validated, this is potentially dangerous if called on bytes which are not guaranteed to have come from serialising another Variant. The caller is responsible for ensuring bad data is not passed in.

    -
    Source

    pub fn from_data<T: StaticVariantType, A: AsRef<[u8]>>(data: A) -> Self

    Constructs a new serialized-mode GVariant instance. +

    Source

    pub fn from_data<T: StaticVariantType, A: AsRef<[u8]>>(data: A) -> Self

    Constructs a new serialized-mode GVariant instance. Creates a new #GVariant instance from serialized data.

    @type_ is the type of #GVariant instance that will be constructed. The interpretation of @data depends on knowing the type.

    @@ -466,17 +755,50 @@
    §Safety
    @type_ being loaded. Otherwise this function will internally create a copy of the memory (since GLib 2.60) or (in older versions) fail and exit the process.

    -
    §type_
    +
    §type_

    a definite #GVariantType

    §data

    the serialized data

    -
    §trusted
    +
    §trusted

    true if @data is definitely in normal form

    §notify

    function to call when @data is no longer needed

    -
    §Returns
    +
    §Returns
    +

    a new floating #GVariant of type @type_ +Creates a new #GVariant instance from serialized data.

    +

    @type_ is the type of #GVariant instance that will be constructed. +The interpretation of @data depends on knowing the type.

    +

    @data is not modified by this function and must remain valid with an +unchanging value until such a time as @notify is called with +@user_data. If the contents of @data change before that time then +the result is undefined.

    +

    If @data is trusted to be serialized data in normal form then +@trusted should be true. This applies to serialized data created +within this process or read from a trusted location on the disk (such +as a file installed in /usr/lib alongside your application). You +should set trusted to false if @data is read from the network, a +file in the user’s home directory, etc.

    +

    If @data was not stored in this machine’s native endianness, any multi-byte +numeric values in the returned variant will also be in non-native +endianness. g_variant_byteswap() can be used to recover the original values.

    +

    @notify will be called with @user_data when @data is no longer +needed. The exact time of this call is unspecified and might even be +before this function returns.

    +

    Note: @data must be backed by memory that is aligned appropriately for the +@type_ being loaded. Otherwise this function will internally create a copy of +the memory (since GLib 2.60) or (in older versions) fail and exit the +process.

    +
    §type_
    +

    a definite #GVariantType

    +
    §data
    +

    the serialized data

    +
    §trusted
    +

    true if @data is definitely in normal form

    +
    §notify
    +

    function to call when @data is no longer needed

    +
    §Returns

    a new floating #GVariant of type @type_

    -
    Source

    pub unsafe fn from_data_trusted<T: StaticVariantType, A: AsRef<[u8]>>( +

    Source

    pub unsafe fn from_data_trusted<T: StaticVariantType, A: AsRef<[u8]>>( data: A, ) -> Self

    Constructs a new serialized-mode GVariant instance.

    This is the same as from_data, except that checks on the passed @@ -486,8 +808,8 @@

    §Safety

    Since the data is not validated, this is potentially dangerous if called on bytes which are not guaranteed to have come from serialising another Variant. The caller is responsible for ensuring bad data is not passed in.

    -
    Source

    pub fn from_bytes_with_type(bytes: &Bytes, type_: &VariantTy) -> Self

    Constructs a new serialized-mode GVariant instance with a given type.

    -
    Source

    pub unsafe fn from_bytes_with_type_trusted( +

    Source

    pub fn from_bytes_with_type(bytes: &Bytes, type_: &VariantTy) -> Self

    Constructs a new serialized-mode GVariant instance with a given type.

    +
    Source

    pub unsafe fn from_bytes_with_type_trusted( bytes: &Bytes, type_: &VariantTy, ) -> Self

    Constructs a new serialized-mode GVariant instance with a given type.

    @@ -498,8 +820,8 @@
    §Safety

    Since the data is not validated, this is potentially dangerous if called on bytes which are not guaranteed to have come from serialising another Variant. The caller is responsible for ensuring bad data is not passed in.

    -
    Source

    pub fn from_data_with_type<A: AsRef<[u8]>>(data: A, type_: &VariantTy) -> Self

    Constructs a new serialized-mode GVariant instance with a given type.

    -
    Source

    pub unsafe fn from_data_with_type_trusted<A: AsRef<[u8]>>( +

    Source

    pub fn from_data_with_type<A: AsRef<[u8]>>(data: A, type_: &VariantTy) -> Self

    Constructs a new serialized-mode GVariant instance with a given type.

    +
    Source

    pub unsafe fn from_data_with_type_trusted<A: AsRef<[u8]>>( data: A, type_: &VariantTy, ) -> Self

    Constructs a new serialized-mode GVariant instance with a given type.

    @@ -510,14 +832,20 @@
    §Safety

    Since the data is not validated, this is potentially dangerous if called on bytes which are not guaranteed to have come from serialising another Variant. The caller is responsible for ensuring bad data is not passed in.

    -
    Source

    pub fn data_as_bytes(&self) -> Bytes

    Returns the serialized form of a GVariant instance. +

    Source

    pub fn data_as_bytes(&self) -> Bytes

    Returns the serialized form of a GVariant instance. Returns a pointer to the serialized form of a #GVariant instance. The semantics of this function are exactly the same as g_variant_get_data(), except that the returned #GBytes holds a reference to the variant data.

    -
    §Returns
    +
    §Returns
    +

    A new #GBytes representing the variant data +Returns a pointer to the serialized form of a #GVariant instance. +The semantics of this function are exactly the same as +g_variant_get_data(), except that the returned #GBytes holds +a reference to the variant data.

    +
    §Returns

    A new #GBytes representing the variant data

    -
    Source

    pub fn data(&self) -> &[u8]

    Returns the serialized form of a GVariant instance. +

    Source

    pub fn data(&self) -> &[u8]

    Returns the serialized form of a GVariant instance. Returns a pointer to the serialized form of a #GVariant instance. The returned data may not be in fully-normalised form if read from an untrusted source. The returned data must not be freed; it remains @@ -540,9 +868,33 @@

    §Returns
    G_VARIANT_TYPE_VARIANT and it is always in little-endian order”) or explicitly (by storing the type and/or endianness in addition to the serialized data).

    -
    §Returns
    +
    §Returns
    +

    the serialized form of @self, or None +Returns a pointer to the serialized form of a #GVariant instance. +The returned data may not be in fully-normalised form if read from an +untrusted source. The returned data must not be freed; it remains +valid for as long as @self exists.

    +

    If @self is a fixed-sized value that was deserialized from a +corrupted serialized container then None may be returned. In this +case, the proper thing to do is typically to use the appropriate +number of nul bytes in place of @self. If @self is not fixed-sized +then None is never returned.

    +

    In the case that @self is already in serialized form, this function +is O(1). If the value is not already in serialized form, +serialization occurs implicitly and is approximately O(n) in the size +of the result.

    +

    To deserialize the data returned by this function, in addition to the +serialized data, you must know the type of the #GVariant, and (if the +machine might be different) the endianness of the machine that stored +it. As a result, file formats or network messages that incorporate +serialized #GVariants must include this information either +implicitly (for instance “the file always contains a +G_VARIANT_TYPE_VARIANT and it is always in little-endian order”) or +explicitly (by storing the type and/or endianness in addition to the +serialized data).

    +
    §Returns

    the serialized form of @self, or None

    -
    Source

    pub fn size(&self) -> usize

    Returns the size of serialized form of a GVariant instance. +

    Source

    pub fn size(&self) -> usize

    Returns the size of serialized form of a GVariant instance. Determines the number of bytes that would be required to store @self with g_variant_store().

    If @self has a fixed-sized type then this function always returned @@ -552,9 +904,20 @@

    §Returns
    then this function is O(1). Otherwise, the size is calculated, an operation which is approximately O(n) in the number of values involved.

    -
    §Returns
    +
    §Returns
    +

    the serialized size of @self +Determines the number of bytes that would be required to store @self +with g_variant_store().

    +

    If @self has a fixed-sized type then this function always returned +that fixed size.

    +

    In the case that @self is already in serialized form or the size has +already been calculated (ie: this function has been called before) +then this function is O(1). Otherwise, the size is calculated, an +operation which is approximately O(n) in the number of values +involved.

    +
    §Returns

    the serialized size of @self

    -
    Source

    pub fn store(&self, data: &mut [u8]) -> Result<usize, BoolError>

    Stores the serialized form of a GVariant instance into the given slice.

    +
    Source

    pub fn store(&self, data: &mut [u8]) -> Result<usize, BoolError>

    Stores the serialized form of a GVariant instance into the given slice.

    The slice needs to be big enough. Stores the serialized form of @self at @data. @data should be large enough. See g_variant_get_size().

    @@ -564,8 +927,17 @@
    §Returns

    As with g_variant_get_data(), to be able to deserialize the serialized variant successfully, its type and (if the destination machine might be different) its endianness must also be available.

    +

    This function is approximately O(n) in the size of @data. +Stores the serialized form of @self at @data. @data should be +large enough. See g_variant_get_size().

    +

    The stored data is in machine native byte order but may not be in +fully-normalised form if read from an untrusted source. See +g_variant_get_normal_form() for a solution.

    +

    As with g_variant_get_data(), to be able to deserialize the +serialized variant successfully, its type and (if the destination +machine might be different) its endianness must also be available.

    This function is approximately O(n) in the size of @data.

    -
    Source

    pub fn normal_form(&self) -> Self

    Returns a copy of the variant in normal form. +

    Source

    pub fn normal_form(&self) -> Self

    Returns a copy of the variant in normal form. Gets a #GVariant instance that has the same value as @self and is trusted to be in normal form.

    If @self is already trusted to be in normal form then a new @@ -586,9 +958,31 @@

    §Returns
    reference. Typically, g_variant_take_ref() should be called on the return value from this function to guarantee ownership of a single non-floating reference to it.

    -
    §Returns
    +
    §Returns
    +

    a trusted #GVariant +Gets a #GVariant instance that has the same value as @self and is +trusted to be in normal form.

    +

    If @self is already trusted to be in normal form then a new +reference to @self is returned.

    +

    If @self is not already trusted, then it is scanned to check if it +is in normal form. If it is found to be in normal form then it is +marked as trusted and a new reference to it is returned.

    +

    If @self is found not to be in normal form then a new trusted +#GVariant is created with the same value as @self. The non-normal parts of +@self will be replaced with default values which are guaranteed to be in +normal form.

    +

    It makes sense to call this function if you’ve received #GVariant +data from untrusted sources and you want to ensure your serialized +output is definitely in normal form.

    +

    If @self is already in normal form, a new reference will be returned +(which will be floating if @self is floating). If it is not in normal form, +the newly created #GVariant will be returned with a single non-floating +reference. Typically, g_variant_take_ref() should be called on the return +value from this function to guarantee ownership of a single non-floating +reference to it.

    +
    §Returns

    a trusted #GVariant

    -
    Source

    pub fn byteswap(&self) -> Self

    Returns a copy of the variant in the opposite endianness. +

    Source

    pub fn byteswap(&self) -> Self

    Returns a copy of the variant in the opposite endianness. Performs a byteswapping operation on the contents of @self. The result is that all multi-byte numeric data contained in @self is byteswapped. That includes 16, 32, and 64bit signed and unsigned @@ -603,9 +997,25 @@

    §Returns
    application can be strict about what inputs it rejects.

    The returned value is always in normal form and is marked as trusted. A full, not floating, reference is returned.

    -
    §Returns
    +
    §Returns
    +

    the byteswapped form of @self +Performs a byteswapping operation on the contents of @self. The +result is that all multi-byte numeric data contained in @self is +byteswapped. That includes 16, 32, and 64bit signed and unsigned +integers as well as file handles and double precision floating point +values.

    +

    This function is an identity mapping on any value that does not +contain multi-byte numeric data. That include strings, booleans, +bytes and containers containing only these things (recursively).

    +

    While this function can safely handle untrusted, non-normal data, it is +recommended to check whether the input is in normal form beforehand, using +g_variant_is_normal_form(), and to reject non-normal inputs if your +application can be strict about what inputs it rejects.

    +

    The returned value is always in normal form and is marked as trusted. +A full, not floating, reference is returned.

    +
    §Returns

    the byteswapped form of @self

    -
    Source

    pub fn n_children(&self) -> usize

    Determines the number of children in a container GVariant instance. +

    Source

    pub fn n_children(&self) -> usize

    Determines the number of children in a container GVariant instance. Determines the number of children in a container #GVariant instance. This includes variants, maybes, arrays, tuples and dictionary entries. It is an error to call this function on any other type of @@ -615,12 +1025,23 @@

    §Returns
    array. For tuples it is the number of tuple items (which depends only on the type). For dictionary entries, it is always 2

    This function is O(1).

    -
    §Returns
    +
    §Returns
    +

    the number of children in the container +Determines the number of children in a container #GVariant instance. +This includes variants, maybes, arrays, tuples and dictionary +entries. It is an error to call this function on any other type of +#GVariant.

    +

    For variants, the return value is always 1. For values with maybe +types, it is always zero or one. For arrays, it is the length of the +array. For tuples it is the number of tuple items (which depends +only on the type). For dictionary entries, it is always 2

    +

    This function is O(1).

    +
    §Returns

    the number of children in the container

    -
    Source

    pub fn iter(&self) -> VariantIter

    Create an iterator over items in the variant.

    +
    Source

    pub fn iter(&self) -> VariantIter

    Create an iterator over items in the variant.

    Note that this heap allocates a variant for each element, which can be particularly expensive for large arrays.

    -
    Source

    pub fn array_iter_str( +

    Source

    pub fn array_iter_str( &self, ) -> Result<VariantStrIter<'_>, VariantTypeMismatchError>

    Create an iterator over borrowed strings from a GVariant of type as (array of string).

    This will fail if the variant is not an array of with @@ -633,11 +1054,14 @@

    §Returns
    for s in strs_variant.array_iter_str()? { println!("{}", s); }
    -
    Source

    pub fn is_container(&self) -> bool

    Return whether this Variant is a container type. +

    Source

    pub fn is_container(&self) -> bool

    Return whether this Variant is a container type. Checks if @self is a container.

    -
    §Returns
    +
    §Returns
    +

    true if @self is a container +Checks if @self is a container.

    +
    §Returns

    true if @self is a container

    -
    Source

    pub fn is_normal_form(&self) -> bool

    Return whether this Variant is in normal form. +

    Source

    pub fn is_normal_form(&self) -> bool

    Return whether this Variant is in normal form. Checks if @self is in normal form.

    The main reason to do this is to detect if a given chunk of serialized data is in normal form: load the data into a #GVariant @@ -648,9 +1072,21 @@

    §Returns
    this function will immediately return true.

    There may be implementation specific restrictions on deeply nested values. GVariant is guaranteed to handle nesting up to at least 64 levels.

    -
    §Returns
    +
    §Returns
    +

    true if @self is in normal form +Checks if @self is in normal form.

    +

    The main reason to do this is to detect if a given chunk of +serialized data is in normal form: load the data into a #GVariant +using g_variant_new_from_data() and then use this function to +check.

    +

    If @self is found to be in normal form then it will be marked as +being trusted. If the value was already marked as being trusted then +this function will immediately return true.

    +

    There may be implementation specific restrictions on deeply nested values. +GVariant is guaranteed to handle nesting up to at least 64 levels.

    +
    §Returns

    true if @self is in normal form

    -
    Source

    pub fn is_object_path(string: &str) -> bool

    Return whether input string is a valid VariantClass::ObjectPath. +

    Source

    pub fn is_object_path(string: &str) -> bool

    Return whether input string is a valid VariantClass::ObjectPath. Determines if a given string is a valid D-Bus object path. You should ensure that a string is a valid D-Bus object path before passing it to g_variant_new_object_path().

    @@ -660,49 +1096,69 @@
    §Returns
    (including the one following the final / character) may be empty.

    §string

    a normal C nul-terminated string

    -
    §Returns
    +
    §Returns
    +

    true if @string is a D-Bus object path +Determines if a given string is a valid D-Bus object path. You +should ensure that a string is a valid D-Bus object path before +passing it to g_variant_new_object_path().

    +

    A valid object path starts with / followed by zero or more +sequences of characters separated by / characters. Each sequence +must contain only the characters [A-Z][a-z][0-9]_. No sequence +(including the one following the final / character) may be empty.

    +
    §string
    +

    a normal C nul-terminated string

    +
    §Returns

    true if @string is a D-Bus object path

    -
    Source

    pub fn is_signature(string: &str) -> bool

    Return whether input string is a valid VariantClass::Signature. +

    Source

    pub fn is_signature(string: &str) -> bool

    Return whether input string is a valid VariantClass::Signature. Determines if a given string is a valid D-Bus type signature. You should ensure that a string is a valid D-Bus type signature before passing it to g_variant_new_signature().

    D-Bus type signatures consist of zero or more definite #GVariantType strings in sequence.

    -
    §string
    +
    §string

    a normal C nul-terminated string

    -
    §Returns
    +
    §Returns
    +

    true if @string is a D-Bus type signature +Determines if a given string is a valid D-Bus type signature. You +should ensure that a string is a valid D-Bus type signature before +passing it to g_variant_new_signature().

    +

    D-Bus type signatures consist of zero or more definite #GVariantType +strings in sequence.

    +
    §string
    +

    a normal C nul-terminated string

    +
    §Returns

    true if @string is a D-Bus type signature

    -

    Trait Implementations§

    Source§

    impl AsRef<Variant> for Variant

    Source§

    fn as_ref(&self) -> &Self

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for Variant

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    +

    Trait Implementations§

    Source§

    impl AsRef<Variant> for Variant

    Source§

    fn as_ref(&self) -> &Self

    Converts this type into a shared reference of the (usually inferred) input type.
    Source§

    impl Clone for Variant

    Source§

    fn clone(&self) -> Self

    Makes a clone of this shared reference.

    This increments the strong reference count of the reference. Dropping the reference will decrement it again.

    -
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Variant

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Variant

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<T: StaticVariantType + ToVariant> From<&[T]> for Variant

    Source§

    fn from(s: &[T]) -> Self

    Converts to this type from the input type.
    Source§

    impl From<&OsStr> for Variant

    Source§

    fn from(s: &OsStr) -> Self

    Converts to this type from the input type.
    Source§

    impl From<&Path> for Variant

    Source§

    fn from(p: &Path) -> Self

    Converts to this type from the input type.
    Source§

    impl<'a, T: Into<Variant> + Clone> From<&'a T> for Variant

    Source§

    fn from(v: &'a T) -> Self

    Converts to this type from the input type.
    Source§

    impl From<&str> for Variant

    Source§

    fn from(s: &str) -> Self

    Converts to this type from the input type.
    Source§

    impl From<()> for Variant

    Source§

    fn from(_: ()) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0> From<(T0,)> for Variant
    where - T0: Into<Variant>,

    Source§

    fn from(t: (T0,)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1> From<(T0, T1)> for Variant
    where +

    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Variant

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Variant

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<T: StaticVariantType + ToVariant> From<&[T]> for Variant

    Source§

    fn from(s: &[T]) -> Self

    Converts to this type from the input type.
    Source§

    impl From<&OsStr> for Variant

    Source§

    fn from(s: &OsStr) -> Self

    Converts to this type from the input type.
    Source§

    impl From<&Path> for Variant

    Source§

    fn from(p: &Path) -> Self

    Converts to this type from the input type.
    Source§

    impl<'a, T: Into<Variant> + Clone> From<&'a T> for Variant

    Source§

    fn from(v: &'a T) -> Self

    Converts to this type from the input type.
    Source§

    impl From<&str> for Variant

    Source§

    fn from(s: &str) -> Self

    Converts to this type from the input type.
    Source§

    impl From<()> for Variant

    Source§

    fn from(_: ()) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0> From<(T0,)> for Variant
    where + T0: Into<Variant>,

    Source§

    fn from(t: (T0,)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1> From<(T0, T1)> for Variant
    where T0: Into<Variant>, - T1: Into<Variant>,

    Source§

    fn from(t: (T0, T1)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2> From<(T0, T1, T2)> for Variant
    where + T1: Into<Variant>,

    Source§

    fn from(t: (T0, T1)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2> From<(T0, T1, T2)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, - T2: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for Variant
    where + T2: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, - T3: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4> From<(T0, T1, T2, T3, T4)> for Variant
    where + T3: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4> From<(T0, T1, T2, T3, T4)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, T3: Into<Variant>, - T4: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5> From<(T0, T1, T2, T3, T4, T5)> for Variant
    where + T4: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5> From<(T0, T1, T2, T3, T4, T5)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, T3: Into<Variant>, T4: Into<Variant>, - T5: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> From<(T0, T1, T2, T3, T4, T5, T6)> for Variant
    where + T5: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> From<(T0, T1, T2, T3, T4, T5, T6)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, T3: Into<Variant>, T4: Into<Variant>, T5: Into<Variant>, - T6: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for Variant
    where + T6: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -710,7 +1166,7 @@
    §Returns
    T4: Into<Variant>, T5: Into<Variant>, T6: Into<Variant>, - T7: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for Variant
    where + T7: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -719,7 +1175,7 @@
    §Returns
    T5: Into<Variant>, T6: Into<Variant>, T7: Into<Variant>, - T8: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Variant
    where + T8: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -729,7 +1185,7 @@
    §Returns
    T6: Into<Variant>, T7: Into<Variant>, T8: Into<Variant>, - T9: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for Variant
    where + T9: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -740,7 +1196,7 @@
    §Returns
    T7: Into<Variant>, T8: Into<Variant>, T9: Into<Variant>, - T10: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for Variant
    where + T10: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -752,7 +1208,7 @@
    §Returns
    T8: Into<Variant>, T9: Into<Variant>, T10: Into<Variant>, - T11: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for Variant
    where + T11: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -765,7 +1221,7 @@
    §Returns
    T9: Into<Variant>, T10: Into<Variant>, T11: Into<Variant>, - T12: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> for Variant
    where + T12: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -779,7 +1235,7 @@
    §Returns
    T10: Into<Variant>, T11: Into<Variant>, T12: Into<Variant>, - T13: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> for Variant
    where + T13: Into<Variant>,

    Source§

    fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -794,9 +1250,9 @@
    §Returns
    T11: Into<Variant>, T12: Into<Variant>, T13: Into<Variant>, - T14: Into<Variant>,

    Source§

    fn from( t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), -) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> for Variant
    where +) -> Self

    Converts to this type from the input type.
    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)> for Variant
    where T0: Into<Variant>, T1: Into<Variant>, T2: Into<Variant>, @@ -812,25 +1268,25 @@
    §Returns
    T12: Into<Variant>, T13: Into<Variant>, T14: Into<Variant>, - T15: Into<Variant>,

    Source§

    fn from( t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), -) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> From<BTreeMap<K, V>> for Variant
    where +) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> From<BTreeMap<K, V>> for Variant

    Source§

    fn from(m: BTreeMap<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> From<DictEntry<K, V>> for Variant

    Source§

    fn from(m: BTreeMap<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> From<DictEntry<K, V>> for Variant

    Source§

    fn from(e: DictEntry<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> From<FixedSizeVariantArray<A, T>> for Variant

    Source§

    fn from(a: FixedSizeVariantArray<A, T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Handle> for Variant

    Source§

    fn from(h: Handle) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> From<HashMap<K, V>> for Variant

    Source§

    fn from(e: DictEntry<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl<A: AsRef<[T]>, T: FixedSizeVariantType> From<FixedSizeVariantArray<A, T>> for Variant

    Source§

    fn from(a: FixedSizeVariantArray<A, T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Handle> for Variant

    Source§

    fn from(h: Handle) -> Self

    Converts to this type from the input type.
    Source§

    impl<K, V> From<HashMap<K, V>> for Variant

    Source§

    fn from(m: HashMap<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ObjectPath> for Variant

    Source§

    fn from(p: ObjectPath) -> Self

    Converts to this type from the input type.
    Source§

    impl<T: StaticVariantType + Into<Variant>> From<Option<T>> for Variant

    Source§

    fn from(v: Option<T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<OsString> for Variant

    Source§

    fn from(s: OsString) -> Self

    Converts to this type from the input type.
    Source§

    impl From<PathBuf> for Variant

    Source§

    fn from(p: PathBuf) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Signature> for Variant

    Source§

    fn from(s: Signature) -> Self

    Converts to this type from the input type.
    Source§

    impl From<String> for Variant

    Source§

    fn from(s: String) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Variant> for VariantDict

    Source§

    fn from(other: Variant) -> Self

    Converts to this type from the input type.
    Source§

    impl From<VariantDict> for Variant

    Source§

    fn from(d: VariantDict) -> Self

    Consume a given VariantDict and call VariantDict::end on it.

    + V: StaticVariantType + Into<Variant>,
    Source§

    fn from(m: HashMap<K, V>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<ObjectPath> for Variant

    Source§

    fn from(p: ObjectPath) -> Self

    Converts to this type from the input type.
    Source§

    impl<T: StaticVariantType + Into<Variant>> From<Option<T>> for Variant

    Source§

    fn from(v: Option<T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<OsString> for Variant

    Source§

    fn from(s: OsString) -> Self

    Converts to this type from the input type.
    Source§

    impl From<PathBuf> for Variant

    Source§

    fn from(p: PathBuf) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Signature> for Variant

    Source§

    fn from(s: Signature) -> Self

    Converts to this type from the input type.
    Source§

    impl From<String> for Variant

    Source§

    fn from(s: String) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Variant> for VariantDict

    Source§

    fn from(other: Variant) -> Self

    Converts to this type from the input type.
    Source§

    impl From<VariantDict> for Variant

    Source§

    fn from(d: VariantDict) -> Self

    Consume a given VariantDict and call VariantDict::end on it.

    Note: While this method consumes the VariantDict, the underlying object could still be accessed through other clones because of the reference counted clone semantics.

    -
    Source§

    impl<T: StaticVariantType + Into<Variant>> From<Vec<T>> for Variant

    Source§

    fn from(v: Vec<T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<bool> for Variant

    Source§

    fn from(v: bool) -> Self

    Converts to this type from the input type.
    Source§

    impl From<f64> for Variant

    Source§

    fn from(v: f64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i16> for Variant

    Source§

    fn from(v: i16) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i32> for Variant

    Source§

    fn from(v: i32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i64> for Variant

    Source§

    fn from(v: i64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u16> for Variant

    Source§

    fn from(v: u16) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u32> for Variant

    Source§

    fn from(v: u32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u64> for Variant

    Source§

    fn from(v: u64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u8> for Variant

    Source§

    fn from(v: u8) -> Self

    Converts to this type from the input type.
    Source§

    impl<T: Into<Variant> + StaticVariantType> FromIterator<T> for Variant

    Source§

    fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromStr for Variant

    Source§

    type Err = Error

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl FromVariant for Variant

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl HasParamSpec for Variant

    Source§

    type ParamSpec = ParamSpecVariant

    Source§

    type SetValue = Variant

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = for<'a> fn(_: &'a str, _: &'a VariantTy) -> ParamSpecVariantBuilder<'a>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Variant

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +

    Source§

    impl<T: StaticVariantType + Into<Variant>> From<Vec<T>> for Variant

    Source§

    fn from(v: Vec<T>) -> Self

    Converts to this type from the input type.
    Source§

    impl From<bool> for Variant

    Source§

    fn from(v: bool) -> Self

    Converts to this type from the input type.
    Source§

    impl From<f64> for Variant

    Source§

    fn from(v: f64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i16> for Variant

    Source§

    fn from(v: i16) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i32> for Variant

    Source§

    fn from(v: i32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<i64> for Variant

    Source§

    fn from(v: i64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u16> for Variant

    Source§

    fn from(v: u16) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u32> for Variant

    Source§

    fn from(v: u32) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u64> for Variant

    Source§

    fn from(v: u64) -> Self

    Converts to this type from the input type.
    Source§

    impl From<u8> for Variant

    Source§

    fn from(v: u8) -> Self

    Converts to this type from the input type.
    Source§

    impl<T: Into<Variant> + StaticVariantType> FromIterator<T> for Variant

    Source§

    fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

    Creates a value from an iterator. Read more
    Source§

    impl FromStr for Variant

    Source§

    type Err = Error

    The associated error which can be returned from parsing.
    Source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    Source§

    impl FromVariant for Variant

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value. Read more
    Source§

    impl HasParamSpec for Variant

    Source§

    type ParamSpec = ParamSpecVariant

    Source§

    type SetValue = Variant

    Preferred value to be used as setter for the associated ParamSpec.
    Source§

    type BuilderFn = for<'a> fn(_: &'a str, _: &'a VariantTy) -> ParamSpecVariantBuilder<'a>

    Source§

    fn param_spec_builder() -> Self::BuilderFn

    Source§

    impl Hash for Variant

    Source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl PartialEq for Variant

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Variant

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,
    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl PartialEq for Variant

    Source§

    fn eq(&self, other: &Self) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Variant

    Source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl StaticType for Variant

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl StaticVariantType for Variant

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for Variant

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl Eq for Variant

    Source§

    impl Send for Variant

    Source§

    impl Sync for Variant

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    Source§

    impl StaticType for Variant

    Source§

    fn static_type() -> Type

    Returns the type identifier of Self.
    Source§

    impl StaticVariantType for Variant

    Source§

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.
    Source§

    impl ToVariant for Variant

    Source§

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.
    Source§

    impl Eq for Variant

    Source§

    impl Send for Variant

    Source§

    impl Sync for Variant

    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> CloneToUninit for T
    where @@ -863,8 +1319,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    Source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    Source§

    impl<T> TransparentType for T

    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where diff --git a/git/docs/glib/variant/struct.VariantTypeMismatchError.html b/git/docs/glib/variant/struct.VariantTypeMismatchError.html index 6bacbd2c7d25..804de1c143b4 100644 --- a/git/docs/glib/variant/struct.VariantTypeMismatchError.html +++ b/git/docs/glib/variant/struct.VariantTypeMismatchError.html @@ -71,13 +71,13 @@ -
    glib::variant

    Struct VariantTypeMismatchError

    Source
    pub struct VariantTypeMismatchError {
    +
    glib::variant

    Struct VariantTypeMismatchError

    Source
    pub struct VariantTypeMismatchError {
         pub actual: VariantType,
         pub expected: VariantType,
     }
    Expand description

    An error returned from the try_get function on a Variant when the expected type does not match the actual type.

    -

    Fields§

    §actual: VariantType§expected: VariantType

    Implementations§

    Source§

    impl VariantTypeMismatchError

    Source

    pub fn new(actual: VariantType, expected: VariantType) -> Self

    Trait Implementations§

    Source§

    impl Clone for VariantTypeMismatchError

    Source§

    fn clone(&self) -> VariantTypeMismatchError

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for VariantTypeMismatchError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for VariantTypeMismatchError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for VariantTypeMismatchError

    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl PartialEq for VariantTypeMismatchError

    Source§

    fn eq(&self, other: &VariantTypeMismatchError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for VariantTypeMismatchError

    Source§

    impl StructuralPartialEq for VariantTypeMismatchError

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Fields§

    §actual: VariantType§expected: VariantType

    Implementations§

    Source§

    impl VariantTypeMismatchError

    Source

    pub fn new(actual: VariantType, expected: VariantType) -> Self

    Trait Implementations§

    Source§

    impl Clone for VariantTypeMismatchError

    Source§

    fn clone(&self) -> VariantTypeMismatchError

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for VariantTypeMismatchError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for VariantTypeMismatchError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for VariantTypeMismatchError

    1.30.0 · Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl PartialEq for VariantTypeMismatchError

    Source§

    fn eq(&self, other: &VariantTypeMismatchError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    Source§

    impl Eq for VariantTypeMismatchError

    Source§

    impl StructuralPartialEq for VariantTypeMismatchError

    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> CloneToUninit for T
    where diff --git a/git/docs/glib/variant/trait.FixedSizeVariantType.html b/git/docs/glib/variant/trait.FixedSizeVariantType.html index 635a4108fe0b..bc898f1fe9d0 100644 --- a/git/docs/glib/variant/trait.FixedSizeVariantType.html +++ b/git/docs/glib/variant/trait.FixedSizeVariantType.html @@ -71,8 +71,8 @@ -
    glib::variant

    Trait FixedSizeVariantType

    Source
    pub unsafe trait FixedSizeVariantType:
    +
    glib::variant

    Trait FixedSizeVariantType

    Source
    pub unsafe trait FixedSizeVariantType:
         StaticVariantType
         + Sized
         + Copy { }
    Expand description

    Trait for fixed size variant types.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl FixedSizeVariantType for bool

    Source§

    impl FixedSizeVariantType for f64

    Source§

    impl FixedSizeVariantType for i16

    Source§

    impl FixedSizeVariantType for i32

    Source§

    impl FixedSizeVariantType for i64

    Source§

    impl FixedSizeVariantType for u8

    Source§

    impl FixedSizeVariantType for u16

    Source§

    impl FixedSizeVariantType for u32

    Source§

    impl FixedSizeVariantType for u64

    Implementors§

    \ No newline at end of file +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl FixedSizeVariantType for bool

    Source§

    impl FixedSizeVariantType for f64

    Source§

    impl FixedSizeVariantType for i16

    Source§

    impl FixedSizeVariantType for i32

    Source§

    impl FixedSizeVariantType for i64

    Source§

    impl FixedSizeVariantType for u8

    Source§

    impl FixedSizeVariantType for u16

    Source§

    impl FixedSizeVariantType for u32

    Source§

    impl FixedSizeVariantType for u64

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/variant/trait.FromVariant.html b/git/docs/glib/variant/trait.FromVariant.html index 12d65c773340..78cada199d54 100644 --- a/git/docs/glib/variant/trait.FromVariant.html +++ b/git/docs/glib/variant/trait.FromVariant.html @@ -71,46 +71,46 @@ -
    glib::variant

    Trait FromVariant

    Source
    pub trait FromVariant: Sized + StaticVariantType {
    +
    glib::variant

    Trait FromVariant

    Source
    pub trait FromVariant: Sized + StaticVariantType {
         // Required method
         fn from_variant(variant: &Variant) -> Option<Self>;
     }
    Expand description

    Extracts a value.

    -

    Required Methods§

    Source

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value.

    +

    Required Methods§

    Source

    fn from_variant(variant: &Variant) -> Option<Self>

    Tries to extract a value.

    Returns Some if the variant’s type matches Self.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl FromVariant for bool

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for f64

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for i16

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for i32

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for i64

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u8

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u16

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u32

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u64

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for ()

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for String

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for OsString

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for PathBuf

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<K, V> FromVariant for BTreeMap<K, V>
    where +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl FromVariant for bool

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for f64

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for i16

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for i32

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for i64

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u8

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u16

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u32

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for u64

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for ()

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for String

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for OsString

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl FromVariant for PathBuf

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<K, V> FromVariant for BTreeMap<K, V>
    where K: FromVariant + Eq + Ord, - V: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<K, V, H> FromVariant for HashMap<K, V, H>
    where + V: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<K, V, H> FromVariant for HashMap<K, V, H>
    where K: FromVariant + Eq + Hash, V: FromVariant, - H: BuildHasher + Default,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0> FromVariant for (T0,)
    where - T0: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1> FromVariant for (T0, T1)
    where + H: BuildHasher + Default,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0> FromVariant for (T0,)
    where + T0: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1> FromVariant for (T0, T1)
    where T0: FromVariant, - T1: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2> FromVariant for (T0, T1, T2)
    where + T1: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2> FromVariant for (T0, T1, T2)
    where T0: FromVariant, T1: FromVariant, - T2: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3> FromVariant for (T0, T1, T2, T3)
    where + T2: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3> FromVariant for (T0, T1, T2, T3)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, - T3: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4> FromVariant for (T0, T1, T2, T3, T4)
    where + T3: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4> FromVariant for (T0, T1, T2, T3, T4)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, T3: FromVariant, - T4: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5> FromVariant for (T0, T1, T2, T3, T4, T5)
    where + T4: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5> FromVariant for (T0, T1, T2, T3, T4, T5)

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> FromVariant for (T0, T1, T2, T3, T4, T5, T6)
    where + T5: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> FromVariant for (T0, T1, T2, T3, T4, T5, T6)

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7)
    where + T6: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -118,7 +118,7 @@ T4: FromVariant, T5: FromVariant, T6: FromVariant, - T7: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
    where + T7: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -127,7 +127,7 @@ T5: FromVariant, T6: FromVariant, T7: FromVariant, - T8: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    where + T8: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -137,7 +137,7 @@ T6: FromVariant, T7: FromVariant, T8: FromVariant, - T9: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
    where + T9: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -148,7 +148,7 @@ T7: FromVariant, T8: FromVariant, T9: FromVariant, - T10: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
    where + T10: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -160,7 +160,7 @@ T8: FromVariant, T9: FromVariant, T10: FromVariant, - T11: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
    where + T11: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -173,7 +173,7 @@ T9: FromVariant, T10: FromVariant, T11: FromVariant, - T12: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
    where + T12: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -187,7 +187,7 @@ T10: FromVariant, T11: FromVariant, T12: FromVariant, - T13: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
    where + T13: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -202,7 +202,7 @@ T11: FromVariant, T12: FromVariant, T13: FromVariant, - T14: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
    where + T14: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> FromVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
    where T0: FromVariant, T1: FromVariant, T2: FromVariant, @@ -218,6 +218,6 @@ T12: FromVariant, T13: FromVariant, T14: FromVariant, - T15: FromVariant,

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T: FromVariant> FromVariant for Vec<T>

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T: StaticVariantType + FromVariant> FromVariant for Option<T>

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Implementors§

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T: FromVariant> FromVariant for Vec<T>

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Source§

    impl<T: StaticVariantType + FromVariant> FromVariant for Option<T>

    Source§

    fn from_variant(variant: &Variant) -> Option<Self>

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/variant/trait.StaticVariantType.html b/git/docs/glib/variant/trait.StaticVariantType.html index ceba3a7835f6..f865a34bd9ec 100644 --- a/git/docs/glib/variant/trait.StaticVariantType.html +++ b/git/docs/glib/variant/trait.StaticVariantType.html @@ -71,45 +71,45 @@ -
    glib::variant

    Trait StaticVariantType

    Source
    pub trait StaticVariantType {
    +
    glib::variant

    Trait StaticVariantType

    Source
    pub trait StaticVariantType {
         // Required method
         fn static_variant_type() -> Cow<'static, VariantTy>;
     }
    Expand description

    Returns VariantType of Self.

    -

    Required Methods§

    Source

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.

    -

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl StaticVariantType for bool

    Source§

    impl StaticVariantType for f64

    Source§

    impl StaticVariantType for i16

    Source§

    impl StaticVariantType for i32

    Source§

    impl StaticVariantType for i64

    Source§

    impl StaticVariantType for str

    Source§

    impl StaticVariantType for u8

    Source§

    impl StaticVariantType for u16

    Source§

    impl StaticVariantType for u32

    Source§

    impl StaticVariantType for u64

    Source§

    impl StaticVariantType for ()

    Source§

    impl StaticVariantType for String

    Source§

    impl StaticVariantType for OsStr

    Source§

    impl StaticVariantType for OsString

    Source§

    impl StaticVariantType for Path

    Source§

    impl StaticVariantType for PathBuf

    Source§

    impl<K, V> StaticVariantType for BTreeMap<K, V>
    where +

    Required Methods§

    Source

    fn static_variant_type() -> Cow<'static, VariantTy>

    Returns the VariantType corresponding to Self.

    +

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementations on Foreign Types§

    Source§

    impl StaticVariantType for bool

    Source§

    impl StaticVariantType for f64

    Source§

    impl StaticVariantType for i16

    Source§

    impl StaticVariantType for i32

    Source§

    impl StaticVariantType for i64

    Source§

    impl StaticVariantType for str

    Source§

    impl StaticVariantType for u8

    Source§

    impl StaticVariantType for u16

    Source§

    impl StaticVariantType for u32

    Source§

    impl StaticVariantType for u64

    Source§

    impl StaticVariantType for ()

    Source§

    impl StaticVariantType for String

    Source§

    impl StaticVariantType for OsStr

    Source§

    impl StaticVariantType for OsString

    Source§

    impl StaticVariantType for Path

    Source§

    impl StaticVariantType for PathBuf

    Source§

    impl<K, V> StaticVariantType for BTreeMap<K, V>

    Source§

    impl<K, V, H> StaticVariantType for HashMap<K, V, H>
    where + V: StaticVariantType,

    Source§

    impl<K, V, H> StaticVariantType for HashMap<K, V, H>

    Source§

    impl<T0> StaticVariantType for (T0,)
    where - T0: StaticVariantType,

    Source§

    impl<T0, T1> StaticVariantType for (T0, T1)
    where + H: BuildHasher + Default,

    Source§

    impl<T0> StaticVariantType for (T0,)
    where + T0: StaticVariantType,

    Source§

    impl<T0, T1> StaticVariantType for (T0, T1)

    Source§

    impl<T0, T1, T2> StaticVariantType for (T0, T1, T2)
    where + T1: StaticVariantType,

    Source§

    impl<T0, T1, T2> StaticVariantType for (T0, T1, T2)

    Source§

    impl<T0, T1, T2, T3> StaticVariantType for (T0, T1, T2, T3)
    where + T2: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3> StaticVariantType for (T0, T1, T2, T3)

    Source§

    impl<T0, T1, T2, T3, T4> StaticVariantType for (T0, T1, T2, T3, T4)
    where + T3: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4> StaticVariantType for (T0, T1, T2, T3, T4)

    Source§

    impl<T0, T1, T2, T3, T4, T5> StaticVariantType for (T0, T1, T2, T3, T4, T5)
    where + T4: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5> StaticVariantType for (T0, T1, T2, T3, T4, T5)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6)
    where + T5: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7)
    where + T6: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
    where + T7: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    where + T8: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
    where + T9: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
    where + T10: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
    where + T11: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
    where + T12: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
    where + T13: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
    where + T14: StaticVariantType,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> StaticVariantType for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

    Source§

    impl<T: StaticVariantType> StaticVariantType for Option<T>

    Source§

    impl<T: StaticVariantType> StaticVariantType for [T]

    Source§

    impl<T: StaticVariantType> StaticVariantType for Vec<T>

    Source§

    impl<T: ?Sized + StaticVariantType> StaticVariantType for &T

    Implementors§

    \ No newline at end of file + T15: StaticVariantType,
    Source§

    impl<T: StaticVariantType> StaticVariantType for Option<T>

    Source§

    impl<T: StaticVariantType> StaticVariantType for [T]

    Source§

    impl<T: StaticVariantType> StaticVariantType for Vec<T>

    Source§

    impl<T: ?Sized + StaticVariantType> StaticVariantType for &T

    Implementors§

    \ No newline at end of file diff --git a/git/docs/glib/variant/trait.ToVariant.html b/git/docs/glib/variant/trait.ToVariant.html index 20dceb36dc04..e1635b784765 100644 --- a/git/docs/glib/variant/trait.ToVariant.html +++ b/git/docs/glib/variant/trait.ToVariant.html @@ -71,44 +71,44 @@ -
    glib::variant

    Trait ToVariant

    Source
    pub trait ToVariant {
    +
    glib::variant

    Trait ToVariant

    Source
    pub trait ToVariant {
         // Required method
         fn to_variant(&self) -> Variant;
     }
    Expand description

    Converts to Variant.

    -

    Required Methods§

    Source

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.

    -

    Implementations on Foreign Types§

    Source§

    impl ToVariant for bool

    Source§

    impl ToVariant for f64

    Source§

    impl ToVariant for i16

    Source§

    impl ToVariant for i32

    Source§

    impl ToVariant for i64

    Source§

    impl ToVariant for str

    Source§

    impl ToVariant for u8

    Source§

    impl ToVariant for u16

    Source§

    impl ToVariant for u32

    Source§

    impl ToVariant for u64

    Source§

    impl ToVariant for ()

    Source§

    impl ToVariant for String

    Source§

    impl ToVariant for OsStr

    Source§

    impl ToVariant for OsString

    Source§

    impl ToVariant for Path

    Source§

    impl ToVariant for PathBuf

    Source§

    impl<K, V> ToVariant for BTreeMap<K, V>
    where +

    Required Methods§

    Source

    fn to_variant(&self) -> Variant

    Returns a Variant clone of self.

    +

    Implementations on Foreign Types§

    Source§

    impl ToVariant for bool

    Source§

    impl ToVariant for f64

    Source§

    impl ToVariant for i16

    Source§

    impl ToVariant for i32

    Source§

    impl ToVariant for i64

    Source§

    impl ToVariant for str

    Source§

    impl ToVariant for u8

    Source§

    impl ToVariant for u16

    Source§

    impl ToVariant for u32

    Source§

    impl ToVariant for u64

    Source§

    impl ToVariant for ()

    Source§

    impl ToVariant for String

    Source§

    impl ToVariant for OsStr

    Source§

    impl ToVariant for OsString

    Source§

    impl ToVariant for Path

    Source§

    impl ToVariant for PathBuf

    Source§

    impl<K, V> ToVariant for BTreeMap<K, V>

    Source§

    impl<K, V> ToVariant for HashMap<K, V>

    Source§

    impl<K, V> ToVariant for HashMap<K, V>

    Source§

    impl<T0> ToVariant for (T0,)
    where - T0: ToVariant,

    Source§

    impl<T0, T1> ToVariant for (T0, T1)

    Source§

    impl<T0> ToVariant for (T0,)
    where + T0: ToVariant,

    Source§

    impl<T0, T1> ToVariant for (T0, T1)
    where T0: ToVariant, - T1: ToVariant,

    Source§

    impl<T0, T1, T2> ToVariant for (T0, T1, T2)
    where + T1: ToVariant,

    Source§

    impl<T0, T1, T2> ToVariant for (T0, T1, T2)
    where T0: ToVariant, T1: ToVariant, - T2: ToVariant,

    Source§

    impl<T0, T1, T2, T3> ToVariant for (T0, T1, T2, T3)
    where + T2: ToVariant,

    Source§

    impl<T0, T1, T2, T3> ToVariant for (T0, T1, T2, T3)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, - T3: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4> ToVariant for (T0, T1, T2, T3, T4)
    where + T3: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4> ToVariant for (T0, T1, T2, T3, T4)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, - T4: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5> ToVariant for (T0, T1, T2, T3, T4, T5)
    where + T4: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5> ToVariant for (T0, T1, T2, T3, T4, T5)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, - T5: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> ToVariant for (T0, T1, T2, T3, T4, T5, T6)
    where + T5: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6> ToVariant for (T0, T1, T2, T3, T4, T5, T6)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, T3: ToVariant, T4: ToVariant, T5: ToVariant, - T6: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7)
    where + T6: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -116,7 +116,7 @@ T4: ToVariant, T5: ToVariant, T6: ToVariant, - T7: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
    where + T7: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -125,7 +125,7 @@ T5: ToVariant, T6: ToVariant, T7: ToVariant, - T8: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    where + T8: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -135,7 +135,7 @@ T6: ToVariant, T7: ToVariant, T8: ToVariant, - T9: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
    where + T9: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -146,7 +146,7 @@ T7: ToVariant, T8: ToVariant, T9: ToVariant, - T10: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
    where + T10: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -158,7 +158,7 @@ T8: ToVariant, T9: ToVariant, T10: ToVariant, - T11: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
    where + T11: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -171,7 +171,7 @@ T9: ToVariant, T10: ToVariant, T11: ToVariant, - T12: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
    where + T12: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -185,7 +185,7 @@ T10: ToVariant, T11: ToVariant, T12: ToVariant, - T13: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
    where + T13: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -200,7 +200,7 @@ T11: ToVariant, T12: ToVariant, T13: ToVariant, - T14: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
    where + T14: ToVariant,

    Source§

    impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> ToVariant for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
    where T0: ToVariant, T1: ToVariant, T2: ToVariant, @@ -216,6 +216,6 @@ T12: ToVariant, T13: ToVariant, T14: ToVariant, - T15: ToVariant,

    Source§

    impl<T: StaticVariantType + ToVariant> ToVariant for Option<T>

    Source§

    impl<T: StaticVariantType + ToVariant> ToVariant for [T]

    Source§

    impl<T: StaticVariantType + ToVariant> ToVariant for Vec<T>

    Source§

    impl<T: ?Sized + ToVariant> ToVariant for &T

    Implementors§

    \ No newline at end of file diff --git a/git/docs/graphene/struct.Box.html b/git/docs/graphene/struct.Box.html index 3008e2544034..ad153a817c38 100644 --- a/git/docs/graphene/struct.Box.html +++ b/git/docs/graphene/struct.Box.html @@ -247,8 +247,8 @@
    §Returns
    T: HasParamSpec,
    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Euler.html b/git/docs/graphene/struct.Euler.html index 9cca1ad14cee..7e1154676c9b 100644 --- a/git/docs/graphene/struct.Euler.html +++ b/git/docs/graphene/struct.Euler.html @@ -241,8 +241,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Frustum.html b/git/docs/graphene/struct.Frustum.html index ab12b235e18c..80d8776820f5 100644 --- a/git/docs/graphene/struct.Frustum.html +++ b/git/docs/graphene/struct.Frustum.html @@ -166,8 +166,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Matrix.html b/git/docs/graphene/struct.Matrix.html index 9b3140896fdb..8a12e50b3a03 100644 --- a/git/docs/graphene/struct.Matrix.html +++ b/git/docs/graphene/struct.Matrix.html @@ -623,8 +623,8 @@
    §Returns
    < T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Plane.html b/git/docs/graphene/struct.Plane.html index 58975b71b1b4..885de4cf1b87 100644 --- a/git/docs/graphene/struct.Plane.html +++ b/git/docs/graphene/struct.Plane.html @@ -190,8 +190,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Point.html b/git/docs/graphene/struct.Point.html index c3308d7628ed..a0032017b294 100644 --- a/git/docs/graphene/struct.Point.html +++ b/git/docs/graphene/struct.Point.html @@ -158,8 +158,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Point3D.html b/git/docs/graphene/struct.Point3D.html index ed23037a271b..4f7c7b42b569 100644 --- a/git/docs/graphene/struct.Point3D.html +++ b/git/docs/graphene/struct.Point3D.html @@ -207,8 +207,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Quad.html b/git/docs/graphene/struct.Quad.html index 6ec066b60e90..212b5c1d2e48 100644 --- a/git/docs/graphene/struct.Quad.html +++ b/git/docs/graphene/struct.Quad.html @@ -148,8 +148,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Quaternion.html b/git/docs/graphene/struct.Quaternion.html index 9bc26e620353..5de4f6790efa 100644 --- a/git/docs/graphene/struct.Quaternion.html +++ b/git/docs/graphene/struct.Quaternion.html @@ -257,8 +257,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Ray.html b/git/docs/graphene/struct.Ray.html index ac05159dc2c1..c266d8bb3b66 100644 --- a/git/docs/graphene/struct.Ray.html +++ b/git/docs/graphene/struct.Ray.html @@ -208,8 +208,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Rect.html b/git/docs/graphene/struct.Rect.html index 7c55cf07a11a..c0932d5c5afb 100644 --- a/git/docs/graphene/struct.Rect.html +++ b/git/docs/graphene/struct.Rect.html @@ -313,8 +313,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Size.html b/git/docs/graphene/struct.Size.html index da1f63b0fe02..1db7058e94d9 100644 --- a/git/docs/graphene/struct.Size.html +++ b/git/docs/graphene/struct.Size.html @@ -136,8 +136,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Sphere.html b/git/docs/graphene/struct.Sphere.html index 1cddfd530a9e..b435e151f406 100644 --- a/git/docs/graphene/struct.Sphere.html +++ b/git/docs/graphene/struct.Sphere.html @@ -172,8 +172,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Triangle.html b/git/docs/graphene/struct.Triangle.html index 9e75fb55c5f5..41f862556cd6 100644 --- a/git/docs/graphene/struct.Triangle.html +++ b/git/docs/graphene/struct.Triangle.html @@ -237,8 +237,8 @@
    §Returns
    T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Vec2.html b/git/docs/graphene/struct.Vec2.html index 0c232f1a6b9f..2aa76f088034 100644 --- a/git/docs/graphene/struct.Vec2.html +++ b/git/docs/graphene/struct.Vec2.html @@ -223,8 +223,8 @@
    §Returns
    < T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Vec3.html b/git/docs/graphene/struct.Vec3.html index c370815a450d..299510d444c7 100644 --- a/git/docs/graphene/struct.Vec3.html +++ b/git/docs/graphene/struct.Vec3.html @@ -260,8 +260,8 @@
    §Returns
    < T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/graphene/struct.Vec4.html b/git/docs/graphene/struct.Vec4.html index f3e9c32752bc..d9b93e903c9d 100644 --- a/git/docs/graphene/struct.Vec4.html +++ b/git/docs/graphene/struct.Vec4.html @@ -270,8 +270,8 @@
    §Returns
    < T: HasParamSpec,

    Source§

    type Value = T

    Source§

    fn get<R, F>(&self, f: F) -> R
    where F: Fn(&<T as PropertyGet>::Value) -> R,

    Source§

    impl<T> StaticTypeExt for T
    where T: StaticType,

    Source§

    fn ensure_type()

    Ensures that the type has been registered with the type system.
    Source§

    impl<T> ToOwned for T
    where - T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where - T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where + T: Clone,

    Source§

    type Owned = T

    The resulting type after obtaining ownership.
    Source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    Source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    Source§

    impl<T> ToSendValue for T
    where + T: Send + ToValue + ?Sized,

    Source§

    fn to_send_value(&self) -> SendValue

    Returns a SendValue clone of self.
    Source§

    impl<T, U> TryFrom<U> for T
    where U: Into<T>,

    Source§

    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> TryFromClosureReturnValue for T
    where T: for<'a> FromValue<'a> + StaticType + 'static,

    Source§

    impl<T, U> TryInto<U> for T
    where U: TryFrom<T>,

    Source§

    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.
    Source§

    impl<'a, T, C, E> FromValueOptional<'a> for T
    where diff --git a/git/docs/index.html b/git/docs/index.html index 7a54906d5b0e..0b3f522cbaee 100644 --- a/git/docs/index.html +++ b/git/docs/index.html @@ -1,4 +1,4 @@ -Index of crates +Index of crates