pub struct PyEnvironmentInfo {
pub game_id: String,
pub title: Option<String>,
pub default_fps: Option<u32>,
pub tags: Option<Vec<String>>,
}Available on crate feature
python only.Expand description
Metadata for a single ARC-AGI-3 game environment.
All fields are read-only once the object is constructed by a
:meth:ArcAgiClient.list_environments or
:meth:ArcAgiClient.get_environment call.
ยงSee Also
Fieldsยง
ยงgame_id: StringUnique game identifier (e.g. "ls20").
title: Option<String>Human-readable title.
default_fps: Option<u32>Default frames-per-second.
Classification tags.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Clone for PyEnvironmentInfo
impl Clone for PyEnvironmentInfo
Sourceยงfn clone(&self) -> PyEnvironmentInfo
fn clone(&self) -> PyEnvironmentInfo
Returns a duplicate 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 PyEnvironmentInfo
impl Debug for PyEnvironmentInfo
Sourceยงimpl<'py> IntoPyObject<'py> for PyEnvironmentInfo
impl<'py> IntoPyObject<'py> for PyEnvironmentInfo
Sourceยงtype Target = PyEnvironmentInfo
type Target = PyEnvironmentInfo
The Python output type
Sourceยงtype Output = Bound<'py, <PyEnvironmentInfo as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <PyEnvironmentInfo as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Sourceยงfn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Performs the conversion.
Sourceยงimpl PyClass for PyEnvironmentInfo
impl PyClass for PyEnvironmentInfo
Sourceยงimpl PyClassImpl for PyEnvironmentInfo
impl PyClassImpl for PyEnvironmentInfo
Sourceยงconst MODULE: Option<&str> = ::core::option::Option::None
const MODULE: Option<&str> = ::core::option::Option::None
Module which the class will be associated with. Read more
Sourceยงconst IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Sourceยงconst IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=โฆ)]
Sourceยงconst IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Sourceยงconst IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Sourceยงconst IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
#[pyclass(immutable_type)]
Sourceยงconst RAW_DOC: &'static CStr = /// Metadata for a single ARC-AGI-3 game environment.
///
/// All fields are read-only once the object is constructed by a
/// :meth:`ArcAgiClient.list_environments` or
/// :meth:`ArcAgiClient.get_environment` call.
///
/// # See Also
///
/// - [ARC-AGI-3 Reference](https://arcprize.org/arc-agi/3)
const RAW_DOC: &'static CStr = /// Metadata for a single ARC-AGI-3 game environment. /// /// All fields are read-only once the object is constructed by a /// :meth:`ArcAgiClient.list_environments` or /// :meth:`ArcAgiClient.get_environment` call. /// /// # See Also /// /// - [ARC-AGI-3 Reference](https://arcprize.org/arc-agi/3)
Docstring for the class provided on the struct or enum. Read more
Sourceยงconst DOC: &'static CStr
const DOC: &'static CStr
Fully rendered class doc, including the
text_signature if a constructor is defined. Read moreSourceยงtype Layout = <<PyEnvironmentInfo as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyEnvironmentInfo>
type Layout = <<PyEnvironmentInfo as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyEnvironmentInfo>
Description of how this class is laid out in memory
Sourceยงtype ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
This handles following two situations: Read more
Sourceยงtype PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Immutable or mutable
Sourceยงtype BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], itโs PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
Sourceยงfn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Used to provide the dictoffset slot
(equivalent to tp_dictoffset)
Sourceยงfn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Used to provide the weaklistoffset slot
(equivalent to tp_weaklistoffset
Sourceยงimpl PyMethods<PyEnvironmentInfo> for PyClassImplCollector<PyEnvironmentInfo>
impl PyMethods<PyEnvironmentInfo> for PyClassImplCollector<PyEnvironmentInfo>
fn py_methods(self) -> &'static PyClassItems
Sourceยงimpl PyTypeInfo for PyEnvironmentInfo
impl PyTypeInfo for PyEnvironmentInfo
Sourceยงconst NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
๐Deprecated since 0.28.0:
prefer using ::type_object(py).name() to get the correct runtime value
Class name.
Sourceยงconst MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
๐Deprecated since 0.28.0:
prefer using ::type_object(py).module() to get the correct runtime value
Module name, if any.
Sourceยงfn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Sourceยงfn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for PyEnvironmentInfo
Auto Trait Implementationsยง
impl Freeze for PyEnvironmentInfo
impl RefUnwindSafe for PyEnvironmentInfo
impl Send for PyEnvironmentInfo
impl Sync for PyEnvironmentInfo
impl Unpin for PyEnvironmentInfo
impl UnsafeUnpin for PyEnvironmentInfo
impl UnwindSafe for PyEnvironmentInfo
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ยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Sourceยงfn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self into an owned Python object, dropping type information.Sourceยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Sourceยงimpl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Sourceยงimpl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Sourceยงconst NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
๐Deprecated since 0.27.0:
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.
Name of self. This is used in error messages, for example.