pub struct CBase<'interface> { /* private fields */ }Expand description
Owned emf-core-base interface.
Implementations§
Trait Implementations§
Source§impl<'interface> CBaseAPILoader<'interface> for CBase<'interface>
impl<'interface> CBaseAPILoader<'interface> for CBase<'interface>
Source§impl<'interface> CBaseAccess<'interface> for CBase<'interface>
impl<'interface> CBaseAccess<'interface> for CBase<'interface>
Source§impl<'interface> CBaseInterfaceInfo for CBase<'interface>
impl<'interface> CBaseInterfaceInfo for CBase<'interface>
Source§type Interface = <CBaseRef<'interface> as CBaseInterfaceInfo>::Interface
type Interface = <CBaseRef<'interface> as CBaseInterfaceInfo>::Interface
Type of the interface.
Source§fn interface_version(&self) -> Version
fn interface_version(&self) -> Version
Returns the version of the interface.
Source§fn internal_interface(&self) -> &Self::Interface
fn internal_interface(&self) -> &Self::Interface
Fetches the internal low-level interface.
Source§impl<'interface> SysAPIMin<'interface> for CBase<'interface>
impl<'interface> SysAPIMin<'interface> for CBase<'interface>
Source§impl VersionBinding for CBase<'_>
impl VersionBinding for CBase<'_>
Source§unsafe fn new_short(&self, major: i32, minor: i32, patch: i32) -> Version
unsafe fn new_short(&self, major: i32, minor: i32, patch: i32) -> Version
Constructs a new version. Read more
Source§unsafe fn new_long(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8,
) -> Version
unsafe fn new_long( &self, major: i32, minor: i32, patch: i32, release_type: ReleaseType, release_number: i8, ) -> Version
Constructs a new version. Read more
Source§unsafe fn new_full(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8,
build: i64,
) -> Version
unsafe fn new_full( &self, major: i32, minor: i32, patch: i32, release_type: ReleaseType, release_number: i8, build: i64, ) -> Version
Constructs a new version. Read more
Source§unsafe fn from_string(
&self,
buffer: NonNullConst<ConstSpan<u8>>,
) -> Result<Version, Error>
unsafe fn from_string( &self, buffer: NonNullConst<ConstSpan<u8>>, ) -> Result<Version, Error>
Constructs a version from a string. Read more
Source§unsafe fn string_length_short(&self, version: NonNullConst<Version>) -> usize
unsafe fn string_length_short(&self, version: NonNullConst<Version>) -> usize
Computes the length of the short version string. Read more
Source§unsafe fn string_length_long(&self, version: NonNullConst<Version>) -> usize
unsafe fn string_length_long(&self, version: NonNullConst<Version>) -> usize
Computes the length of the long version string. Read more
Source§unsafe fn string_length_full(&self, version: NonNullConst<Version>) -> usize
unsafe fn string_length_full(&self, version: NonNullConst<Version>) -> usize
Computes the length of the full version string. Read more
Source§unsafe fn as_string_short(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>,
) -> Result<usize, Error>
unsafe fn as_string_short( &self, version: NonNullConst<Version>, buffer: NonNull<MutSpan<u8>>, ) -> Result<usize, Error>
Represents the version as a short string. Read more
Source§unsafe fn as_string_long(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>,
) -> Result<usize, Error>
unsafe fn as_string_long( &self, version: NonNullConst<Version>, buffer: NonNull<MutSpan<u8>>, ) -> Result<usize, Error>
Represents the version as a long string. Read more
Source§unsafe fn as_string_full(
&self,
version: NonNullConst<Version>,
buffer: NonNull<MutSpan<u8>>,
) -> Result<usize, Error>
unsafe fn as_string_full( &self, version: NonNullConst<Version>, buffer: NonNull<MutSpan<u8>>, ) -> Result<usize, Error>
Represents the version as a full string. Read more
Source§unsafe fn string_is_valid(
&self,
version_string: NonNullConst<ConstSpan<u8>>,
) -> Bool
unsafe fn string_is_valid( &self, version_string: NonNullConst<ConstSpan<u8>>, ) -> Bool
Checks whether the version string is valid. Read more
Source§unsafe fn compare(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>,
) -> i32
unsafe fn compare( &self, lhs: NonNullConst<Version>, rhs: NonNullConst<Version>, ) -> i32
Compares two versions. Read more
Source§unsafe fn compare_weak(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>,
) -> i32
unsafe fn compare_weak( &self, lhs: NonNullConst<Version>, rhs: NonNullConst<Version>, ) -> i32
Compares two versions. Read more
Source§unsafe fn compare_strong(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>,
) -> i32
unsafe fn compare_strong( &self, lhs: NonNullConst<Version>, rhs: NonNullConst<Version>, ) -> i32
Compares two versions. Read more
Source§unsafe fn is_compatible(
&self,
lhs: NonNullConst<Version>,
rhs: NonNullConst<Version>,
) -> Bool
unsafe fn is_compatible( &self, lhs: NonNullConst<Version>, rhs: NonNullConst<Version>, ) -> Bool
Checks for compatibility of two versions. Read more
Auto Trait Implementations§
impl<'interface> !Freeze for CBase<'interface>
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§
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> VersionAPI for Twhere
T: VersionBinding,
impl<T> VersionAPI for Twhere
T: VersionBinding,
Source§fn new_short(&self, major: i32, minor: i32, patch: i32) -> Version
fn new_short(&self, major: i32, minor: i32, patch: i32) -> Version
Constructs a new version. Read more
Source§fn new_long(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8,
) -> Version
fn new_long( &self, major: i32, minor: i32, patch: i32, release_type: ReleaseType, release_number: i8, ) -> Version
Constructs a new version. Read more
Source§fn new_full(
&self,
major: i32,
minor: i32,
patch: i32,
release_type: ReleaseType,
release_number: i8,
build: i64,
) -> Version
fn new_full( &self, major: i32, minor: i32, patch: i32, release_type: ReleaseType, release_number: i8, build: i64, ) -> Version
Constructs a new version. Read more
Source§fn from_string(&self, buffer: impl AsRef<str>) -> Result<Version, Error>
fn from_string(&self, buffer: impl AsRef<str>) -> Result<Version, Error>
Constructs a version from a string. Read more
Source§fn string_length_short(&self, version: &Version) -> usize
fn string_length_short(&self, version: &Version) -> usize
Computes the length of the short version string. Read more
Source§fn string_length_long(&self, version: &Version) -> usize
fn string_length_long(&self, version: &Version) -> usize
Computes the length of the long version string. Read more
Source§fn string_length_full(&self, version: &Version) -> usize
fn string_length_full(&self, version: &Version) -> usize
Computes the length of the full version string. Read more
Source§fn as_string_short(
&self,
version: &Version,
buffer: impl AsMut<str>,
) -> Result<usize, Error>
fn as_string_short( &self, version: &Version, buffer: impl AsMut<str>, ) -> Result<usize, Error>
Represents the version as a short string. Read more
Source§fn as_string_long(
&self,
version: &Version,
buffer: impl AsMut<str>,
) -> Result<usize, Error>
fn as_string_long( &self, version: &Version, buffer: impl AsMut<str>, ) -> Result<usize, Error>
Represents the version as a long string. Read more
Source§fn as_string_full(
&self,
version: &Version,
buffer: impl AsMut<str>,
) -> Result<usize, Error>
fn as_string_full( &self, version: &Version, buffer: impl AsMut<str>, ) -> Result<usize, Error>
Represents the version as a full string. Read more
Source§fn string_is_valid(&self, version_string: impl AsRef<str>) -> bool
fn string_is_valid(&self, version_string: impl AsRef<str>) -> bool
Checks whether the version string is valid. Read more
Source§fn compare_weak(&self, lhs: &Version, rhs: &Version) -> Ordering
fn compare_weak(&self, lhs: &Version, rhs: &Version) -> Ordering
Compares two versions. Read more