Struct veloren_common::terrain::structure::structure_block::Cases

source ·
pub struct Cases<Elim: PackedElim> {
Show 40 fields pub None: Elim::None, pub Grass: Elim::Grass, pub TemperateLeaves: Elim::TemperateLeaves, pub PineLeaves: Elim::PineLeaves, pub Acacia: Elim::Acacia, pub Mangrove: Elim::Mangrove, pub PalmLeavesInner: Elim::PalmLeavesInner, pub PalmLeavesOuter: Elim::PalmLeavesOuter, pub Water: Elim::Water, pub GreenSludge: Elim::GreenSludge, pub Fruit: Elim::Fruit, pub Coconut: Elim::Coconut, pub Chest: Elim::Chest, pub Hollow: Elim::Hollow, pub Liana: Elim::Liana, pub Normal: Elim::Normal, pub Log: Elim::Log, pub Filled: Elim::Filled, pub Sprite: Elim::Sprite, pub Chestnut: Elim::Chestnut, pub Baobab: Elim::Baobab, pub BirchWood: Elim::BirchWood, pub FrostpineLeaves: Elim::FrostpineLeaves, pub RotatedSprite: Elim::RotatedSprite, pub EntitySpawner: Elim::EntitySpawner, pub Keyhole: Elim::Keyhole, pub BoneKeyhole: Elim::BoneKeyhole, pub GlassKeyhole: Elim::GlassKeyhole, pub Sign: Elim::Sign, pub KeyholeBars: Elim::KeyholeBars, pub HaniwaKeyhole: Elim::HaniwaKeyhole, pub TerracottaKeyhole: Elim::TerracottaKeyhole, pub SahaginKeyhole: Elim::SahaginKeyhole, pub VampireKeyhole: Elim::VampireKeyhole, pub MyrmidonKeyhole: Elim::MyrmidonKeyhole, pub MinotaurKeyhole: Elim::MinotaurKeyhole, pub MapleLeaves: Elim::MapleLeaves, pub CherryLeaves: Elim::CherryLeaves, pub AutumnLeaves: Elim::AutumnLeaves, pub RedwoodWood: Elim::RedwoodWood,
}

Fields§

§None: Elim::None§Grass: Elim::Grass§TemperateLeaves: Elim::TemperateLeaves§PineLeaves: Elim::PineLeaves§Acacia: Elim::Acacia§Mangrove: Elim::Mangrove§PalmLeavesInner: Elim::PalmLeavesInner§PalmLeavesOuter: Elim::PalmLeavesOuter§Water: Elim::Water§GreenSludge: Elim::GreenSludge§Fruit: Elim::Fruit§Coconut: Elim::Coconut§Chest: Elim::Chest§Hollow: Elim::Hollow§Liana: Elim::Liana§Normal: Elim::Normal§Log: Elim::Log§Filled: Elim::Filled§Sprite: Elim::Sprite§Chestnut: Elim::Chestnut§Baobab: Elim::Baobab§BirchWood: Elim::BirchWood§FrostpineLeaves: Elim::FrostpineLeaves§RotatedSprite: Elim::RotatedSprite§EntitySpawner: Elim::EntitySpawner§Keyhole: Elim::Keyhole§BoneKeyhole: Elim::BoneKeyhole§GlassKeyhole: Elim::GlassKeyhole§Sign: Elim::Sign§KeyholeBars: Elim::KeyholeBars§HaniwaKeyhole: Elim::HaniwaKeyhole§TerracottaKeyhole: Elim::TerracottaKeyhole§SahaginKeyhole: Elim::SahaginKeyhole§VampireKeyhole: Elim::VampireKeyhole§MyrmidonKeyhole: Elim::MyrmidonKeyhole§MinotaurKeyhole: Elim::MinotaurKeyhole§MapleLeaves: Elim::MapleLeaves§CherryLeaves: Elim::CherryLeaves§AutumnLeaves: Elim::AutumnLeaves§RedwoodWood: Elim::RedwoodWood

Trait Implementations§

source§

