Android WebKit在textareas上绘制白色背景+边框,并在有焦点时输入.我如何阻止它这样做?

我试过改变-webkit-tap-highlight-color,-webkit-appearance,-webkit-backface-visibility,outline和一些其他的东西,似乎没什么用.救命!
我想使用memcpy在一个可能包含任意类型的数组中进行'类型不可知交换'.为什么需要const src指针?
我写了自己的版本:
void copyBytes(char *x, char *y, int howMany){
int i;
for(i = 0; i<howMany; i++){
*(x+i) = *(y+i);
}
}
Run Code Online (Sandbox Code Playgroud)
我的版本有问题吗?
use once_cell::sync::OnceCell;
pub trait SomeTrait {}
pub struct Impl1 {}
impl SomeTrait for Impl1 {}
pub static GLOBAL_THING: OnceCell<Box<dyn SomeTrait>> = OnceCell::new();
pub fn main() {
GLOBAL_THING.set(Box::new(Impl1 {})).unwrap();
}
Run Code Online (Sandbox Code Playgroud)
我收到此错误,但不知道如何解释它的含义或修复它。
error[E0599]: the method `unwrap` exists for enum `Result<(), Box<(dyn SomeTrait + 'static)>>`, but its trait bounds were not satisfied
--> src/main.rs:11:42
|
11 | GLOBAL_THING.set(Box::new(Impl1 {})).unwrap();
| ^^^^^^ method cannot be called on `Result<(), Box<(dyn SomeTrait + 'static)>>` due to unsatisfied trait bounds
|
= note: the following trait bounds …Run Code Online (Sandbox Code Playgroud)