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
{ | |
"errors":[ | |
{ | |
"message":"Variable \"$input\" expected value of type \"Owner\" which cannot be used as an input type.", | |
"locations":[ | |
{ | |
"line":1, | |
"column":19 | |
} | |
] |
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
[package] | |
name = "accessole" | |
version = "0.1.0" | |
authors = ["iancormac84 <wilnathan@gmail.com>"] | |
edition = "2018" | |
[dependencies] | |
failure = "*" | |
oaidl = { git = "https://github.com/ZerothLaw/oaidl-safe", branch = "develop" } | |
winapi = "0.3.6" |
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
pub fn to_u16s<S: AsRef<OsStr>>(s: S) -> io::Result<Vec<u16>> { | |
fn inner(s: &OsStr) -> io::Result<Vec<u16>> { | |
let mut maybe_result: Vec<u16> = s.encode_wide().collect(); | |
if maybe_result.iter().any(|&u| u == 0) { | |
return Err(io::Error::new( | |
io::ErrorKind::InvalidInput, | |
"strings passed to WinAPI cannot contain NULs", | |
) | |
.into()); | |
} |
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
pub trait UniqueProperties { | |
const ATOMIC_NUMBER: u32; | |
const SYMBOL: &'static str; | |
const PERIOD: u8; | |
} | |
pub struct Hydrogen; | |
impl UniqueProperties for Hydrogen { | |
const ATOMIC_NUMBER: u32 = 1; |
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
04d5937dd8be48901e267084394019dffdbf0b5c7d8297f6ba0be733f16fbc2a91f1ad97b973f00421be37c4d48085893463552f14f7b2605f05138d2887bc640d |
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
// Copyright 2015 The Rust-Windows Project Developers. See the | |
// COPYRIGHT file at the top-level directory of this distribution. | |
// | |
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
// option. This file may not be copied, modified, or distributed | |
// except according to those terms. | |
#![feature(libc)] |