Struct glib::param_spec::ParamSpecCharBuilder
source · pub struct ParamSpecCharBuilder<'a> {
name: &'a str,
nick: Option<&'a str>,
blurb: Option<&'a str>,
flags: ParamFlags,
minimum: Option<i8>,
maximum: Option<i8>,
default_value: Option<i8>,
}
Fields§
§name: &'a str
§nick: Option<&'a str>
§blurb: Option<&'a str>
§flags: ParamFlags
§minimum: Option<i8>
§maximum: Option<i8>
§default_value: Option<i8>
Implementations§
source§impl<'a> ParamSpecCharBuilder<'a>
impl<'a> ParamSpecCharBuilder<'a>
Trait Implementations§
source§impl<'a> Default for ParamSpecCharBuilder<'a>
impl<'a> Default for ParamSpecCharBuilder<'a>
source§fn default() -> ParamSpecCharBuilder<'a>
fn default() -> ParamSpecCharBuilder<'a>
Returns the “default value” for a type. Read more
source§impl<'a> ParamSpecBuilderExt<'a> for ParamSpecCharBuilder<'a>
impl<'a> ParamSpecBuilderExt<'a> for ParamSpecCharBuilder<'a>
source§fn set_flags(&mut self, flags: ParamFlags)
fn set_flags(&mut self, flags: ParamFlags)
Implementation detail.
source§fn current_flags(&self) -> ParamFlags
fn current_flags(&self) -> ParamFlags
Implementation detail.
source§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.source§fn flags(self, flags: ParamFlags) -> Self
fn flags(self, flags: ParamFlags) -> Self
Default:
glib::ParamFlags::READWRITE
source§fn read_only(self) -> Self
fn read_only(self) -> Self
Mark the property as read only and drops the READWRITE flag set by default.
source§fn write_only(self) -> Self
fn write_only(self) -> Self
Mark the property as write only and drops the READWRITE flag set by default.
source§fn construct_only(self) -> Self
fn construct_only(self) -> Self
Mark the property as construct only
source§fn lax_validation(self) -> Self
fn lax_validation(self) -> Self
Mark the property as lax validation
source§fn explicit_notify(self) -> Self
fn explicit_notify(self) -> Self
Mark the property as explicit notify
source§fn deprecated(self) -> Self
fn deprecated(self) -> Self
Mark the property as deprecated
Auto Trait Implementations§
impl<'a> Freeze for ParamSpecCharBuilder<'a>
impl<'a> RefUnwindSafe for ParamSpecCharBuilder<'a>
impl<'a> Send for ParamSpecCharBuilder<'a>
impl<'a> Sync for ParamSpecCharBuilder<'a>
impl<'a> Unpin for ParamSpecCharBuilder<'a>
impl<'a> UnwindSafe for ParamSpecCharBuilder<'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