Enum libgir::analysis::try_from_glib::TryFromGlib
source · pub enum TryFromGlib {
Default,
NotImplemented,
Option,
OptionMandatory,
Result {
ok_type: Arc<str>,
err_type: Arc<str>,
},
ResultInfallible {
ok_type: Arc<str>,
},
}
Variants§
Implementations§
source§impl TryFromGlib
impl TryFromGlib
pub fn from_type_defaults(env: &Env, type_id: TypeId) -> Self
pub fn or_type_defaults(&self, env: &Env, type_id: TypeId) -> Cow<'_, Self>
pub fn from_parameter( env: &Env, type_id: TypeId, configured_parameters: &[&Parameter], ) -> Self
pub fn from_return_value( env: &Env, type_id: TypeId, configured_functions: &[&Function], ) -> Self
Trait Implementations§
source§impl Clone for TryFromGlib
impl Clone for TryFromGlib
source§fn clone(&self) -> TryFromGlib
fn clone(&self) -> TryFromGlib
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TryFromGlib
impl Debug for TryFromGlib
source§impl Default for TryFromGlib
impl Default for TryFromGlib
source§fn default() -> TryFromGlib
fn default() -> TryFromGlib
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TryFromGlib
impl RefUnwindSafe for TryFromGlib
impl Send for TryFromGlib
impl Sync for TryFromGlib
impl Unpin for TryFromGlib
impl UnwindSafe for TryFromGlib
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)