pub struct PyVisibility { /* private fields */ }Implementations§
Source§impl PyVisibility
impl PyVisibility
Sourcepub fn from_owned(component: Visibility) -> (Self, PyComponent)
pub fn from_owned(component: Visibility) -> (Self, PyComponent)
Create from an owned component value. Returns tuple for PyO3 class inheritance.
Sourcepub fn from_borrowed(
storage: ComponentStorage<Visibility>,
) -> (Self, PyComponent)
pub fn from_borrowed( storage: ComponentStorage<Visibility>, ) -> (Self, PyComponent)
Create from a borrowed component storage (for query iteration).
pub fn as_ref(&self) -> PyResult<&Visibility>
pub fn as_mut(&mut self) -> PyResult<&mut Visibility>
Source§impl PyVisibility
impl PyVisibility
Source§impl PyVisibility
impl PyVisibility
pub fn inherited(py: Python<'_>) -> PyResult<Py<Self>>
pub fn visible(py: Python<'_>) -> PyResult<Py<Self>>
pub fn from_numpy(py: Python<'_>, visibility: Py<PyAny>) -> PyResult<Py<PyAny>>
pub fn new() -> (Self, PyComponent)
pub fn is_visible(&self) -> PyResult<bool>
pub fn is_inherited(&self) -> PyResult<bool>
pub fn toggle_inherited_visible(&mut self) -> PyResult<()>
pub fn set_visible(&mut self) -> PyResult<()>
pub fn set_inherited(&mut self) -> PyResult<()>
pub fn __repr__(&self) -> PyResult<String>
Trait Implementations§
Source§impl Clone for PyVisibility
impl Clone for PyVisibility
Source§fn clone(&self) -> PyVisibility
fn clone(&self) -> PyVisibility
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 PyVisibility
impl Debug for PyVisibility
Source§impl From<Visibility> for PyVisibility
impl From<Visibility> for PyVisibility
Source§fn from(component: Visibility) -> Self
fn from(component: Visibility) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PyVisibility
impl PartialEq for PyVisibility
Source§impl PyClass for PyVisibility
impl PyClass for PyVisibility
Source§impl PyClassImpl for PyVisibility
impl PyClassImpl for PyVisibility
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = true
const IS_SUBCLASS: bool = true
#[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 = c"\x00"
const RAW_DOC: &'static CStr = c"\x00"
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 BaseType = PyComponent
type BaseType = PyComponent
Base class
Source§type ThreadChecker = SendablePyClass<PyVisibility>
type ThreadChecker = SendablePyClass<PyVisibility>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForPyVisibility
Source§type PyClassMutability = <<PyComponent as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyComponent as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§type BaseNativeType = <<PyVisibility as PyClassImpl>::BaseType as PyClassBaseType>::BaseNativeType
type BaseNativeType = <<PyVisibility as PyClassImpl>::BaseType as PyClassBaseType>::BaseNativeType
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>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature for PyVisibility
impl PyClassNewTextSignature for PyVisibility
const TEXT_SIGNATURE: &'static str = "()"
Source§impl PyTypeInfo for PyVisibility
impl PyTypeInfo for PyVisibility
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.
Source§impl TryFrom<&Visibility> for PyVisibility
impl TryFrom<&Visibility> for PyVisibility
Source§impl TryFrom<PyVisibility> for Visibility
impl TryFrom<PyVisibility> for Visibility
impl DerefToPyAny for PyVisibility
impl ExtractPyClassWithClone for PyVisibility
Auto Trait Implementations§
impl Freeze for PyVisibility
impl RefUnwindSafe for PyVisibility
impl Send for PyVisibility
impl Sync for PyVisibility
impl Unpin for PyVisibility
impl UnsafeUnpin for PyVisibility
impl UnwindSafe for PyVisibility
Blanket Implementations§
Source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
Source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
Return the
T ShaderType for self. When used in AsBindGroup
derives, it is safe to assume that all images in self exist.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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<'a, 'py, T> FromPyObject<'a, 'py> for T
impl<'a, 'py, T> FromPyObject<'a, 'py> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
Source§impl<T> Pointable for T
impl<T> Pointable 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.
Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.