impl<'de, Elim: PackedElim> Deserialize<'de> for Cases<Elim>
where Elim::None: Deserialize<'de>, Elim::Grass: Deserialize<'de>, Elim::TemperateLeaves: Deserialize<'de>, Elim::PineLeaves: Deserialize<'de>, Elim::Acacia: Deserialize<'de>, Elim::Mangrove: Deserialize<'de>, Elim::PalmLeavesInner: Deserialize<'de>, Elim::PalmLeavesOuter: Deserialize<'de>, Elim::Water: Deserialize<'de>, Elim::GreenSludge: Deserialize<'de>, Elim::Fruit: Deserialize<'de>, Elim::Coconut: Deserialize<'de>, Elim::Chest: Deserialize<'de>, Elim::Hollow: Deserialize<'de>, Elim::Liana: Deserialize<'de>, Elim::Normal: Deserialize<'de>, Elim::Log: Deserialize<'de>, Elim::Filled: Deserialize<'de>, Elim::Sprite: Deserialize<'de>, Elim::Chestnut: Deserialize<'de>, Elim::Baobab: Deserialize<'de>, Elim::BirchWood: Deserialize<'de>, Elim::FrostpineLeaves: Deserialize<'de>, Elim::RotatedSprite: Deserialize<'de>, Elim::EntitySpawner: Deserialize<'de>, Elim::Keyhole: Deserialize<'de>, Elim::BoneKeyhole: Deserialize<'de>, Elim::GlassKeyhole: Deserialize<'de>, Elim::Sign: Deserialize<'de>, Elim::KeyholeBars: Deserialize<'de>, Elim::HaniwaKeyhole: Deserialize<'de>, Elim::TerracottaKeyhole: Deserialize<'de>, Elim::SahaginKeyhole: Deserialize<'de>, Elim::VampireKeyhole: Deserialize<'de>, Elim::MyrmidonKeyhole: Deserialize<'de>, Elim::MinotaurKeyhole: Deserialize<'de>, Elim::MapleLeaves: Deserialize<'de>, Elim::CherryLeaves: Deserialize<'de>, Elim::AutumnLeaves: Deserialize<'de>, Elim::RedwoodWood: Deserialize<'de>,

