Struct ParamSpecDoubleBuilder
pub struct ParamSpecDoubleBuilder<'a> { /* private fields */ }Implementations§
§impl<'a> ParamSpecDoubleBuilder<'a>
impl<'a> ParamSpecDoubleBuilder<'a>
pub fn minimum(self, value: f64) -> ParamSpecDoubleBuilder<'a>
pub fn minimum(self, value: f64) -> ParamSpecDoubleBuilder<'a>
Default: < f64 > :: MIN
pub fn maximum(self, value: f64) -> ParamSpecDoubleBuilder<'a>
pub fn maximum(self, value: f64) -> ParamSpecDoubleBuilder<'a>
Default: < f64 > :: MAX
pub fn default_value(self, value: f64) -> ParamSpecDoubleBuilder<'a>
pub fn default_value(self, value: f64) -> ParamSpecDoubleBuilder<'a>
Default: < f64 as Default > :: default()
pub fn build(self) -> ParamSpec
Trait Implementations§
§impl<'a> Default for ParamSpecDoubleBuilder<'a>
impl<'a> Default for ParamSpecDoubleBuilder<'a>
§fn default() -> ParamSpecDoubleBuilder<'a>
fn default() -> ParamSpecDoubleBuilder<'a>
Returns the “default value” for a type. Read more
§impl<'a> ParamSpecBuilderExt<'a> for ParamSpecDoubleBuilder<'a>
impl<'a> ParamSpecBuilderExt<'a> for ParamSpecDoubleBuilder<'a>
§fn set_flags(&mut self, flags: ParamFlags)
fn set_flags(&mut self, flags: ParamFlags)
Implementation detail.
§fn current_flags(&self) -> ParamFlags
fn current_flags(&self) -> ParamFlags
Implementation detail.
§fn nick(self, nick: &'a str) -> Self
fn nick(self, nick: &'a str) -> Self
By default, the nickname of its redirect target will be used if it has one.
Otherwise,
self.name will be used.§fn flags(self, flags: ParamFlags) -> Self
fn flags(self, flags: ParamFlags) -> Self
Default:
glib::ParamFlags::READWRITE§fn read_only(self) -> Self
fn read_only(self) -> Self
Mark the property as read only and drops the READWRITE flag set by default.
§fn write_only(self) -> Self
fn write_only(self) -> Self
Mark the property as write only and drops the READWRITE flag set by default.
§fn construct_only(self) -> Self
fn construct_only(self) -> Self
Mark the property as construct only
§fn lax_validation(self) -> Self
fn lax_validation(self) -> Self
Mark the property as lax validation
§fn explicit_notify(self) -> Self
fn explicit_notify(self) -> Self
Mark the property as explicit notify
§fn deprecated(self) -> Self
fn deprecated(self) -> Self
Mark the property as deprecated
Auto Trait Implementations§
impl<'a> Freeze for ParamSpecDoubleBuilder<'a>
impl<'a> RefUnwindSafe for ParamSpecDoubleBuilder<'a>
impl<'a> Send for ParamSpecDoubleBuilder<'a>
impl<'a> Sync for ParamSpecDoubleBuilder<'a>
impl<'a> Unpin for ParamSpecDoubleBuilder<'a>
impl<'a> UnwindSafe for ParamSpecDoubleBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.