Struct emf_core_base_rs::CBase [−][src]
pub struct CBase<'interface> { /* fields omitted */ }
Owned emf-core-base
interface.
Implementations
Trait Implementations
impl<'interface> CBaseAPILoader<'interface> for CBase<'interface>
[src]
impl<'interface> CBaseAPILoader<'interface> for CBase<'interface>
[src]type Interface = Self
type Interface = Self
Type of the interface.
unsafe fn fetch_interface(
base_module: Option<NonNull<CBaseFFI>>,
get_function_fn: GetFunctionFnFFI
) -> Self::Interface
[src]
unsafe fn fetch_interface(
base_module: Option<NonNull<CBaseFFI>>,
get_function_fn: GetFunctionFnFFI
) -> Self::Interface
[src]Fetches the emf-core-base
interface. Read more
impl<'interface> CBaseAccess<'interface> for CBase<'interface>
[src]
impl<'interface> CBaseAccess<'interface> for CBase<'interface>
[src]fn lock<U>(&self, f: impl FnOnce(&mut Self::Interface) -> U) -> U
[src]
fn lock<U>(&self, f: impl FnOnce(&mut Self::Interface) -> U) -> U
[src]Enters the critical section with the provided function. Read more
fn try_lock<U>(&self, f: impl FnOnce(&mut Self::Interface) -> U) -> Option<U>
[src]
fn try_lock<U>(&self, f: impl FnOnce(&mut Self::Interface) -> U) -> Option<U>
[src]Enters the critical section with the provided function. Read more
unsafe fn assume_locked<U>(
&self,
f: impl FnOnce(&mut Self::Interface) -> U
) -> U
[src]
unsafe fn assume_locked<U>(
&self,
f: impl FnOnce(&mut Self::Interface) -> U
) -> U
[src]Enters the critical section with the provided function without locking. Read more
impl<'interface> CBaseInterfaceInfo for CBase<'interface>
[src]
impl<'interface> CBaseInterfaceInfo for CBase<'interface>
[src]type Interface = <CBaseRef<'interface> as CBaseInterfaceInfo>::Interface
type Interface = <CBaseRef<'interface> as CBaseInterfaceInfo>::Interface
Type of the interface.
fn interface_version(&self) -> Version
[src]
fn interface_version(&self) -> Version
[src]Returns the version of the interface.
fn internal_interface(&self) -> &Self::Interface
[src]
fn internal_interface(&self) -> &Self::Interface
[src]Fetches the internal low-level interface.
impl<'interface> SysAPIMin<'interface> for CBase<'interface>
[src]
impl<'interface> SysAPIMin<'interface> for CBase<'interface>
[src]impl VersionBinding for CBase<'_>
[src]
impl VersionBinding for CBase<'_>
[src]unsafe fn new_short(&self, major: i32, minor: i32, patch: i32) -> Version
[src]
unsafe fn new_short(&self, major: i32, minor: i32, patch: i32) -> Version
[src]Constructs a new version. Read more
unsafe fn new_long(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8
) -> Version
[src]
unsafe fn new_long(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8
) -> Version
[src]Constructs a new version. Read more
unsafe fn new_full(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8,
build: i64
) -> Version
[src]
unsafe fn new_full(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8,
build: i64
) -> Version
[src]Constructs a new version. Read more
unsafe fn from_string(
&self,
buffer: NonNullConst<ConstSpan<u8>>
) -> Result<Version, Error>
[src]
unsafe fn from_string(
&self,
buffer: NonNullConst<ConstSpan<u8>>
) -> Result<Version, Error>
[src]Constructs a version from a string. Read more
unsafe fn string_length_short(&self, version: NonNullConst<Version>) -> usize
[src]
unsafe fn string_length_short(&self, version: NonNullConst<Version>) -> usize
[src]Computes the length of the short version string. Read more
unsafe fn string_length_long(&self, version: NonNullConst<Version>) -> usize
[src]
unsafe fn string_length_long(&self, version: NonNullConst<Version>) -> usize
[src]Computes the length of the long version string. Read more
unsafe fn string_length_full(&self, version: NonNullConst<Version>) -> usize
[src]
unsafe fn string_length_full(&self, version: NonNullConst<Version>) -> usize
[src]Computes the length of the full version string. Read more
unsafe fn as_string_short(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>
) -> Result<usize, Error>
[src]
unsafe fn as_string_short(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>
) -> Result<usize, Error>
[src]Represents the version as a short string. Read more
unsafe fn as_string_long(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>
) -> Result<usize, Error>
[src]
unsafe fn as_string_long(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>
) -> Result<usize, Error>
[src]Represents the version as a long string. Read more
unsafe fn as_string_full(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>
) -> Result<usize, Error>
[src]
unsafe fn as_string_full(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>
) -> Result<usize, Error>
[src]Represents the version as a full string. Read more
unsafe fn string_is_valid(
&self,
version_string: NonNullConst<ConstSpan<u8>>
) -> Bool
[src]
unsafe fn string_is_valid(
&self,
version_string: NonNullConst<ConstSpan<u8>>
) -> Bool
[src]Checks whether the version string is valid. Read more
unsafe fn compare(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> i32
[src]
unsafe fn compare(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> i32
[src]Compares two versions. Read more
unsafe fn compare_weak(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> i32
[src]
unsafe fn compare_weak(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> i32
[src]Compares two versions. Read more
unsafe fn compare_strong(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> i32
[src]
unsafe fn compare_strong(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> i32
[src]Compares two versions. Read more
unsafe fn is_compatible(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> Bool
[src]
unsafe fn is_compatible(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>
) -> Bool
[src]Checks for compatibility of two versions. Read more
Auto Trait Implementations
impl<'interface> !RefUnwindSafe for CBase<'interface>
impl<'interface> !Send for CBase<'interface>
impl<'interface> !Sync for CBase<'interface>
impl<'interface> Unpin for CBase<'interface>
impl<'interface> UnwindSafe for CBase<'interface>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> VersionAPI for T where
T: VersionBinding,
[src]
impl<T> VersionAPI for T where
T: VersionBinding,
[src]pub fn new_long(&Self, i32, i32, i32, ReleaseType, i8) -> Version
[src]
pub fn new_long(&Self, i32, i32, i32, ReleaseType, i8) -> Version
[src]Constructs a new version. Read more
pub fn new_full(&Self, i32, i32, i32, ReleaseType, i8, i64) -> Version
[src]
pub fn new_full(&Self, i32, i32, i32, ReleaseType, i8, i64) -> Version
[src]Constructs a new version. Read more
pub fn from_string(&Self, impl AsRef<str>) -> Result<Version, Error>
[src]
pub fn from_string(&Self, impl AsRef<str>) -> Result<Version, Error>
[src]Constructs a version from a string. Read more
pub fn string_length_short(&Self, &Version) -> usize
[src]
pub fn string_length_short(&Self, &Version) -> usize
[src]Computes the length of the short version string. Read more
pub fn string_length_long(&Self, &Version) -> usize
[src]
pub fn string_length_long(&Self, &Version) -> usize
[src]Computes the length of the long version string. Read more
pub fn string_length_full(&Self, &Version) -> usize
[src]
pub fn string_length_full(&Self, &Version) -> usize
[src]Computes the length of the full version string. Read more
pub fn as_string_short(&Self, &Version, impl AsMut<str>) -> Result<usize, Error>
[src]
pub fn as_string_short(&Self, &Version, impl AsMut<str>) -> Result<usize, Error>
[src]Represents the version as a short string. Read more
pub fn as_string_long(&Self, &Version, impl AsMut<str>) -> Result<usize, Error>
[src]
pub fn as_string_long(&Self, &Version, impl AsMut<str>) -> Result<usize, Error>
[src]Represents the version as a long string. Read more
pub fn as_string_full(&Self, &Version, impl AsMut<str>) -> Result<usize, Error>
[src]
pub fn as_string_full(&Self, &Version, impl AsMut<str>) -> Result<usize, Error>
[src]Represents the version as a full string. Read more