pub struct StyleOptions {
pub overrides: Option<Vec<Word>>,
}Fields§
§overrides: Option<Vec<Word>>Trait Implementations§
Source§impl Clone for StyleOptions
impl Clone for StyleOptions
Source§fn clone(&self) -> StyleOptions
fn clone(&self) -> StyleOptions
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 StyleOptions
impl Debug for StyleOptions
Source§impl Default for StyleOptions
impl Default for StyleOptions
Source§fn default() -> StyleOptions
fn default() -> StyleOptions
Returns the “default value” for a type. Read more
Source§impl From<StyleOptions> for JsValue
impl From<StyleOptions> for JsValue
Source§fn from(value: StyleOptions) -> Self
fn from(value: StyleOptions) -> Self
Converts to this type from the input type.
Source§impl From<StyleOptions> for LuaResult<StyleOptions>
Available on crate feature luamodule only.
impl From<StyleOptions> for LuaResult<StyleOptions>
Available on crate feature
luamodule only.Source§fn from(val: StyleOptions) -> LuaResult<StyleOptions>
fn from(val: StyleOptions) -> LuaResult<StyleOptions>
Converts to this type from the input type.
Source§impl FromLua for StyleOptions
Available on crate feature luamodule only.
impl FromLua for StyleOptions
Available on crate feature
luamodule only.Source§impl FromStr for StyleOptions
impl FromStr for StyleOptions
Source§impl FromWasmAbi for StyleOptions
impl FromWasmAbi for StyleOptions
Source§impl<'py> IntoPyObject<'py> for StyleOptions
impl<'py> IntoPyObject<'py> for StyleOptions
Source§type Target = StyleOptions
type Target = StyleOptions
The Python output type
Source§type Output = Bound<'py, <StyleOptions as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <StyleOptions 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 IntoWasmAbi for StyleOptions
impl IntoWasmAbi for StyleOptions
Source§impl LongRefFromWasmAbi for StyleOptions
impl LongRefFromWasmAbi for StyleOptions
Source§impl OptionFromWasmAbi for StyleOptions
impl OptionFromWasmAbi for StyleOptions
Source§impl OptionIntoWasmAbi for StyleOptions
impl OptionIntoWasmAbi for StyleOptions
Source§impl PartialEq for StyleOptions
impl PartialEq for StyleOptions
Source§impl PyClass for StyleOptions
impl PyClass for StyleOptions
Source§impl PyClassImpl for StyleOptions
impl PyClassImpl for StyleOptions
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 = 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 ThreadChecker = SendablePyClass<StyleOptions>
type ThreadChecker = SendablePyClass<StyleOptions>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
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>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyTypeInfo for StyleOptions
impl PyTypeInfo for StyleOptions
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 RefFromWasmAbi for StyleOptions
impl RefFromWasmAbi for StyleOptions
Source§type Anchor = RcRef<StyleOptions>
type Anchor = RcRef<StyleOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for StyleOptions
impl RefMutFromWasmAbi for StyleOptions
Source§impl TryFrom<&[u8]> for StyleOptions
impl TryFrom<&[u8]> for StyleOptions
Source§impl TryFrom<&String> for StyleOptions
impl TryFrom<&String> for StyleOptions
Source§impl TryFrom<&str> for StyleOptions
impl TryFrom<&str> for StyleOptions
Source§impl TryFrom<String> for StyleOptions
impl TryFrom<String> for StyleOptions
Source§impl TryFromJsValue for StyleOptions
impl TryFromJsValue for StyleOptions
Source§impl VectorFromWasmAbi for StyleOptions
impl VectorFromWasmAbi for StyleOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[StyleOptions]>
Source§impl VectorIntoWasmAbi for StyleOptions
impl VectorIntoWasmAbi for StyleOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[StyleOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for StyleOptions
impl WasmDescribeVector for StyleOptions
impl DerefToPyAny for StyleOptions
impl ExtractPyClassWithClone for StyleOptions
impl StructuralPartialEq for StyleOptions
impl SupportsConstructor for StyleOptions
impl SupportsInstanceProperty for StyleOptions
impl SupportsStaticProperty for StyleOptions
Auto Trait Implementations§
impl Freeze for StyleOptions
impl RefUnwindSafe for StyleOptions
impl Send for StyleOptions
impl Sync for StyleOptions
impl Unpin for StyleOptions
impl UnwindSafe for StyleOptions
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> FromLuaMulti for Twhere
T: FromLua,
impl<T> FromLuaMulti for Twhere
T: FromLua,
Source§fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue, i: usize, to: Option<&str>, lua: &Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &RawLua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &RawLua, ) -> Result<T, Error>
Source§impl<'a, 'py, T> FromPyObject<'a, 'py> for T
impl<'a, 'py, T> FromPyObject<'a, 'py> for T
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<'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> 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.
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.