bog 0.1.0

The highly-modular abstraction standard
Documentation
  • Coverage
  • 21.05%
    4 out of 19 items documented0 out of 11 items with examples
  • Size
  • Source code size: 46.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.07 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • rtthw/bog
    0 0 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rtthw

Bog

The highly-modular abstraction standard.

Usage

The recommended design pattern to be used with this library is the basic type definition wrapper...

type Position = bog::Xy<u16>;

And implementing custom features should be done through extension traits...

trait PositionImpl {
    fn custom_x_getter(&self) -> u16;
}

impl PositionImpl for Position {
    fn custom_x_getter(&self) -> u16 {
        self.x
    }
}

With the following results...

let pos_a = Position::new(1, 2);

assert_eq!(pos_a.custom_x_getter(), 1);

Features

Name Rect X-Y X-Y-Z
default
all
rect
xy
xyz