Skip to content

Commit

Permalink
solved merge conflict with bevyengine#6829
Browse files Browse the repository at this point in the history
	 pick 440faacc solved merge conflict with bevyengine#6829
  • Loading branch information
feyokorenhof committed Dec 4, 2022
1 parent 85abdb5 commit a3cae9a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions crates/bevy_reflect/src/impls/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ impl_array_get_type_registration! {
30 31 32
}

<<<<<<< HEAD
<<<<<<< HEAD
=======
impl Reflect for Cow<'static, str> {
Expand Down Expand Up @@ -868,6 +869,8 @@ impl Reflect for &'static Path {
}

>>>>>>> 748732a9 (new function for std.rs)
=======
>>>>>>> 440faacc (solved merge conflict with #6829)
impl<T: FromReflect> GetTypeRegistration for Option<T> {
fn get_type_registration() -> TypeRegistration {
TypeRegistration::of::<Option<T>>()
Expand Down Expand Up @@ -1199,6 +1202,21 @@ impl Reflect for Cow<'static, str> {
}
}

<<<<<<< HEAD
=======
fn try_apply(&mut self, value: &dyn Reflect) -> Result<(), ApplyError> {
let value = value.as_any();
if let Some(value) = value.downcast_ref::<Self>() {
*self = value.clone();
} else {
return Err(ApplyError::WrongType(
std::any::type_name::<Self>().to_string(),
));
}
Ok(())
}

>>>>>>> 440faacc (solved merge conflict with #6829)
fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>> {
*self = value.take()?;
Ok(())
Expand Down Expand Up @@ -1307,6 +1325,21 @@ impl Reflect for &'static Path {
}
}

<<<<<<< HEAD
=======
fn try_apply(&mut self, value: &dyn Reflect) -> Result<(), ApplyError> {
let value = value.as_any();
if let Some(&value) = value.downcast_ref::<Self>() {
*self = value;
} else {
return Err(ApplyError::WrongType(
std::any::type_name::<Self>().to_string(),
));
}
Ok(())
}

>>>>>>> 440faacc (solved merge conflict with #6829)
fn set(&mut self, value: Box<dyn Reflect>) -> Result<(), Box<dyn Reflect>> {
*self = value.take()?;
Ok(())
Expand Down

0 comments on commit a3cae9a

Please sign in to comment.