pub struct DirectionalLight(pub Arc<DirectionalLight>);Expand description
Elicitation-enabled wrapper around bevy::light::DirectionalLight.
This newtype uses Arc internally to ensure Clone is always available,
providing transparent access via Deref and DerefMut.
Tuple Fields§
§0: Arc<DirectionalLight>Implementations§
Source§impl DirectionalLight
impl DirectionalLight
Sourcepub fn directional_light_color(&self) -> Color
pub fn directional_light_color(&self) -> Color
Returns the light color.
Sourcepub fn illuminance(&self) -> f32
pub fn illuminance(&self) -> f32
Returns the illuminance in lux.
Sourcepub fn directional_light_shadows_enabled(&self) -> bool
pub fn directional_light_shadows_enabled(&self) -> bool
Returns true if shadows are enabled.
Sourcepub fn new_directional(&self, illuminance: f32) -> DirectionalLight
pub fn new_directional(&self, illuminance: f32) -> DirectionalLight
Creates a default directional light with the given illuminance.
Sourcepub fn directional_light_with_shadows(&self, enabled: bool) -> DirectionalLight
pub fn directional_light_with_shadows(&self, enabled: bool) -> DirectionalLight
Returns a copy with shadows enabled or disabled.
Source§impl DirectionalLight
impl DirectionalLight
Sourcepub fn directional_light_color_tool_tool_attr() -> Tool
pub fn directional_light_color_tool_tool_attr() -> Tool
Generated tool metadata function for directional_light_color_tool
Sourcepub fn directional_light_color_tool(&self) -> Result<Json<Color>, ErrorData>
pub fn directional_light_color_tool(&self) -> Result<Json<Color>, ErrorData>
directional_light_color MCP tool wrapper method.
Sourcepub fn illuminance_tool_tool_attr() -> Tool
pub fn illuminance_tool_tool_attr() -> Tool
Generated tool metadata function for illuminance_tool
Sourcepub fn illuminance_tool(&self) -> Result<Json<f32>, ErrorData>
pub fn illuminance_tool(&self) -> Result<Json<f32>, ErrorData>
illuminance MCP tool wrapper method.
Sourcepub fn directional_light_shadows_enabled_tool_tool_attr() -> Tool
pub fn directional_light_shadows_enabled_tool_tool_attr() -> Tool
Generated tool metadata function for directional_light_shadows_enabled_tool
Sourcepub fn directional_light_shadows_enabled_tool(
&self,
) -> Result<Json<bool>, ErrorData>
pub fn directional_light_shadows_enabled_tool( &self, ) -> Result<Json<bool>, ErrorData>
directional_light_shadows_enabled MCP tool wrapper method.
Sourcepub fn new_directional_tool_tool_attr() -> Tool
pub fn new_directional_tool_tool_attr() -> Tool
Generated tool metadata function for new_directional_tool
Sourcepub fn new_directional_tool(
&self,
params: Parameters<NewDirectionalParams>,
) -> Result<Json<DirectionalLight>, ErrorData>
pub fn new_directional_tool( &self, params: Parameters<NewDirectionalParams>, ) -> Result<Json<DirectionalLight>, ErrorData>
new_directional MCP tool wrapper method.
Sourcepub fn directional_light_with_shadows_tool_tool_attr() -> Tool
pub fn directional_light_with_shadows_tool_tool_attr() -> Tool
Generated tool metadata function for directional_light_with_shadows_tool
Sourcepub fn directional_light_with_shadows_tool(
&self,
params: Parameters<DirectionalLightWithShadowsParams>,
) -> Result<Json<DirectionalLight>, ErrorData>
pub fn directional_light_with_shadows_tool( &self, params: Parameters<DirectionalLightWithShadowsParams>, ) -> Result<Json<DirectionalLight>, ErrorData>
directional_light_with_shadows MCP tool wrapper method.
Methods from Deref<Target = DirectionalLight>§
pub const DEFAULT_SHADOW_DEPTH_BIAS: f32 = 0.02
pub const DEFAULT_SHADOW_NORMAL_BIAS: f32 = 1.8
Trait Implementations§
Source§impl AsRef<DirectionalLight> for DirectionalLight
impl AsRef<DirectionalLight> for DirectionalLight
Source§fn as_ref(&self) -> &DirectionalLight
fn as_ref(&self) -> &DirectionalLight
Source§impl Clone for DirectionalLight
impl Clone for DirectionalLight
Source§fn clone(&self) -> DirectionalLight
fn clone(&self) -> DirectionalLight
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DirectionalLight
impl Debug for DirectionalLight
Source§impl Deref for DirectionalLight
impl Deref for DirectionalLight
Source§impl DerefMut for DirectionalLight
impl DerefMut for DirectionalLight
Source§impl<'de> Deserialize<'de> for DirectionalLight
impl<'de> Deserialize<'de> for DirectionalLight
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl ElicitComplete for DirectionalLight
impl ElicitComplete for DirectionalLight
Source§fn validate_proofs_non_empty() -> bool
fn validate_proofs_non_empty() -> bool
Source§fn kani_proof_contains<Inner>() -> boolwhere
Inner: Elicitation,
fn kani_proof_contains<Inner>() -> boolwhere
Inner: Elicitation,
Inner’s Kani proof? Read moreSource§fn verus_proof_contains<Inner>() -> boolwhere
Inner: Elicitation,
fn verus_proof_contains<Inner>() -> boolwhere
Inner: Elicitation,
Inner’s Verus proof?Source§fn creusot_proof_contains<Inner>() -> boolwhere
Inner: Elicitation,
fn creusot_proof_contains<Inner>() -> boolwhere
Inner: Elicitation,
Inner’s Creusot proof?Source§impl ElicitIntrospect for DirectionalLight
impl ElicitIntrospect for DirectionalLight
Source§fn pattern() -> ElicitationPattern
fn pattern() -> ElicitationPattern
Source§fn metadata() -> TypeMetadata
fn metadata() -> TypeMetadata
Source§impl ElicitPromptTree for DirectionalLight
impl ElicitPromptTree for DirectionalLight
Source§fn prompt_tree() -> PromptTree
fn prompt_tree() -> PromptTree
Source§fn assembled_prompts() -> Vec<AssembledPrompt>
fn assembled_prompts() -> Vec<AssembledPrompt>
Source§impl ElicitSpec for DirectionalLight
impl ElicitSpec for DirectionalLight
Source§impl Elicitation for DirectionalLight
impl Elicitation for DirectionalLight
Source§async fn elicit<C: ElicitCommunicator>(_communicator: &C) -> ElicitResult<Self>
async fn elicit<C: ElicitCommunicator>(_communicator: &C) -> ElicitResult<Self>
Source§fn kani_proof() -> TokenStream
fn kani_proof() -> TokenStream
Source§fn verus_proof() -> TokenStream
fn verus_proof() -> TokenStream
proc_macro2::TokenStream containing a Verus-verified function
with requires/ensures specifications for this type’s invariants. Read moreSource§fn creusot_proof() -> TokenStream
fn creusot_proof() -> TokenStream
proc_macro2::TokenStream containing Creusot contract functions
with #[requires]/#[ensures]/#[trusted] attributes for this type’s invariants. Read moreSource§fn elicit_checked(
peer: Peer<RoleServer>,
) -> impl Future<Output = Result<Self, ElicitError>> + Send
fn elicit_checked( peer: Peer<RoleServer>, ) -> impl Future<Output = Result<Self, ElicitError>> + Send
Source§fn with_style(style: Self::Style) -> ElicitBuilder<Self>
fn with_style(style: Self::Style) -> ElicitBuilder<Self>
Source§fn elicit_proven<C>(
communicator: &C,
) -> impl Future<Output = Result<(Self, Established<Is<Self>>), ElicitError>> + Sendwhere
C: ElicitCommunicator,
fn elicit_proven<C>(
communicator: &C,
) -> impl Future<Output = Result<(Self, Established<Is<Self>>), ElicitError>> + Sendwhere
C: ElicitCommunicator,
Source§fn prusti_proof() -> TokenStream
fn prusti_proof() -> TokenStream
proc_macro2::TokenStream containing Prusti contract functions
with #[requires]/#[ensures] attributes for this type’s invariants. Read moreSource§impl From<Arc<DirectionalLight>> for DirectionalLight
impl From<Arc<DirectionalLight>> for DirectionalLight
Source§fn from(arc: Arc<DirectionalLight>) -> Self
fn from(arc: Arc<DirectionalLight>) -> Self
Source§impl From<DirectionalLight> for Arc<DirectionalLight>
impl From<DirectionalLight> for Arc<DirectionalLight>
Source§fn from(wrapper: DirectionalLight) -> Self
fn from(wrapper: DirectionalLight) -> Self
Source§impl From<DirectionalLight> for DirectionalLight
impl From<DirectionalLight> for DirectionalLight
Source§fn from(inner: DirectionalLight) -> Self
fn from(inner: DirectionalLight) -> Self
Source§impl From<DirectionalLight> for DirectionalLight
impl From<DirectionalLight> for DirectionalLight
Source§fn from(v: DirectionalLight) -> Self
fn from(v: DirectionalLight) -> Self
Source§impl JsonSchema for DirectionalLight
impl JsonSchema for DirectionalLight
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Prompt for DirectionalLight
impl Prompt for DirectionalLight
Source§impl Serialize for DirectionalLight
impl Serialize for DirectionalLight
Source§impl ToCodeLiteral for DirectionalLight
impl ToCodeLiteral for DirectionalLight
Source§fn to_code_literal(&self) -> TokenStream
fn to_code_literal(&self) -> TokenStream
TokenStream containing a single Rust expression whose
evaluation produces a value equal to self.Source§fn type_tokens() -> TokenStreamwhere
Self: Sized,
fn type_tokens() -> TokenStreamwhere
Self: Sized,
None::<T>). Read moreAuto Trait Implementations§
impl Freeze for DirectionalLight
impl RefUnwindSafe for DirectionalLight
impl Send for DirectionalLight
impl Sync for DirectionalLight
impl Unpin for DirectionalLight
impl UnsafeUnpin for DirectionalLight
impl UnwindSafe for DirectionalLight
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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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)
&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)
&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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<T> ElicitJson for T
impl<T> ElicitJson for T
Source§async fn elicit_json<C>(communicator: &C) -> Result<T, ElicitError>where
C: ElicitCommunicator,
async fn elicit_json<C>(communicator: &C) -> Result<T, ElicitError>where
C: ElicitCommunicator,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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>
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>
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