pub struct Kcore {
k: u32,
user_k: Option<u32>,
item_k: Option<u32>,
year: Option<i32>,
start: Option<NaiveDate>,
end: Option<NaiveDate>,
output: PathBuf,
input: PathBuf,
}
Expand description
Compute k-cores of interaction records.
Fields§
§k: u32
The size of the k-core.
user_k: Option<u32>
The user rating count for a (ku,ki)-core
item_k: Option<u32>
The item rating count for a (ku,ki)-core
year: Option<i32>
Limit to ratings in a particular year.
start: Option<NaiveDate>
Limit ratings to after a particular date (inclusive)
end: Option<NaiveDate>
Limit ratings to before a particular date (exclusive)
output: PathBuf
The output file.
input: PathBuf
The input file
Trait Implementations§
Source§impl Args for Kcore
impl Args for Kcore
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl From<Kcore> for RootCommand
impl From<Kcore> for RootCommand
Source§fn from(v: Kcore) -> RootCommand
fn from(v: Kcore) -> RootCommand
Converts to this type from the input type.
Source§impl FromArgMatches for Kcore
impl FromArgMatches for Kcore
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for Kcore
impl RefUnwindSafe for Kcore
impl Send for Kcore
impl Sync for Kcore
impl Unpin for Kcore
impl UnwindSafe for Kcore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more