source§

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<Elim: PackedElim> Serialize for Cases<Elim>

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'a, 'b, Elim: PackedElim, Context, Type, S> Typed<((&'a StructureBlock,), Context), Type, S> for &'b ElimCase<Cases<Elim>>
where &'b Elim::None: Typed<Context, Type, S>, &'b Elim::Grass: Typed<Context, Type, S>, &'b Elim::TemperateLeaves: Typed<Context, Type, S>, &'b Elim::PineLeaves: Typed<Context, Type, S>, &'b Elim::Acacia: Typed<Context, Type, S>, &'b Elim::Mangrove: Typed<Context, Type, S>, &'b Elim::PalmLeavesInner: Typed<Context, Type, S>, &'b Elim::PalmLeavesOuter: Typed<Context, Type, S>, &'b Elim::Water: Typed<Context, Type, S>, &'b Elim::GreenSludge: Typed<Context, Type, S>, &'b Elim::Fruit: Typed<Context, Type, S>, &'b Elim::Coconut: Typed<Context, Type, S>, &'b Elim::Chest: Typed<Context, Type, S>, &'b Elim::Hollow: Typed<Context, Type, S>, &'b Elim::Liana: Typed<Context, Type, S>, &'b Elim::Normal: Typed<((&'a Rgb<u8>,), Context), Type, S>, &'b Elim::Log: Typed<Context, Type, S>, &'b Elim::Filled: Typed<((&'a BlockKind, &'a Rgb<u8>), Context), Type, S>, &'b Elim::Sprite: Typed<((&'a SpriteKind,), Context), Type, S>, &'b Elim::Chestnut: Typed<Context, Type, S>, &'b Elim::Baobab: Typed<Context, Type, S>, &'b Elim::BirchWood: Typed<Context, Type, S>, &'b Elim::FrostpineLeaves: Typed<Context, Type, S>, &'b Elim::RotatedSprite: Typed<((&'a SpriteKind, &'a u8), Context), Type, S>, &'b Elim::EntitySpawner: Typed<((&'a String, &'a f32), Context), Type, S>, &'b Elim::Keyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::BoneKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::GlassKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::Sign: Typed<((&'a Content, &'a u8), Context), Type, S>, &'b Elim::KeyholeBars: Typed<((&'a String,), Context), Type, S>, &'b Elim::HaniwaKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::TerracottaKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::SahaginKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::VampireKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::MyrmidonKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::MinotaurKeyhole: Typed<((&'a String,), Context), Type, S>, &'b Elim::MapleLeaves: Typed<Context, Type, S>, &'b Elim::CherryLeaves: Typed<Context, Type, S>, &'b Elim::AutumnLeaves: Typed<Context, Type, S>, &'b Elim::RedwoodWood: Typed<Context, Type, S>,

source§

fn reduce( self, ((head), context): ((&'a StructureBlock,), Context), ) -> (Type, S)

Auto Trait Implementations§

§

impl<Elim> Freeze for Cases<Elim>
where <Elim as PackedElim>::None: Freeze, <Elim as PackedElim>::Grass: Freeze, <Elim as PackedElim>::TemperateLeaves: Freeze, <Elim as PackedElim>::PineLeaves: Freeze, <Elim as PackedElim>::Acacia: Freeze, <Elim as PackedElim>::Mangrove: Freeze, <Elim as PackedElim>::PalmLeavesInner: Freeze, <Elim as PackedElim>::PalmLeavesOuter: Freeze, <Elim as PackedElim>::Water: Freeze, <Elim as PackedElim>::GreenSludge: Freeze, <Elim as PackedElim>::Fruit: Freeze, <Elim as PackedElim>::Coconut: Freeze, <Elim as PackedElim>::Chest: Freeze, <Elim as PackedElim>::Hollow: Freeze, <Elim as PackedElim>::Liana: Freeze, <Elim as PackedElim>::Normal: Freeze, <Elim as PackedElim>::Log: Freeze, <Elim as PackedElim>::Filled: Freeze, <Elim as PackedElim>::Sprite: Freeze, <Elim as PackedElim>::Chestnut: Freeze, <Elim as PackedElim>::Baobab: Freeze, <Elim as PackedElim>::BirchWood: Freeze, <Elim as PackedElim>::FrostpineLeaves: Freeze, <Elim as PackedElim>::RotatedSprite: Freeze, <Elim as PackedElim>::EntitySpawner: Freeze, <Elim as PackedElim>::Keyhole: Freeze, <Elim as PackedElim>::BoneKeyhole: Freeze, <Elim as PackedElim>::GlassKeyhole: Freeze, <Elim as PackedElim>::Sign: Freeze, <Elim as PackedElim>::KeyholeBars: Freeze, <Elim as PackedElim>::HaniwaKeyhole: Freeze, <Elim as PackedElim>::TerracottaKeyhole: Freeze, <Elim as PackedElim>::SahaginKeyhole: Freeze, <Elim as PackedElim>::VampireKeyhole: Freeze, <Elim as PackedElim>::MyrmidonKeyhole: Freeze, <Elim as PackedElim>::MinotaurKeyhole: Freeze, <Elim as PackedElim>::MapleLeaves: Freeze, <Elim as PackedElim>::CherryLeaves: Freeze, <Elim as PackedElim>::AutumnLeaves: Freeze, <Elim as PackedElim>::RedwoodWood: Freeze,

§

impl<Elim> RefUnwindSafe for Cases<Elim>
where <Elim as PackedElim>::None: RefUnwindSafe, <Elim as PackedElim>::Grass: RefUnwindSafe, <Elim as PackedElim>::TemperateLeaves: RefUnwindSafe, <Elim as PackedElim>::PineLeaves: RefUnwindSafe, <Elim as PackedElim>::Acacia: RefUnwindSafe, <Elim as PackedElim>::Mangrove: RefUnwindSafe, <Elim as PackedElim>::PalmLeavesInner: RefUnwindSafe, <Elim as PackedElim>::PalmLeavesOuter: RefUnwindSafe, <Elim as PackedElim>::Water: RefUnwindSafe, <Elim as PackedElim>::GreenSludge: RefUnwindSafe, <Elim as PackedElim>::Fruit: RefUnwindSafe, <Elim as PackedElim>::Coconut: RefUnwindSafe, <Elim as PackedElim>::Chest: RefUnwindSafe, <Elim as PackedElim>::Hollow: RefUnwindSafe, <Elim as PackedElim>::Liana: RefUnwindSafe, <Elim as PackedElim>::Normal: RefUnwindSafe, <Elim as PackedElim>::Log: RefUnwindSafe, <Elim as PackedElim>::Filled: RefUnwindSafe, <Elim as PackedElim>::Sprite: RefUnwindSafe, <Elim as PackedElim>::Chestnut: RefUnwindSafe, <Elim as PackedElim>::Baobab: RefUnwindSafe, <Elim as PackedElim>::BirchWood: RefUnwindSafe, <Elim as PackedElim>::FrostpineLeaves: RefUnwindSafe, <Elim as PackedElim>::RotatedSprite: RefUnwindSafe, <Elim as PackedElim>::EntitySpawner: RefUnwindSafe, <Elim as PackedElim>::Keyhole: RefUnwindSafe, <Elim as PackedElim>::BoneKeyhole: RefUnwindSafe, <Elim as PackedElim>::GlassKeyhole: RefUnwindSafe, <Elim as PackedElim>::Sign: RefUnwindSafe, <Elim as PackedElim>::KeyholeBars: RefUnwindSafe, <Elim as PackedElim>::HaniwaKeyhole: RefUnwindSafe, <Elim as PackedElim>::TerracottaKeyhole: RefUnwindSafe, <Elim as PackedElim>::SahaginKeyhole: RefUnwindSafe, <Elim as PackedElim>::VampireKeyhole: RefUnwindSafe, <Elim as PackedElim>::MyrmidonKeyhole: RefUnwindSafe, <Elim as PackedElim>::MinotaurKeyhole: RefUnwindSafe, <Elim as PackedElim>::MapleLeaves: RefUnwindSafe, <Elim as PackedElim>::CherryLeaves: RefUnwindSafe, <Elim as PackedElim>::AutumnLeaves: RefUnwindSafe, <Elim as PackedElim>::RedwoodWood: RefUnwindSafe,

§

impl<Elim> Send for Cases<Elim>
where <Elim as PackedElim>::None: Send, <Elim as PackedElim>::Grass: Send, <Elim as PackedElim>::TemperateLeaves: Send, <Elim as PackedElim>::PineLeaves: Send, <Elim as PackedElim>::Acacia: Send, <Elim as PackedElim>::Mangrove: Send, <Elim as PackedElim>::PalmLeavesInner: Send, <Elim as PackedElim>::PalmLeavesOuter: Send, <Elim as PackedElim>::Water: Send, <Elim as PackedElim>::GreenSludge: Send, <Elim as PackedElim>::Fruit: Send, <Elim as PackedElim>::Coconut: Send, <Elim as PackedElim>::Chest: Send, <Elim as PackedElim>::Hollow: Send, <Elim as PackedElim>::Liana: Send, <Elim as PackedElim>::Normal: Send, <Elim as PackedElim>::Log: Send, <Elim as PackedElim>::Filled: Send, <Elim as PackedElim>::Sprite: Send, <Elim as PackedElim>::Chestnut: Send, <Elim as PackedElim>::Baobab: Send, <Elim as PackedElim>::BirchWood: Send, <Elim as PackedElim>::FrostpineLeaves: Send, <Elim as PackedElim>::RotatedSprite: Send, <Elim as PackedElim>::EntitySpawner: Send, <Elim as PackedElim>::Keyhole: Send, <Elim as PackedElim>::BoneKeyhole: Send, <Elim as PackedElim>::GlassKeyhole: Send, <Elim as PackedElim>::Sign: Send, <Elim as PackedElim>::KeyholeBars: Send, <Elim as PackedElim>::HaniwaKeyhole: Send, <Elim as PackedElim>::TerracottaKeyhole: Send, <Elim as PackedElim>::SahaginKeyhole: Send, <Elim as PackedElim>::VampireKeyhole: Send, <Elim as PackedElim>::MyrmidonKeyhole: Send, <Elim as PackedElim>::MinotaurKeyhole: Send, <Elim as PackedElim>::MapleLeaves: Send, <Elim as PackedElim>::CherryLeaves: Send, <Elim as PackedElim>::AutumnLeaves: Send, <Elim as PackedElim>::RedwoodWood: Send,

§

impl<Elim> Sync for Cases<Elim>
where <Elim as PackedElim>::None: Sync, <Elim as PackedElim>::Grass: Sync, <Elim as PackedElim>::TemperateLeaves: Sync, <Elim as PackedElim>::PineLeaves: Sync, <Elim as PackedElim>::Acacia: Sync, <Elim as PackedElim>::Mangrove: Sync, <Elim as PackedElim>::PalmLeavesInner: Sync, <Elim as PackedElim>::PalmLeavesOuter: Sync, <Elim as PackedElim>::Water: Sync, <Elim as PackedElim>::GreenSludge: Sync, <Elim as PackedElim>::Fruit: Sync, <Elim as PackedElim>::Coconut: Sync, <Elim as PackedElim>::Chest: Sync, <Elim as PackedElim>::Hollow: Sync, <Elim as PackedElim>::Liana: Sync, <Elim as PackedElim>::Normal: Sync, <Elim as PackedElim>::Log: Sync, <Elim as PackedElim>::Filled: Sync, <Elim as PackedElim>::Sprite: Sync, <Elim as PackedElim>::Chestnut: Sync, <Elim as PackedElim>::Baobab: Sync, <Elim as PackedElim>::BirchWood: Sync, <Elim as PackedElim>::FrostpineLeaves: Sync, <Elim as PackedElim>::RotatedSprite: Sync, <Elim as PackedElim>::EntitySpawner: Sync, <Elim as PackedElim>::Keyhole: Sync, <Elim as PackedElim>::BoneKeyhole: Sync, <Elim as PackedElim>::GlassKeyhole: Sync, <Elim as PackedElim>::Sign: Sync, <Elim as PackedElim>::KeyholeBars: Sync, <Elim as PackedElim>::HaniwaKeyhole: Sync, <Elim as PackedElim>::TerracottaKeyhole: Sync, <Elim as PackedElim>::SahaginKeyhole: Sync, <Elim as PackedElim>::VampireKeyhole: Sync, <Elim as PackedElim>::MyrmidonKeyhole: Sync, <Elim as PackedElim>::MinotaurKeyhole: Sync, <Elim as PackedElim>::MapleLeaves: Sync, <Elim as PackedElim>::CherryLeaves: Sync, <Elim as PackedElim>::AutumnLeaves: Sync, <Elim as PackedElim>::RedwoodWood: Sync,

§

impl<Elim> Unpin for Cases<Elim>
where <Elim as PackedElim>::None: Unpin, <Elim as PackedElim>::Grass: Unpin, <Elim as PackedElim>::TemperateLeaves: Unpin, <Elim as PackedElim>::PineLeaves: Unpin, <Elim as PackedElim>::Acacia: Unpin, <Elim as PackedElim>::Mangrove: Unpin, <Elim as PackedElim>::PalmLeavesInner: Unpin, <Elim as PackedElim>::PalmLeavesOuter: Unpin, <Elim as PackedElim>::Water: Unpin, <Elim as PackedElim>::GreenSludge: Unpin, <Elim as PackedElim>::Fruit: Unpin, <Elim as PackedElim>::Coconut: Unpin, <Elim as PackedElim>::Chest: Unpin, <Elim as PackedElim>::Hollow: Unpin, <Elim as PackedElim>::Liana: Unpin, <Elim as PackedElim>::Normal: Unpin, <Elim as PackedElim>::Log: Unpin, <Elim as PackedElim>::Filled: Unpin, <Elim as PackedElim>::Sprite: Unpin, <Elim as PackedElim>::Chestnut: Unpin, <Elim as PackedElim>::Baobab: Unpin, <Elim as PackedElim>::BirchWood: Unpin, <Elim as PackedElim>::FrostpineLeaves: Unpin, <Elim as PackedElim>::RotatedSprite: Unpin, <Elim as PackedElim>::EntitySpawner: Unpin, <Elim as PackedElim>::Keyhole: Unpin, <Elim as PackedElim>::BoneKeyhole: Unpin, <Elim as PackedElim>::GlassKeyhole: Unpin, <Elim as PackedElim>::Sign: Unpin, <Elim as PackedElim>::KeyholeBars: Unpin, <Elim as PackedElim>::HaniwaKeyhole: Unpin, <Elim as PackedElim>::TerracottaKeyhole: Unpin, <Elim as PackedElim>::SahaginKeyhole: Unpin, <Elim as PackedElim>::VampireKeyhole: Unpin, <Elim as PackedElim>::MyrmidonKeyhole: Unpin, <Elim as PackedElim>::MinotaurKeyhole: Unpin, <Elim as PackedElim>::MapleLeaves: Unpin, <Elim as PackedElim>::CherryLeaves: Unpin, <Elim as PackedElim>::AutumnLeaves: Unpin, <Elim as PackedElim>::RedwoodWood: Unpin,

§

impl<Elim> UnwindSafe for Cases<Elim>
where <Elim as PackedElim>::None: UnwindSafe, <Elim as PackedElim>::Grass: UnwindSafe, <Elim as PackedElim>::TemperateLeaves: UnwindSafe, <Elim as PackedElim>::PineLeaves: UnwindSafe, <Elim as PackedElim>::Acacia: UnwindSafe, <Elim as PackedElim>::Mangrove: UnwindSafe, <Elim as PackedElim>::PalmLeavesInner: UnwindSafe, <Elim as PackedElim>::PalmLeavesOuter: UnwindSafe, <Elim as PackedElim>::Water: UnwindSafe, <Elim as PackedElim>::GreenSludge: UnwindSafe, <Elim as PackedElim>::Fruit: UnwindSafe, <Elim as PackedElim>::Coconut: UnwindSafe, <Elim as PackedElim>::Chest: UnwindSafe, <Elim as PackedElim>::Hollow: UnwindSafe, <Elim as PackedElim>::Liana: UnwindSafe, <Elim as PackedElim>::Normal: UnwindSafe, <Elim as PackedElim>::Log: UnwindSafe, <Elim as PackedElim>::Filled: UnwindSafe, <Elim as PackedElim>::Sprite: UnwindSafe, <Elim as PackedElim>::Chestnut: UnwindSafe, <Elim as PackedElim>::Baobab: UnwindSafe, <Elim as PackedElim>::BirchWood: UnwindSafe, <Elim as PackedElim>::FrostpineLeaves: UnwindSafe, <Elim as PackedElim>::RotatedSprite: UnwindSafe, <Elim as PackedElim>::EntitySpawner: UnwindSafe, <Elim as PackedElim>::Keyhole: UnwindSafe, <Elim as PackedElim>::BoneKeyhole: UnwindSafe, <Elim as PackedElim>::GlassKeyhole: UnwindSafe, <Elim as PackedElim>::Sign: UnwindSafe, <Elim as PackedElim>::KeyholeBars: UnwindSafe, <Elim as PackedElim>::HaniwaKeyhole: UnwindSafe, <Elim as PackedElim>::TerracottaKeyhole: UnwindSafe, <Elim as PackedElim>::SahaginKeyhole: UnwindSafe, <Elim as PackedElim>::VampireKeyhole: UnwindSafe, <Elim as PackedElim>::MyrmidonKeyhole: UnwindSafe, <Elim as PackedElim>::MinotaurKeyhole: UnwindSafe, <Elim as PackedElim>::MapleLeaves: UnwindSafe, <Elim as PackedElim>::CherryLeaves: UnwindSafe, <Elim as PackedElim>::AutumnLeaves: UnwindSafe, <Elim as PackedElim>::RedwoodWood: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<Context> SubContext<Context> for Context

source§

fn sub_context(self) -> Context

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Event for T
where T: Send + Sync + 'static,

§

impl<T> Resource for T
where T: Any + Send + Sync,

§

impl<T> Storable for T
where T: Send + Sync + 'static,