This file contains 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 GridNeighborsMut<'a> { | |
grid: &'a mut Grid, | |
point_x: usize, | |
point_y: usize, | |
count: usize, | |
} | |
impl<'a> Iterator for GridNeighborsMut<'a> { | |
type Item = &'a mut Elevation; | |
fn next(&mut self) -> Option<Self::Item> { | |
unsafe { |
This file contains 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 bevy::prelude::*; | |
pub fn setup_system(mut commands: Commands) { | |
println!("Spawning Camera bundle..."); | |
commands | |
.spawn() | |
.insert_bundle(OrthographicCameraBundle::new_2d()); | |
} |
This file contains 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>] | |
type ControlledState = | |
| Writing | |
| Resetting | |
| Listening | |
type ControlledExpander() = | |
inherit Expander() | |
interface IStyleable with |
This file contains 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
namespace FuncUITypeRepro | |
open Avalonia.Controls | |
open Avalonia.FuncUI.Components | |
open Avalonia.FuncUI.DSL | |
open Avalonia.Layout | |
module Domain = | |
type RecordA = { Title: string; Pages: int } | |
type RecordB = { Cost: float; Paid: bool } |
This file contains 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
declare module "redux-orm" { | |
declare export class Model<I> { | |
// Static properties | |
static all: () => QuerySet<this>; | |
static filter: (filterArg: {} | (this => boolean)) => QuerySet<this>; | |
static first: () => this | typeof undefined; | |
static create: (props?: {}) => this; | |
static get: (lookupObj: {}) => this; | |
static hasId: (id: I) => boolean; | |
static withId: (id: I) => this; |