This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window._adata = { | |
| action: 'js', | |
| target: 'console.log("BOT!!!");', | |
| js: false, | |
| ok: false, | |
| cid: '4cb2bdd5e1b96a87d439f65ad57e9039' | |
| } | |
| ;(function () { | |
| var errors = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct Container<'a> { | |
| process: &'a mut dyn FnMut(), | |
| } | |
| // ... | |
| struct ContainerOwner<'a> { | |
| container: Container<'a>, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::marker::PhantomData; | |
| use std::ptr; | |
| // Behaves like &'a mut dyn FnMut, | |
| // except requires only one pointer indirection for functions without data. | |
| struct ShallowFnMutRef<'a> { | |
| fn_ptr: unsafe fn(*mut ()), | |
| data: *mut (), | |
| _marker: PhantomData<&'a mut ()>, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[macro_export] | |
| macro_rules! autoparse_struct { | |
| ( | |
| $(#[$meta:meta])* | |
| $vis:vis $Name:ident { | |
| $($inner:tt)* | |
| } | |
| ) => { | |
| autoparse_struct!(@ (reader, [$($meta)*], $vis, $Name): {$($inner)*} -> [], [], []); | |
| }; |
OlderNewer