#[repr(C)]pub struct NLModelConfiguration {
pub ptr: Id<Object>,
}
Expand description
The configuration parameters of a natural language model.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl NLModelConfiguration
impl NLModelConfiguration
Sourcepub fn language(&self) -> Option<NLLanguage>
pub fn language(&self) -> Option<NLLanguage>
The language the model supports.
Sourcepub fn revision(&self) -> UInt
pub fn revision(&self) -> UInt
The version of the Natural Language framework that trained the model.
Sourcepub fn supported_revisions_for_type(type: NLModelType) -> NSIndexSet
pub fn supported_revisions_for_type(type: NLModelType) -> NSIndexSet
Returns the versions of the Natural Language framework the OS supports.
Sourcepub fn current_revision_for_type(type: NLModelType) -> UInt
pub fn current_revision_for_type(type: NLModelType) -> UInt
Returns the current Natural Language framework version in the OS.
Sourcepub fn ml_type(&self) -> NLModelType
pub fn ml_type(&self) -> NLModelType
The natural language model type of the model.
Methods from Deref<Target = Object>§
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.