pub struct PerPlatformWrapper<T, G> {
pub un_per_platform: PerPlatform<T>,
/* private fields */
}Expand description
Newtype wrapper used to implement a FromLua instance for FromPlatformOverridable
This is necessary, because Rust doesn’t yet support specialization.
Fields§
§un_per_platform: PerPlatform<T>Trait Implementations§
Source§impl<'de, T, G> Deserialize<'de> for PerPlatformWrapper<T, G>where
T: FromPlatformOverridable<G, T, Err: ToString>,
G: PlatformOverridable<Err: ToString> + DeserializeOwned + Default + Clone,
impl<'de, T, G> Deserialize<'de> for PerPlatformWrapper<T, G>where
T: FromPlatformOverridable<G, T, Err: ToString>,
G: PlatformOverridable<Err: ToString> + DeserializeOwned + Default + Clone,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, G> FromLua for PerPlatformWrapper<T, G>where
T: FromPlatformOverridable<G, T, Err: ToString>,
G: PlatformOverridable<Err: ToString> + DeserializeOwned + Default + Clone,
impl<T, G> FromLua for PerPlatformWrapper<T, G>where
T: FromPlatformOverridable<G, T, Err: ToString>,
G: PlatformOverridable<Err: ToString> + DeserializeOwned + Default + Clone,
Auto Trait Implementations§
impl<T, G> Freeze for PerPlatformWrapper<T, G>where
T: Freeze,
impl<T, G> RefUnwindSafe for PerPlatformWrapper<T, G>where
T: RefUnwindSafe,
G: RefUnwindSafe,
impl<T, G> Send for PerPlatformWrapper<T, G>
impl<T, G> Sync for PerPlatformWrapper<T, G>
impl<T, G> Unpin for PerPlatformWrapper<T, G>
impl<T, G> UnwindSafe for PerPlatformWrapper<T, G>where
T: UnwindSafe,
G: UnwindSafe,
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> 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<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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.