/// Returns this canister's id as a blob.
Returns this canister's id as a blob.
Returns this canister ' s id as a blob .
pub fn id() -> CanisterId {
    let len: u32 = unsafe { ic0::canister_self_size() };
    let mut bytes = vec![0; len as usize];
    unsafe {
        ic0::canister_self_copy(bytes.as_mut_ptr() as u32, 0, len);
    }
    CanisterId::try_from(bytes).unwrap()
}
pub fn id ( ) -> CanisterId { let len : u32 = unsafe { ic0 :: canister_self_size ( ) } ; let mut bytes = vec ! [ 0 len as usize ] ; unsafe { ic0 :: canister_self_copy ( bytes . as_mut_ptr ( ) as u32 , 0 , len ) ; } CanisterId :: try_from ( bytes ) . unwrap ( ) }
Returns this canister's id as a blob.
Returns this canister ' s id as a blob .