Struct sbr::data::CompressedInteractionsUser[][src]

pub struct CompressedInteractionsUser<'a> {
    pub user_id: UserId,
    pub item_ids: &'a [ItemId],
    pub timestamps: &'a [Timestamp],
}

A single user's data, arranged from earliest to latest.

Fields

User id.

The users's interactions.

The timestamps of the user's interactions.

Methods

impl<'a> CompressedInteractionsUser<'a>
[src]

Return length of interactions.

If there are no interactions.

Return a chunked iterator over interactions for this user. The chunks are such that the first chunk is smallest, and the remaining chunks are all of chunk_size.

Trait Implementations

impl<'a> Debug for CompressedInteractionsUser<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for CompressedInteractionsUser<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations