pub struct FrameSequence<T> {
    pub chunk_rows: usize,
    /* private fields */
}

Fields

chunk_rows: usize

Implementations

Trait Implementations

Examples
use adder_codec_rs::SourceCamera::FramedU8;

let mut frame_sequence: FrameSequence<u8> =
FramerBuilder::new(
            10, 10, 3)
            .codec_version(1)
            .time_parameters(50000, 1500, 50)
            .mode(INSTANTANEOUS)
            .source(U8, FramedU8)
            .finish();
let mut event: Event = Event {
        coord: Coord {
            x: 5,
            y: 5,
            c: Some(1)
        },
        d: 5,
        delta_t: 1000
    };
frame_sequence.ingest_event(&mut event);
let elem = frame_sequence.px_at_current(5, 5, 1);
assert_eq!(*elem, Some(32));

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.