std140 0.2.4

GLSL interface block memory, layed-out according to the std140 convention, represented as Rust structs.
Documentation

Build #374032 2021-04-09 09:42:07

# rustc version rustc 1.53.0-nightly (07e0e2ec2 2021-03-24)

# docs.rs version docsrs 0.6.0 (9708001 2021-04-08)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/std140-0.2.4/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/std140-0.2.4/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "2" "--user" "1001:1001" "--network" "none" "rustops/crates-build-env@sha256:abe1b87bf6b7c66130a0dd9bb19216a8db0cc381a1b41d68bf7d83b4bc040efb" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs\"" "-j2" "--" "-Z" "unstable-options" "--resource-suffix" "-20210324-1.53.0-nightly-07e0e2ec2" "--static-root-path" "/" "--cap-lints" "warn" "--disable-per-crate-search", kill_on_drop: false }` [INFO] [stdout] 636654ec7e8e3fe1465546e7268243e17723a04ca5ee5cd54a2bb7a01c0f1a7d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "636654ec7e8e3fe1465546e7268243e17723a04ca5ee5cd54a2bb7a01c0f1a7d", kill_on_drop: false }` [INFO] [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling std140-macros v0.1.2 [INFO] [stderr] Documenting std140 v0.2.4 (/opt/rustwide/workdir) [INFO] [stderr] warning: `mat2x2` is both a struct and a function [INFO] [stderr] --> src/lib.rs:861:24 [INFO] [stderr] | [INFO] [stderr] 861 | /// Creates a new [mat2x2] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 861 | /// Creates a new [struct@mat2x2] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 861 | /// Creates a new [mat2x2()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat2x3` is both a struct and a function [INFO] [stderr] --> src/lib.rs:911:24 [INFO] [stderr] | [INFO] [stderr] 911 | /// Creates a new [mat2x3] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 911 | /// Creates a new [struct@mat2x3] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 911 | /// Creates a new [mat2x3()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat2x4` is both a struct and a function [INFO] [stderr] --> src/lib.rs:961:24 [INFO] [stderr] | [INFO] [stderr] 961 | /// Creates a new [mat2x4] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 961 | /// Creates a new [struct@mat2x4] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 961 | /// Creates a new [mat2x4()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat3x2` is both a struct and a function [INFO] [stderr] --> src/lib.rs:1012:24 [INFO] [stderr] | [INFO] [stderr] 1012 | /// Creates a new [mat3x2] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 1012 | /// Creates a new [struct@mat3x2] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 1012 | /// Creates a new [mat3x2()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat3x3` is both a struct and a function [INFO] [stderr] --> src/lib.rs:1063:24 [INFO] [stderr] | [INFO] [stderr] 1063 | /// Creates a new [mat3x3] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 1063 | /// Creates a new [struct@mat3x3] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 1063 | /// Creates a new [mat3x3()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat3x4` is both a struct and a function [INFO] [stderr] --> src/lib.rs:1114:24 [INFO] [stderr] | [INFO] [stderr] 1114 | /// Creates a new [mat3x4] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 1114 | /// Creates a new [struct@mat3x4] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 1114 | /// Creates a new [mat3x4()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat4x2` is both a struct and a function [INFO] [stderr] --> src/lib.rs:1166:24 [INFO] [stderr] | [INFO] [stderr] 1166 | /// Creates a new [mat4x2] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 1166 | /// Creates a new [struct@mat4x2] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 1166 | /// Creates a new [mat4x2()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat4x3` is both a struct and a function [INFO] [stderr] --> src/lib.rs:1218:24 [INFO] [stderr] | [INFO] [stderr] 1218 | /// Creates a new [mat4x3] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 1218 | /// Creates a new [struct@mat4x3] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 1218 | /// Creates a new [mat4x3()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mat4x4` is both a struct and a function [INFO] [stderr] --> src/lib.rs:1270:24 [INFO] [stderr] | [INFO] [stderr] 1270 | /// Creates a new [mat4x4] with zeros in all positions. [INFO] [stderr] | ^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the struct, prefix with `struct@` [INFO] [stderr] | [INFO] [stderr] 1270 | /// Creates a new [struct@mat4x4] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 1270 | /// Creates a new [mat4x4()] with zeros in all positions. [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 9 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.81s [INFO] running `Command { std: "docker" "inspect" "636654ec7e8e3fe1465546e7268243e17723a04ca5ee5cd54a2bb7a01c0f1a7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "636654ec7e8e3fe1465546e7268243e17723a04ca5ee5cd54a2bb7a01c0f1a7d", kill_on_drop: false }` [INFO] [stdout] 636654ec7e8e3fe1465546e7268243e17723a04ca5ee5cd54a2bb7a01c0f1a7d